Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
NChris
 
Posts: n/a
Default Subtracting Times

I have to time fields. I need to find the difference between the two. It is
possible that either time could be greater so whichever cell has the earliest
time gets subtracted from the other. However, if the first time is greater
than the second I want the font to be red for the calculated difference. Here
is my current formula, how do I include changing the fontcolor if the second
IF (C4-B4) is false.

IF(C4 = "","",IF(B4C4,B4-C4,C4-B4))
  #2   Report Post  
NChris
 
Posts: n/a
Default

Nevermind, I figured it out using the Conditional Formatting from the Format
menu.

"NChris" wrote:

I have to time fields. I need to find the difference between the two. It is
possible that either time could be greater so whichever cell has the earliest
time gets subtracted from the other. However, if the first time is greater
than the second I want the font to be red for the calculated difference. Here
is my current formula, how do I include changing the fontcolor if the second
IF (C4-B4) is false.

IF(C4 = "","",IF(B4C4,B4-C4,C4-B4))

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
Formula for averaging times Denise Excel Discussion (Misc queries) 1 January 28th 05 04:05 PM
SUMPRODUCT ON TIMES Bob Phillips Excel Worksheet Functions 1 January 13th 05 05:28 PM
Subtracting times [email protected] Excel Discussion (Misc queries) 1 January 12th 05 09:55 AM
Subtracting Times tvhazlett Excel Worksheet Functions 1 November 29th 04 05:05 PM
subtracting times using 24 hour clock andrew pronto Excel Worksheet Functions 6 November 28th 04 02:26 AM


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