+ Reply to Thread
Results 1 to 6 of 6

Conditional Formatting of: dates within 1 month and dates before today.

  1. #1
    Registered User
    Join Date
    06-18-2013
    Location
    Worcestershire, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Question Conditional Formatting of: dates within 1 month and dates before today.

    Dear All

    I have joined this forum in the hope that someone can give me a simple answer to what seems to me a simple problem... Having browsed the web and excel help extensively I cannot find a simple answer that I can make work!

    I am using Excel to display vehicle inspection due dates in a spreadsheet.

    I would like dates BEFORE today (i.e. dates in the past) to be formatted a particular way, for example with a red fill in the cell.

    I would like dates which are one month (or if easier 28 days) or less after today to be formatted another way, for example with a yellow fill.

    If possible I would also like days between one and two months after today to be formatted another way e.g. with a green fill in the cell.

    I have tried the various options offered in the Conditional Formatting/Highlight Cells/A Date Occuring... Menu but this only offers "Next Month"/"This Month", not within a given number of days.

    I imagine there must be a simple way to do this for someone who knows the language and appropriate syntax for Excel, but I do not, and have more things to do: I am a mechanic, not a computer programmer!


    Any help much appreciated, and happy just to be pointed to a link which tells me what to do if anyone knows where there is one.

    Many thanks.

    L Smith
    Last edited by Luke Smith; 06-18-2013 at 07:35 AM.

  2. #2
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Pune
    MS-Off Ver
    Office 365 (Win 10)
    Posts
    489

    Re: Conditional Formatting of: dates within 1 month and dates before today.

    instead of going by dates, just use the direct conditional formating like Greater than, less than, between etc
    and in the condition, you can put like
    =today()
    =today()+30
    =today()+60
    etc...

    Attched sample file also for your help

    conditional.xlsx
    Please make the Post as solved, when you get your answer & Click * if you like my suggestion

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Conditional Formatting of: dates within 1 month and dates before today.

    Try in Conditional Formmating rules.

    =A1<TODAY() >>>>>>>>RED

    =A1<=TODAY()+28 >>>>YELLOW

    =AND(A1<=TODAY()+60,A1>=TODAY()+30) >>>GREEN
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Registered User
    Join Date
    06-18-2013
    Location
    Worcestershire, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Conditional Formatting of: dates within 1 month and dates before today.

    Hello All

    Thanks for the amazingly fast replies-

    I have tried the method suggested by akhileshghs and it enables me to get exactly what I wanted! Thanks especially for posting the sample worksheet, it was really helpful being able to see exactly what to do in each of the menus.

    I have not, as yet, tried FOTIS1991's suggestion but will do so in the future.

    Thank you both very much indeed- You have saved me much stress and allowed me to get on with my proper work!

    Very much obliged.

    Luke

  5. #5
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Pune
    MS-Off Ver
    Office 365 (Win 10)
    Posts
    489

    Re: Conditional Formatting of: dates within 1 month and dates before today.

    Quote Originally Posted by Luke Smith View Post
    I have not, as yet, tried FOTIS1991's suggestion but will do so in the future.
    Both the suggestions are same only...

    Glad we could help you.
    Please make this post as solved


    To mark your thread solved do the following:
    - Go to the first post
    - Click edit
    - Click Advance
    - Just below the word "Title:" you will see a dropdown with the word No prefix.
    - Change to Solve
    - Click Save

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Conditional Formatting of: dates within 1 month and dates before today.

    ....................

+ 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