+ Reply to Thread
Results 1 to 11 of 11

Highlight dates passed - confitional formatting

  1. #1
    Forum Contributor
    Join Date
    10-13-2012
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    106

    Highlight dates passed - confitional formatting

    Obviously with Now and weekday functions you can do a number of conditional formatting.

    I have a list on my spread sheet. The list has all my direct debits and the date each one comes out, i.e. 1 meaning the first of the month or 27 for the 27th. I just want to put the date in rather than have a spread sheet for each individual month. So the list is just 1,2,3,4,5,6 etc.

    What I am looking to achieve is for the spread sheet to reset at the beginning of the month and the dates cells are red and when the date comes and passes then to turn that cell green.

    Any ideas how I can do this, if it is possible?
    Last edited by trumpetman; 07-19-2014 at 11:51 AM.

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.85 (24051214))
    Posts
    8,833

    Re: Highlight dates passed - confitional formatting

    for 2007 or 2010 excel version
    Conditional Formatting

    Highlight applicable range >>

    The range you want to apply to - for example all of column A


    Home Tab >> Styles >> Conditional Formatting
    New Rule >> Use a formula to determine which cells to format
    Edit the Rule Description: Format values where this formula is true:


    =A1<today()


    Format… [Number, Font, Border, Fill]
    choose the format you would like to apply when the condition is true
    OK >> OK

    But do you just plan to have the numbers
    1-31 ?
    or actual dates ?

    if so then again assuming in column A1

    =A1< day(today())
    Last edited by etaf; 07-19-2014 at 12:04 PM.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,901

    Re: Highlight dates passed - confitional formatting

    It is always a best practice to use dates in Excel when you mean for them to represent dates.

    If you insist on putting in just the day number, then etaf's formula must be adjusted as follows. It will assume that the day is in the current month:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Forum Contributor
    Join Date
    10-13-2012
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    106

    Re: Highlight dates passed - confitional formatting

    Thanks guys for the help. When I put the formula in the conditional formatting edit then it turns the cells green regardless of the date, i.e I have put it in a cell that has 27 in it and it turns the cell green but the date is the 19th so it shouldn't be green yet. Where am I going wrong, any ideas?

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.85 (24051214))
    Posts
    8,833

    Re: Highlight dates passed - confitional formatting

    what formula
    =A1< day(today())

  6. #6
    Forum Contributor
    Join Date
    10-13-2012
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    106

    Re: Highlight dates passed - confitional formatting

    etaf, yes that's correct. Putting that in and making the colour green if that rule is met. I was hoping that it would turn green once we get to the 27.

  7. #7
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.85 (24051214))
    Posts
    8,833

    Re: Highlight dates passed - confitional formatting

    so this will turn any day before and including todays date to green
    so as its the 19th - every thing upto 19 is green

    tomorrow 20 will be green

    why 27 - we are only at the 19th

    see attached sample

    Please upload a sample of your workbook to the forum, Make sure you have removed any private information, remember this is a public forum and so available to anyone
    Would like to see an example of your data and also a manual mock up of the expected results you want to achieve.

    To attach a file to your post,
    click "Go advanced" (next to quick post),
    scroll down until you see "manage Attachments",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    Attached Files Attached Files
    Last edited by etaf; 07-19-2014 at 02:12 PM.

  8. #8
    Forum Contributor
    Join Date
    10-13-2012
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    106

    Re: Highlight dates passed - confitional formatting

    Hi

    Thanks for the upload. I can see it works for you but not me. I just wonder if this is because the numbers are not in order? Not sure why that should matter.

    I have attached a copy of the sheet.
    Attached Files Attached Files

  9. #9
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.85 (24051214))
    Posts
    8,833

    Re: Highlight dates passed - confitional formatting

    you need to apply to the column you are using and the range

    I have also modified to exclude blanks

    see attached
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    10-13-2012
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    106

    Re: Highlight dates passed - confitional formatting

    etaf, o right I thought I was missing something.

    Thanks for the help.

  11. #11
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.85 (24051214))
    Posts
    8,833

    Re: Highlight dates passed - confitional formatting

    your welcome - so you need to apply to the range you want the conditional formatting to apply to
    and then use the first cell reference in that range

    thanks for the rep

+ 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. highlight passed due invoice dates
    By Loveabull in forum Excel General
    Replies: 1
    Last Post: 02-18-2013, 02:02 PM
  2. [SOLVED] Add character to cell based on confitional formatting fill
    By freud1 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-28-2012, 04:42 AM
  3. Conditional formatting for dates/time x hours passed
    By Sirodot in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-18-2012, 11:04 AM
  4. Date passed = Highlight
    By simon3163 in forum Excel General
    Replies: 6
    Last Post: 11-17-2010, 05:28 PM
  5. read date and highlight if a month passed
    By pelachrum in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-28-2006, 10:22 PM

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