Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hello experts,
What formula should I use to show # days left, including time (in hrs, mins and sec's) from current date/time to a target end date/time? For instance: Start Date: Now() End Date: December 31, 2005 5:00:00 PM Your help is greatly appreciated. Marie |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=ROUND(A2-A1,0)&" days and "&TEXT(A2-A1,"h:mm:ss")
Or if it is less than one month, you can just subtract them (=A2-A1) and use a custom format of d "days and" h:mm They both look like this 25 days and 1:20:27 |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
This worked! Thanks!
"Sloth" wrote: =ROUND(A2-A1,0)&" days and "&TEXT(A2-A1,"h:mm:ss") Or if it is less than one month, you can just subtract them (=A2-A1) and use a custom format of d "days and" h:mm They both look like this 25 days and 1:20:27 |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
How about
=INT(A21-NOW())&" days, "&TEXT(MOD(A21-NOW(),1)," hh:mm:ss") -- HTH RP (remove nothere from the email address if mailing direct) "marie" wrote in message ... Hello experts, What formula should I use to show # days left, including time (in hrs, mins and sec's) from current date/time to a target end date/time? For instance: Start Date: Now() End Date: December 31, 2005 5:00:00 PM Your help is greatly appreciated. Marie |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Bob, I compared the result using your formula with the one provided by
"Sloth" and it appears that I am off by a day using yours. 'Not sure why. "Bob Phillips" wrote: How about =INT(A21-NOW())&" days, "&TEXT(MOD(A21-NOW(),1)," hh:mm:ss") -- HTH RP (remove nothere from the email address if mailing direct) "marie" wrote in message ... Hello experts, What formula should I use to show # days left, including time (in hrs, mins and sec's) from current date/time to a target end date/time? For instance: Start Date: Now() End Date: December 31, 2005 5:00:00 PM Your help is greatly appreciated. Marie |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
That is because Sloth's Rounds the subtracted dates, so if it is 24.6 say,
it rounds it up to 25, and then the .6 is used to calculate the hours. So, I think he is wrong -- HTH RP (remove nothere from the email address if mailing direct) "marie" wrote in message ... Hi Bob, I compared the result using your formula with the one provided by "Sloth" and it appears that I am off by a day using yours. 'Not sure why. "Bob Phillips" wrote: How about =INT(A21-NOW())&" days, "&TEXT(MOD(A21-NOW(),1)," hh:mm:ss") -- HTH RP (remove nothere from the email address if mailing direct) "marie" wrote in message ... Hello experts, What formula should I use to show # days left, including time (in hrs, mins and sec's) from current date/time to a target end date/time? For instance: Start Date: Now() End Date: December 31, 2005 5:00:00 PM Your help is greatly appreciated. Marie |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try it with tomorrow at midday to see, Sloth's gives more than 1 day!
-- HTH RP (remove nothere from the email address if mailing direct) "Bob Phillips" wrote in message ... That is because Sloth's Rounds the subtracted dates, so if it is 24.6 say, it rounds it up to 25, and then the .6 is used to calculate the hours. So, I think he is wrong -- HTH RP (remove nothere from the email address if mailing direct) "marie" wrote in message ... Hi Bob, I compared the result using your formula with the one provided by "Sloth" and it appears that I am off by a day using yours. 'Not sure why. "Bob Phillips" wrote: How about =INT(A21-NOW())&" days, "&TEXT(MOD(A21-NOW(),1)," hh:mm:ss") -- HTH RP (remove nothere from the email address if mailing direct) "marie" wrote in message ... Hello experts, What formula should I use to show # days left, including time (in hrs, mins and sec's) from current date/time to a target end date/time? For instance: Start Date: Now() End Date: December 31, 2005 5:00:00 PM Your help is greatly appreciated. Marie |
#8
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
oops. your correct bob. sorry about that marie.
"Bob Phillips" wrote: That is because Sloth's Rounds the subtracted dates, so if it is 24.6 say, it rounds it up to 25, and then the .6 is used to calculate the hours. So, I think he is wrong -- HTH RP (remove nothere from the email address if mailing direct) "marie" wrote in message ... Hi Bob, I compared the result using your formula with the one provided by "Sloth" and it appears that I am off by a day using yours. 'Not sure why. "Bob Phillips" wrote: How about =INT(A21-NOW())&" days, "&TEXT(MOD(A21-NOW(),1)," hh:mm:ss") -- HTH RP (remove nothere from the email address if mailing direct) "marie" wrote in message ... Hello experts, What formula should I use to show # days left, including time (in hrs, mins and sec's) from current date/time to a target end date/time? For instance: Start Date: Now() End Date: December 31, 2005 5:00:00 PM Your help is greatly appreciated. Marie |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Calculating time and pay in excel | Excel Discussion (Misc queries) | |||
calculating date/time | Excel Discussion (Misc queries) | |||
How do place a column of date/time information into a calendar for | Excel Discussion (Misc queries) | |||
Calculating Time | Excel Discussion (Misc queries) | |||
Working days left in the month compared to previous months | Excel Worksheet Functions |