+ Reply to Thread
Results 1 to 3 of 3

default conditional formatting formula for dates

  1. #1
    Registered User
    Join Date
    05-09-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    2

    default conditional formatting formula for dates

    hello,
    I'm currently using the conditional formatting options for dates to highlight a date with a specific color if it references the following:

    tomorrow = yellow
    today = green
    yesterday = red

    When you choose the default options in Excel it doesn't actually spell out the formula to achieve these results. I'm asking for this hidden formula in case i wanted to eventually color a cell 2 days before or after today down the road sometime which Excel does not provide by default. Any help is greatly appreciated.

    thank you!

  2. #2
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,284

    Re: default conditional formatting formula for dates

    Use the next formulas

    day after tomorrow: =a2=today()+2
    tomorrow =a2=today()+1
    today =a2=today()
    yesterday =a2=today()-1
    day befor yesterday =a2=today()-2
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  3. #3
    Registered User
    Join Date
    05-09-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: default conditional formatting formula for dates

    Thank you!

    Apparently i was using the "$" in the formula which it didn't like.
    It took a little tweaking but this will do the trick.
    thank you again

+ 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