#1   Report Post  
Posted to microsoft.public.excel.misc
lonestar51
 
Posts: n/a
Default formula help

Here's what I'm working with:

appt time |time in | variance from appt. time | time out |variance from
appt. time

I am trying to show the variance from appointment time and actual time in,
and the variance from the appointment time and the time out. (clear as mud?)
I'd like to show it in positive or negative time. In other words, show a
distinction between time in that was EARLIER from the appt. time and LATER
than the appt. time.

Can anyone help?


--
lm51
  #2   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default formula help

Hi!

There is no "easy" way to handle negative times in Excel. You could use a
setting, 1904 Date system, that will allow for "normal" handling of negative
times but this comes with a tradeoff. This can affect dates in the file by
causing them to be off by 4 years.

You could do something like this but any negative times will be TEXT values
and not true Excel times:

Format the cell as h:mm

For variance from apt time (time in minus appt time):

=IF(B2<A2,"-"&TEXT(ABS(B2-A2),"h:mm"),B2-A2)

For variance from apt time (time out minus appt time):

=IF(D2<A2,"-"&TEXT(ABS(D2-A2),"h:mm"),D2-A2)

If you wanted to get grand totals it could still be done but would be a
little more complicated due to any TEXT values.

Biff

"lonestar51" wrote in message
...
Here's what I'm working with:

appt time |time in | variance from appt. time | time out |variance from
appt. time

I am trying to show the variance from appointment time and actual time in,
and the variance from the appointment time and the time out. (clear as
mud?)
I'd like to show it in positive or negative time. In other words, show a
distinction between time in that was EARLIER from the appt. time and LATER
than the appt. time.

Can anyone help?


--
lm51



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
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
2 Nesting questions Starchaser Excel Worksheet Functions 7 January 20th 06 06:53 PM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


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