#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
IT05
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bpeltzer
 
Posts: n/a
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculating Difference Between Start Date & Time And End Date & Ti Samwar Excel Discussion (Misc queries) 2 December 19th 05 12:42 PM
change date based on time kdp145 Excel Discussion (Misc queries) 7 December 14th 05 02:05 AM
How do I calculate if a date is in a certain time frame? Pe66les Excel Worksheet Functions 19 August 27th 05 11:07 PM
how do I format cells to change date and time to just date bondam Excel Discussion (Misc queries) 3 July 3rd 05 01:10 PM
Help - Information with time and date PM Excel Discussion (Misc queries) 4 January 6th 05 08:25 AM


All times are GMT +1. The time now is 10:50 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"