+ Reply to Thread
Results 1 to 5 of 5

Highlight cell in an excel calendar matrix when date is today

  1. #1
    Registered User
    Join Date
    02-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    5

    Question Highlight cell in an excel calendar matrix when date is today

    I have built a simple calendar and want to highlight the correct cell if the date is today. I can't think of any way to do this, any help would be appreciated.

    I have added a worksheet, the cell highlighted in magenta indicates the date is today.

    Capturecal.PNG
    Attached Files Attached Files
    Last edited by jameshelp; 02-24-2021 at 10:10 AM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,695

    Re: Highlight cell in an excel calendar matrix when date is today

    First remove the manual magenta in that cell, then select all the cells, i.e. from B2 to AF12 (though you picture shows different columns are used), and click on Conditional Formatting | New Rule | Use a formula... , then put this formula in the dialogue box which pops up:

    =DATEVALUE(COLUMNS($B:B)&" "&$A2&2021)=TODAY()

    Click on the Format button | Fill tab and choose your colour, then OK your way out.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    02-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    5

    Re: Highlight cell in an excel calendar matrix when date is today

    Wow Pete, another quick solve. What a master. Thank you again

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,695

    Re: Highlight cell in an excel calendar matrix when date is today

    Glad to help. The drawback is that the year is hard-coded within the CF formula. If you put the year in a cell somewhere (e.g. A1), then you could use $A$1 instead of 2021 in the formula, and it would work for different years.

    You might also think about using CF to show weekend dates in a different colour.

    Thanks for marking the thread as Solved, but you might also like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

  5. #5
    Registered User
    Join Date
    02-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    5

    Re: Highlight cell in an excel calendar matrix when date is today

    Agreed and understood! Thanks again.

+ 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 Cell if date range is within today
    By Noahtea in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-04-2018, 09:59 PM
  2. Highlight cell if TODAY() is within 10 days of due date.
    By CC268 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-11-2017, 02:46 PM
  3. [SOLVED] Calendar: Go to and Highlight today
    By skyping in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-25-2014, 07:20 AM
  4. Replies: 4
    Last Post: 02-13-2013, 01:18 PM
  5. [SOLVED] Show today's date on calendar
    By Marco-Kun in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-26-2012, 04:23 PM
  6. Replies: 3
    Last Post: 01-08-2009, 03:51 PM
  7. If TODAY >= [Certain Date in Row], Highlight this row?
    By sasquatchbill in forum Excel General
    Replies: 4
    Last Post: 08-01-2006, 12:53 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