Results 1 to 3 of 3

Thread: Conditional Formatting based on a formula

  1. #1
    Board Regular
    Join Date
    Dec 2013
    Posts
    98
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Conditional Formatting based on a formula

    Hi all,

    I've got a spreadsheet with dates in two columns, the date in the second column is calculated automatically based on the date in the first column.

    I need to apply Conditional Formatting to the cells in the second column so if the difference between that cell and today's date is greater than 90, make it green, between 1-90 orange, and 0 or under red.

    Just concentrating on the first part initially, I've got the following formula for anything above 90, however, it doesn't change the formatting:

    ="(Value(M6)-Value(TODAY())>90)"

    (M6 is in the second column, and is the top of the dates)

    Can anyone point me in the right direction?
    Last edited by RichCowell; Jan 9th, 2019 at 09:36 AM.

  2. #2
    Board Regular
    Join Date
    Nov 2006
    Location
    London
    Posts
    8,160
    Post Thanks / Like
    Mentioned
    20 Post(s)
    Tagged
    2 Thread(s)

    Default Re: Conditional Formatting based on a formula

    Assuming M6 is a numerical date
    TODAY() is ALWAYS a number, you dont need to do a VALUE() on it.

    Select the range you want highlight

    Conditional Formatting
    New Rule
    Use a formula to determine...

    =(M6-TODAY()<=0)
    Format as red

    =(M6-TODAY()>1)
    Format as orange

    =(M6-TODAY()>90)
    Format as green
    Last edited by Special-K99; Jan 9th, 2019 at 10:00 AM.

  3. #3
    Board Regular
    Join Date
    Dec 2013
    Posts
    98
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Conditional Formatting based on a formula

    Thanks! I'd added the VALUE() to TODAY() clutching at straws...
    That seems to be working nicely, thanks!

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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