+ Reply to Thread
Results 1 to 4 of 4

Conditional Formatting using Formula field

Hybrid View

  1. #1
    Registered User
    Join Date
    05-14-2013
    Location
    Houston
    MS-Off Ver
    Excel 2007
    Posts
    1

    Conditional Formatting using Formula field

    i'm trying to use conditional formatting based on dates in 2 different cells

    guidelines
    if date1 is less than date2-8: date1 should be green
    if date1 is between date2-date2-7: date1 should be yellow
    if date1 is equal or greater than date2: date1 should be red

    example: date1 is 5/13
    date2 = 5/5 or earlier will be green
    date2 = 5/6 through 5/12 will be yellow
    date2 = 5/13 or later will be red

    thank you!

  2. #2
    Registered User
    Join Date
    01-24-2013
    Location
    Iran
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: Conditional Formatting using Formula field

    hi attach sample file if possible for you

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Conditional Formatting using Formula field

    Hi and welcome to the forum

    1. highlight the range you want to apply the conditional formatting to
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter =date1<date2-8 format fill green

    Repeat 3 & 4, change 4 to...
    =date1>=date2 format fill RED
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,616

    Re: Conditional Formatting using Formula field

    Search the forum cloud - Question asked hundreds of times

+ 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