+ Reply to Thread
Results 1 to 4 of 4

Conditional Formula - highlighting month column based on todays date

  1. #1
    Registered User
    Join Date
    12-21-2011
    Location
    Aus
    MS-Off Ver
    Excel 2010
    Posts
    62

    Conditional Formula - highlighting month column based on todays date

    Hi I have 12 columns with the months in the e.g. Jan to Dec (K3:V3) and also have todays date in A1. Basically I would like to highlight the column that corresponds to the current month.
    For example. Todays date is 8/11/12 (A1) so I would like the column under "Nov" to be highlighted RED. I have sort of set this up however it only highlights the column if I physcially type in "Nov" in cell A1.
    If I put in =TODAY() in cell A1 which returns todays date then the conditional formula doesnt work unless I type in "Nov"
    Hope this makes sense and I can get an answer. cheers

  2. #2
    Forum Contributor
    Join Date
    11-05-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    229

    Re: Conditional Formula - highlighting month column based on todays date

    In a blank cell somewhere, say Z1, put the following formula:

    =INDEX(K3:V3,1,MONTH(A1))

    This will give you the corresponding month for today's date. Use this cell for your conditional formatting instead of using A1 directly.

    Don't forget to click the little star to the left of this post if you feel I helped!
    Taming the Excel dragon... www.TheExcelphile.com

  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 Formula - highlighting month column based on todays date

    Or using MONTH function..
    Attached Files Attached Files
    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
    12-21-2011
    Location
    Aus
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Conditional Formula - highlighting month column based on todays date

    Thanks for the replies. Just another addition to this:
    As well as highlighting the month column in respect to the current date as described above I woud also like to highlight any rows that intersect the month column providing there is some text in the cell. For example I would like to highlight the November column based on todays date (which has been done above) and then have horizontal range of cells highlighting if the cell in the Novemebr column contains any text. I hope this is understandable. cheers

+ 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