Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default adding/subtracting # of hours from a time

Good morning.

Is there a way to add or subtract a number (signifying the number of hours)
to a time. For example, in one column I have a time: 12:30PM, in the next
column I have a number -1.5, and I want to say, what is 12:30PM minus the 1.5
hours to equal 11:00AM?

Any help would be greatly appreciated. Thank you very much!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default adding/subtracting # of hours from a time

A1: holds 12:30 AM
B1: holds 1.5

C1: =A1-(B1/24)


"HRobertson" wrote:

Good morning.

Is there a way to add or subtract a number (signifying the number of hours)
to a time. For example, in one column I have a time: 12:30PM, in the next
column I have a number -1.5, and I want to say, what is 12:30PM minus the 1.5
hours to equal 11:00AM?

Any help would be greatly appreciated. Thank you very much!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default adding/subtracting # of hours from a time

Your making life very difficult for yourself putting a sign against the 1.5
(-1.5).

First the subtraction without the sign is easy:-

=A1 -( B1/24)
Where A1 is the time (12:30) and B1 is 1.5
If however B1 contains -1.5 then the formula evaluates this as + becaue -- = +
You could use

=A1 -( ABS(B1/24))

but then it wouldn't add times if that was what you wanted it to do

Mike



"HRobertson" wrote:

Good morning.

Is there a way to add or subtract a number (signifying the number of hours)
to a time. For example, in one column I have a time: 12:30PM, in the next
column I have a number -1.5, and I want to say, what is 12:30PM minus the 1.5
hours to equal 11:00AM?

Any help would be greatly appreciated. Thank you very much!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default adding/subtracting # of hours from a time

=A1+(B1/24) ?
--
David Biddulph

"Mike H" wrote in message
...
Your making life very difficult for yourself putting a sign against the
1.5
(-1.5).

First the subtraction without the sign is easy:-

=A1 -( B1/24)
Where A1 is the time (12:30) and B1 is 1.5
If however B1 contains -1.5 then the formula evaluates this as + becaue --
= +
You could use

=A1 -( ABS(B1/24))

but then it wouldn't add times if that was what you wanted it to do

Mike



"HRobertson" wrote:

Good morning.

Is there a way to add or subtract a number (signifying the number of
hours)
to a time. For example, in one column I have a time: 12:30PM, in the
next
column I have a number -1.5, and I want to say, what is 12:30PM minus the
1.5
hours to equal 11:00AM?

Any help would be greatly appreciated. Thank you very much!



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default adding/subtracting # of hours from a time

=A1+B1/24

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"HRobertson" wrote in message
...
Good morning.

Is there a way to add or subtract a number (signifying the number of
hours)
to a time. For example, in one column I have a time: 12:30PM, in the next
column I have a number -1.5, and I want to say, what is 12:30PM minus the
1.5
hours to equal 11:00AM?

Any help would be greatly appreciated. Thank you very much!





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default adding/subtracting # of hours from a time

Absolutely correct thanks

"David Biddulph" wrote:

=A1+(B1/24) ?
--
David Biddulph

"Mike H" wrote in message
...
Your making life very difficult for yourself putting a sign against the
1.5
(-1.5).

First the subtraction without the sign is easy:-

=A1 -( B1/24)
Where A1 is the time (12:30) and B1 is 1.5
If however B1 contains -1.5 then the formula evaluates this as + becaue --
= +
You could use

=A1 -( ABS(B1/24))

but then it wouldn't add times if that was what you wanted it to do

Mike



"HRobertson" wrote:

Good morning.

Is there a way to add or subtract a number (signifying the number of
hours)
to a time. For example, in one column I have a time: 12:30PM, in the
next
column I have a number -1.5, and I want to say, what is 12:30PM minus the
1.5
hours to equal 11:00AM?

Any help would be greatly appreciated. Thank you very much!




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
Adding and subtracting time Terry Bennett Excel Worksheet Functions 2 February 13th 07 12:24 PM
Subtracting hours from time Kerry O''''Brien Excel Discussion (Misc queries) 1 October 4th 06 08:31 PM
Subtracting 2 hours from time Chappy Excel Discussion (Misc queries) 2 June 4th 06 05:25 AM
How to display 5.5 hours instead of 5.30 when adding \ subtracting excel novice Excel Discussion (Misc queries) 4 November 26th 05 04:22 AM
Subtracting Cells formatted with Date AND Time to get hours? mcr1 - ExcelForums.com Excel Discussion (Misc queries) 1 July 5th 05 09:08 AM


All times are GMT +1. The time now is 01:38 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"