Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Date with Time
Want to subtract two dates with one of the dates showing time. Time needs to
be ignored. Spreadsheet Example: 6/20/2005 12:26:00 PM 06/21/2005 =SUM(G2-H2) shows a value of "0" Goal is to show "1" Thanks! |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Date with Time
int(h2) would drop the time portion from a date/time entry. So =g2-int(h2)
should give you the days from h2 to g2 (assuming that there's no time on g2; if there is, then =int(g2)-int(h2) ). --Bruce "IT05" wrote: Want to subtract two dates with one of the dates showing time. Time needs to be ignored. Spreadsheet Example: 6/20/2005 12:26:00 PM 06/21/2005 =SUM(G2-H2) shows a value of "0" Goal is to show "1" Thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Calculating Difference Between Start Date & Time And End Date & Ti | Excel Discussion (Misc queries) | |||
change date based on time | Excel Discussion (Misc queries) | |||
How do I calculate if a date is in a certain time frame? | Excel Worksheet Functions | |||
how do I format cells to change date and time to just date | Excel Discussion (Misc queries) | |||
Help - Information with time and date | Excel Discussion (Misc queries) |