+ Reply to Thread
Results 1 to 5 of 5

Conditional Formatting Based on Date

  1. #1
    Registered User
    Join Date
    03-15-2017
    Location
    Glasgow, Scotland
    MS-Off Ver
    MS Office 2016
    Posts
    2

    Conditional Formatting Based on Date

    Hi,

    I am working on a business development spreadsheet in work.

    Column A = Name of contact
    Column E = Date of last contact (in date format dd/mm/yy)

    I want column A to:

    Turn green if I contacted the person between 0 - 30 days ago
    Turn yellow if I contacted the person between 31 - 60 days ago
    Turn red if I contacted the person over 90 days ago

    Is there a way I can have the colours change dependent on when I update the spreadsheet to change the "Date of last contact" column?

    Thanks in advance,
    Ash

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,913

    Re: Conditional Formatting Based on Date

    Assuming Column E contains date value and not text string, and that row 1 is header row...

    CF for Green
    =(Today()-$E2)<31

    CF for Yellow
    =AND((Today()-$E2)>=31,(Today()-$E2)<=60)

    CF for Red
    =(Today()-$E2)>90

  3. #3
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Conditional Formatting Based on Date

    Welcome to the forum.

    Select your range in Column A. Click 'Conditional Formatting', 'New Rule', 'Use a formula to determine which cells to format.'
    Put this in the formula box:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Choose green fill.
    Repeat with these:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Note that a date between 61 and 90 days will be left un-coloured - is that what you want or was either the 60 or 90 a typo?

    The formulae above assume that your data starts in row 2, so your A range is A2:Abiggernumber. If that's not the case, replace E2 in the formulae with Enumberofstartingdatarow.

    Hope that helps.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  4. #4
    Registered User
    Join Date
    03-15-2017
    Location
    Glasgow, Scotland
    MS-Off Ver
    MS Office 2016
    Posts
    2

    Talking Re: Conditional Formatting Based on Date

    Hi,

    Thanks for the tips - this worked! I did mean for yellow to be between 31 - 89 so I managed to change the formula accordingly.

    Thanks again!!

  5. #5
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Conditional Formatting Based on Date

    You're welcome, glad we could help and thanks for the feedback.

    If that takes care of your original question, please take a moment to mark this thread as Solved so others know there's an answer here (see instructions in my sig). Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] conditional formatting based on date
    By jackf-nc in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 05-21-2016, 03:07 PM
  2. conditional formatting based on date
    By gocolonel77 in forum Excel General
    Replies: 2
    Last Post: 04-14-2014, 01:41 PM
  3. Conditional Formatting based on date
    By sans87 in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 12-14-2013, 05:30 PM
  4. Replies: 3
    Last Post: 11-23-2013, 06:21 AM
  5. Conditional Formatting based on Date
    By davidknowles in forum Excel General
    Replies: 2
    Last Post: 03-07-2012, 10:50 AM
  6. Conditional Formatting Based on Date
    By krie2509 in forum Excel General
    Replies: 3
    Last Post: 02-23-2010, 11:09 AM
  7. Conditional Formatting Based on Date
    By John F.M. in forum Excel General
    Replies: 1
    Last Post: 06-02-2005, 04:05 PM

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