ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   dates for conditional formatting (https://www.excelbanter.com/excel-discussion-misc-queries/252978-dates-conditional-formatting.html)

AliMacca

dates for conditional formatting
 
Hi
I am trying to get a workbook that highlights the current month in red. I
thought I had done this but when i put the current month but for next year it
still highlights red. How do i just get the current year to change red?

Ali

David Biddulph[_2_]

dates for conditional formatting
 
Change your conditional formatting criterion from =MONTH(...)=... to
=AND(MONTH(...)=...,YEAR(...)=...) or to =TEXT(...,"yyyymm")=...
--
David Biddulph

"AliMacca" wrote in message
...
Hi
I am trying to get a workbook that highlights the current month in red. I
thought I had done this but when i put the current month but for next year
it
still highlights red. How do i just get the current year to change red?

Ali





All times are GMT +1. The time now is 06:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com