+ Reply to Thread
Results 1 to 2 of 2

Subtracting Times

  1. #1
    NChris
    Guest

    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(B4>C4,B4-C4,C4-B4))

  2. #2
    NChris
    Guest

    RE: Subtracting Times

    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(B4>C4,B4-C4,C4-B4))


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1