+ Reply to Thread
Results 1 to 10 of 10

conditional format dependant on date

  1. #1
    Forum Contributor
    Join Date
    12-11-2013
    Location
    St Moritz, GR, Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    187

    conditional format dependant on date

    Column A reads Jan 2014, Feb 2014... Dec 2014. I want column B to go yellow if column A has passed.

    B1 and B2 are already yellow. On 1st April, B3 will go yellow to, because March 2014 in A3 will be in history.

    What's my formula for the conditional formatting? See attachment.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    05-24-2013
    Location
    Hampshire
    MS-Off Ver
    Office 2013
    Posts
    49

    Re: conditional format dependant on date

    Give me a few minutes

    Conditional formatting for each cell next to the date: =A1<TODAY()

    A1 being the dated cell. Bear in mind that your cells are 2015 and not 2014 so it wont turn yellow unless you change the dates

  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 format dependant on date

    Highlight range B1:B12 and in CF rules, put this formula.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    How can you use Conditional Formating.

    --In Excel 2007 and 2010, Conditional Formatting is in the Styles group on the Home tab. In Excel 2003, Conditional Formatting is on the Format menu. See here how you can work using CF.
    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
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,737

    Re: conditional format dependant on date

    use
    =TODAY()>=EOMONTH(A1,0)+1

    for 2007 or 2010 excel version
    Conditional Formatting

    Highlight applicable range >>
    B1:B7

    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:

    =TODAY()>=EOMONTH(A1,0)+1

    Format… [Number, Font, Border, Fill]
    choose the format you would like to apply when the condition is true
    OK >> OK
    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.

  5. #5
    Forum Contributor
    Join Date
    12-11-2013
    Location
    St Moritz, GR, Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    187

    Re: conditional format dependant on date

    Etaf's is first to work. Thanks all.

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,737

    Re: conditional format dependant on date

    Thanks
    Fotis1991
    =MONTH(A1)<MONTH(TODAY())
    works for me OK

    if my assistance has helped, and only if you wish to , there is a reputation icon * on the left hand side - you can add to my reputation here

  7. #7
    Forum Contributor
    Join Date
    12-11-2013
    Location
    St Moritz, GR, Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    187

    Re: conditional format dependant on date

    Everybody's up.

  8. #8
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: conditional format dependant on date

    Hello johnandrews,

    As etaf is saying, Fotis1991's Code works just fine, as shown in the attached sample Workbook.
    Attached Files Attached Files
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  9. #9
    Registered User
    Join Date
    05-24-2013
    Location
    Hampshire
    MS-Off Ver
    Office 2013
    Posts
    49

    Re: conditional format dependant on date

    The only way Fotis1991's method could be flawed, is if you continued the table to include Jan 15, Feb 15, Mar 15 etc. As the CF forumla is purely going off the MONTH within the date, so next years Jan 15 and Feb 15 would also become highlighted.

  10. #10
    Forum Contributor
    Join Date
    12-11-2013
    Location
    St Moritz, GR, Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    187

    Re: conditional format dependant on date

    I don't doubt Fotis' works in real life; rather I probably wasn't using it properly. (I kept it on 2014 cells.)

    There will always be more than one way to skin a cat and in a quick thread like this when I am over-run with an ample supply of super-helpful ubernerds, I try and play around with the different suggested formulas one at a time. Sometimes when I try and apply it to something more complicated I accidentally throw a spanner I didn't know I had in the works I wasn't aware were there.

    If the best protocol is just to mark SOLVED and say 'thanks all' I'll do that in future.

+ 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. Replies: 3
    Last Post: 11-23-2013, 06:21 AM
  2. [SOLVED] Conditional Date format
    By tangomj in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-06-2013, 04:08 PM
  3. Replies: 1
    Last Post: 09-30-2012, 03:01 PM
  4. Replies: 4
    Last Post: 04-19-2011, 09:20 AM
  5. Conditional Format a date
    By Lee P in forum Excel General
    Replies: 3
    Last Post: 06-18-2010, 02:02 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