Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dst dst is offline
external usenet poster
 
Posts: 1
Default How to: date field minus minutes equals new date

I have a worksheet that has 1 field with the full date, e.g. 12/25/2007 09:30
(field A) and another field that has minutes, e.g. 15. (field B) I want a
formula that can tell me the new date/time if I take field A and deduct field
B. thanks!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default How to: date field minus minutes equals new date

With
A1: (a date/time value....eg 12/25/2007 9:30:00 AM)
B1: (number of minutes.......eg 15)

This formula converts the number of minutes
in B1 to a time value and subtracts it from A1
C1: =A1-B1/(24*60)

Format C1 as Date/Time.

Note:
To Excel each date is a whole number
(The number of days since 31-DEC-1899)
Times are fractions of a day.
Example: Noon is 0.50.......(half a day)

Since B1 is "minutes", we need to divide it by the number
of minutes in a day (24 hrs/day x 60 minutes/hour)

Is that something you can work with?
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

"dst" wrote in message
...
I have a worksheet that has 1 field with the full date, e.g. 12/25/2007
09:30
(field A) and another field that has minutes, e.g. 15. (field B) I want a
formula that can tell me the new date/time if I take field A and deduct
field
B. thanks!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default How to: date field minus minutes equals new date

Another one...

If the unit to subtract always represents minutes:

=A1-TIME(,B1,)

--
Biff
Microsoft Excel MVP


"dst" wrote in message
...
I have a worksheet that has 1 field with the full date, e.g. 12/25/2007
09:30
(field A) and another field that has minutes, e.g. 15. (field B) I want a
formula that can tell me the new date/time if I take field A and deduct
field
B. 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
New date based on one date field minus minutes in another field [email protected] Excel Discussion (Misc queries) 1 December 25th 07 04:05 PM
how do I do this: today minus hire date equals how many years mo. btaylor1990 Excel Worksheet Functions 1 October 18th 07 08:21 PM
Figuring Vacation Hrs. Earned using Current Date minus Hire Date Sharon Excel Worksheet Functions 6 May 3rd 07 10:32 PM
Date minus date=No. of days? Scoville Excel Worksheet Functions 2 March 2nd 06 09:14 PM
date (minus) date = working days diff jjj Excel Discussion (Misc queries) 3 December 6th 05 03:16 PM


All times are GMT +1. The time now is 08:03 AM.

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"