+ Reply to Thread
Results 1 to 12 of 12

Conditional Formatting Formula for hightlighting past dates, upcoming dates, and no blanks

  1. #1
    Registered User
    Join Date
    05-02-2014
    Location
    adelaide
    MS-Off Ver
    Excel 2010
    Posts
    6

    Conditional Formatting Formula for hightlighting past dates, upcoming dates, and no blanks

    Hi all,

    I'm brand new to using formulas for conditional formatting, and this forum. I've had a pretty good search online for a suitable formula without any success, and was hoping someone might create one that will help me achieve the following...

    Red highlight for todays date and past dates
    Yellow highlight dates up to 30 days before today
    No highlights for blank cells or text

    I'm using excel 2010.

    Thanks in advance!

    Catherine

  2. #2
    Valued Forum Contributor
    Join Date
    02-09-2006
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 2016
    Posts
    1,075

    Re: Conditional Formatting Formula for hightlighting past dates, upcoming dates, and no bl

    Could you attach a copy of your workbook please? That way we can test solutions on your own data. Remember to replace/remove sensitive data before uploading.
    Trish in Oz
    -------------
    A problem well defined is a puzzle half solved


    If you attach a sample of your workbook it will be easier to find a solution. Remember to remove/replace sensitive data before uploading the file. Look here if you need help with attachments:
    http://www.excelforum.com/faq.php?fa...b3_attachments

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Conditional Formatting Formula for hightlighting past dates, upcoming dates, and no bl

    In your First Statement the Paste Dates correlating with your second statement


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Registered User
    Join Date
    05-02-2014
    Location
    adelaide
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Conditional Formatting Formula for hightlighting past dates, upcoming dates, and no bl

    Hi Tuph, I've attached a snippet of the data set I'll be working with.

    Sixthsense, sorry my bad! The second statement should read .....Yellow highlight dates up to 30 days after today.

    Hope that makes more sense.
    Attached Files Attached Files

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Conditional Formatting Formula for hightlighting past dates, upcoming dates, and no bl

    Please confirm the column name which needs to be taken in to consideration for building the formula

  6. #6
    Registered User
    Join Date
    05-02-2014
    Location
    adelaide
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Conditional Formatting Formula for hightlighting past dates, upcoming dates, and no bl

    The area I'd like to format is b2 - d22 is that what you mean?

  7. #7
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Conditional Formatting Formula for hightlighting past dates, upcoming dates, and no bl

    Which column date (B or C or D?) needs to be verified for marking color?

  8. #8
    Registered User
    Join Date
    05-02-2014
    Location
    adelaide
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Conditional Formatting Formula for hightlighting past dates, upcoming dates, and no bl

    Sorry I'm very new to this and I'm not following what you mean, I'm wanting all three collums formatted, but for the sake of this any of them will be fine, lets go with D?

  9. #9
    Valued Forum Contributor
    Join Date
    02-09-2006
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 2016
    Posts
    1,075

    Re: Conditional Formatting Formula for hightlighting past dates, upcoming dates, and no bl

    I suggest adding a cell containing today's date for reference purposes. I've done a quick sample in the attachment.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    05-02-2014
    Location
    adelaide
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Conditional Formatting Formula for hightlighting past dates, upcoming dates, and no bl

    Thanks for your help tuph,

    My only issue is that blank cells are highlighted, was hoping to use a formula that would stop this from happening.

  11. #11
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Conditional Formatting Formula for hightlighting past dates, upcoming dates, and no bl

    Hi

    Highlight B2:D22
    Look top say Conditional Formatting click on,
    click: Manage Rules,
    Click: New Rule,
    Click: Format only cells that contain,
    Keep "Cell Value", next "between" change to "Less than", next NOW()-30 or TODAY()-30
    Click: Format,
    Look top click: Fill,
    Click: Red, (Make sure you see Red in Sample box)
    Click: OK ,
    Click: OK,
    Click: Apply,
    Then it you done!!.

    Do the same again with(Yellow) and (Blank)
    Yellow: =NOW()or TODAY()
    Blank: "cell value" change to "Blank" format fill White

    Make sure Blank top row then 2nd row Red then last 3rd row yellow in Conditional formatting.

    See the file

    Regard
    micope21
    Attached Files Attached Files
    To help you by my post? it would be nice to click on to say "Thank you".
    If you are happy with a solution to your problem?
    Click Thread Tools above your first post,
    select "Mark your thread as Solved".

  12. #12
    Registered User
    Join Date
    05-02-2014
    Location
    adelaide
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Conditional Formatting Formula for hightlighting past dates, upcoming dates, and no bl

    That works great, thanks for your help everyone!

+ 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] Due dates formula in conditional formatting that ignores blanks
    By ciapul12 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-31-2013, 08:48 AM
  2. [SOLVED] Conditional formatting for Dates in the past
    By inneedofhelpexcel in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-30-2013, 04:07 PM
  3. Replies: 1
    Last Post: 08-21-2012, 04:32 AM
  4. Conditional Formatting Past Due Dates
    By MLS Packer Lover in forum Excel General
    Replies: 7
    Last Post: 08-04-2011, 02:19 PM
  5. Conditional Formatting For Past Due Dates
    By Wayne085 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-26-2009, 03:52 AM

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