+ Reply to Thread
Results 1 to 3 of 3

Conditional Format a cell returning a date based on a cell containing a formula)

  1. #1
    Registered User
    Join Date
    06-05-2012
    Location
    Boston, Mass
    MS-Off Ver
    Excel 2007
    Posts
    10

    Question Conditional Format a cell returning a date based on a cell containing a formula)

    So I have a workbook with 2 sheets, On Sheet 1, there is a field that calculates the expiration date of something based on text in its description (B3=description, F4=opened on date, G4= expiration date)

    G4=IF(ISERR(FIND("Long",B3)=TRUE),F4+"72:00",F4+"100:00")

    Sheet 2 has the same layout as Sheet 1.
    on Sheet 2 I want to show the values from Sheet 1 column G in the sheet2 column G. (thats easy)
    I then want to conditionally format F3 (new opened date) on sheet2 to change red if it is more than 30 mins away from the expiration date.

    I think the issue that I am running into is that cell G3 is a formula. If I try something like >G3+"00:30" it does not respond at all, but if I change G3 to a regular date, it works.

    Thanks

  2. #2
    Registered User
    Join Date
    08-17-2004
    Posts
    7

    Re: Conditional Format a cell returning a date based on a cell containing a formula)

    One thing you could try is in the formula is method...

    =IF(F3>(G3+0.02),True,False)

    This will throw the boolean true for your operation and should allow you to set a format for when that does occur.

    The 0.02 is 30 minutes in decimal form

    Cheers
    Last edited by JRockdown; 06-21-2012 at 01:39 PM.

  3. #3
    Registered User
    Join Date
    06-05-2012
    Location
    Boston, Mass
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Conditional Format a cell returning a date based on a cell containing a formula)

    where would I put that formula? in the conditional formatting part? Im confused.
    and I think i still will run into the same problem, that G3 is a formula and it doesnt like adding a value to a formula.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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