Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 130
Default Time/Custom formula and formats not responding

What I'm trying to accomplish is have Col F be the result of subtracting B
time from any time in C, D, or E if populated to find time elasped (F).
There is always two time fields in each row and always in B but as shown, not
always in C, D, or E. I would like one formula to copy into F after I insert
the column.

The formats do not change when I change the in B,C,D,or E. HH:MM AM/PM
also, as I do not need seconds. When the data comes in, it comes in as
General for all fields where time is involved and is exactly as shown in the
example.

Thanks in advance.


a b c d e
f
1 9:44:00 AM 9:44:00 AM #VALUE!
2 9:44:00 AM 9:46:00 AM #VALUE!
3 9:46:00 AM 9:48:00 AM
4 9:46:00 AM 9:48:00 AM
5 9:46:00 AM 9:59:00 AM
6 9:46:00 AM 10:03:00 AM
7 10:41:00 AM 10:50:00 AM
8 10:41:00 AM 10:50:00 AM
9 10:41:00 AM 11:25:00 AM

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 88
Default Time/Custom formula and formats not responding

start of by formatting your cells as follows:

columns b, c, d, and e - custom format h:mm am/pm (this part looks ok on
your example.

format column f - custom format [h]:mm

use the following formulae in column f

=IF(AND(C2="",D2=""),E2-B2,IF(AND(C2="",E2=""),D2-B2,C2-B2))

assuming that there is only time in columns b and one of the columns c, d,
or e, you will get your time difference in hours:minutes in column F.

jat


"Shu of AZ" wrote:

What I'm trying to accomplish is have Col F be the result of subtracting B
time from any time in C, D, or E if populated to find time elasped (F).
There is always two time fields in each row and always in B but as shown, not
always in C, D, or E. I would like one formula to copy into F after I insert
the column.

The formats do not change when I change the in B,C,D,or E. HH:MM AM/PM
also, as I do not need seconds. When the data comes in, it comes in as
General for all fields where time is involved and is exactly as shown in the
example.

Thanks in advance.


a b c d e
f
1 9:44:00 AM 9:44:00 AM #VALUE!
2 9:44:00 AM 9:46:00 AM #VALUE!
3 9:46:00 AM 9:48:00 AM
4 9:46:00 AM 9:48:00 AM
5 9:46:00 AM 9:59:00 AM
6 9:46:00 AM 10:03:00 AM
7 10:41:00 AM 10:50:00 AM
8 10:41:00 AM 10:50:00 AM
9 10:41:00 AM 11:25:00 AM

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
custom formats The big noise Excel Discussion (Misc queries) 2 February 1st 07 02:10 PM
Custom Formats centerNegative Excel Discussion (Misc queries) 3 October 7th 05 05:01 PM
Custom Formats Amanda Cooper Excel Discussion (Misc queries) 1 May 11th 05 06:04 PM
Custom Formats becky Excel Discussion (Misc queries) 6 December 24th 04 01:24 AM
Custom Formats Stan Altshuller Excel Worksheet Functions 1 December 13th 04 09:47 PM


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