LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Another Time Calulation

But, of course if you want to see the answer not as a time, but as a number
of hours, you can change your
=IF(F16<2/24, F16-2/24) to
=IF(F16<2/24, 24*F16-2)
and format the answer as Number or General, not Time, then you don't need to
worry about changing the date system.
--
David Biddulph

"David Biddulph" <groups [at] biddulph.org.uk wrote in message
...
=IF(F16<2/24, F16-2/24) will give an output of FALSE if F16 is greater
than or equal to 2/24, but if F16<2/24 the result will be negative, and if
you format the result as a date or time, Excel doesn't like negative
values.
If you want to show negative times, change to 1904 date system, but be
wary of other consequential changes.
--
David Biddulph

"Randy" wrote in message
...
Thank you b....however still returns ####### value....here is what I
have:

=IF(F16<2/24, F16-2/24)...is this what you were referring to? I also have
the format of the cell set to "h" (without the quotes of course)

--
Randy Street
Rancho Cucamonga, CA


"bpeltzer" wrote:

1 represents a full day. So to get hours, divide by 24. So do your
comparisons to 2/24 instead of 2.

"Randy" wrote:

Ok...first Thanks to JLatham for my earlier question! Now I have
another one...

How would I go about doing this...I am calulating time with this
formula:
=IF(D16<C16,1-ABS(D16-C16),D16-C16) works great (thanks again
JLatham)...

Senarioa A: I get the reults form the above formlua in cell
F16...which for
this example lets say is 2:00 (11:00 PM to 1:00 AM = 2:00)

In cell F15 I would like to state this: If cell F16 (above) is less
than (<)
2:00, subtract the value in cell F16 from 2:00. So in other words,
something
like this...=IF(F16<2, F16-2)....I just can't seem to get the time
format
correct in this formula.

Any suggestins again will be greatly appreciated. Thank you in advance
for
your time.
--
Randy Street
Rancho Cucamonga, CA





 
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
CALULATION OF DURATION 3R Excel Discussion (Misc queries) 2 April 23rd 08 11:44 AM
Another Time Calulation Question - Sorry. Dugster New Users to Excel 7 November 27th 07 11:27 PM
how do I hide a calulation error in cells/table #div/0! Dave Excel Discussion (Misc queries) 1 November 13th 07 08:16 AM
Getpivot calulation KD Excel Worksheet Functions 1 May 25th 07 10:39 PM
Calculating days & time left from start date/time to end date/time marie Excel Worksheet Functions 7 December 7th 05 02:36 PM


All times are GMT +1. The time now is 09:47 PM.

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

About Us

"It's about Microsoft Excel"