Skip to playerSkip to main contentSkip to footer
  • 4/29/2025
Excel has a "Conditional Formatting" feature that allows you to change the color of a cell or a range of cells based on the values or formulas within the cells. Here's how you can change the cell color based on the month of the date in a cell:

1) Select the cells that you want to apply the formatting to.
2) Go to the "Home" tab, and in the "Styles" section, click on the "Conditional Formatting" dropdown and select "New Rule."
3) In the "New Formatting Rule" dialog box, select "Use a formula to determine which cells to format."
4) Enter the following formula into the "Format values where this formula is true" field: =MONTH($A1) = [Month Number]
5) Replace "A1" with the cell reference that contains the date you want to format, and replace [Month Number] with the number of the month you want to format. For example, to format cells that contain dates in January, the formula would be =MONTH($A1) = 1.
6) Click the "Format" button to select the desired cell color and then click "OK."
7) Repeat steps 4-6 for each additional month you want to format.
8) Click "OK" to apply the conditional formatting rule.

Now, the cells with the dates of the specified month will automatically change color based on the conditional formatting rule you just created.

In summary, do these steps for January.
1) Select cells.
2) Home -- Style -- Conditional Formatting
3) New Rule
4) "Format values where this formula is true"
5) =MONTH($A1)=1
6) Format
7) Select colour
8) OK
9) OK

And do these steps for February.
1) Select cells.
2) Home -- Style -- Conditional Formatting
3) Manage Rules
4) New Rule
5) "Format values where this formula is true"
6) =MONTH($A1)=2
7) Format
8) Select colour
9) OK
10) OK

And repeat the above step for March to December. But ensure that the formual is change like shown below for each month like this.
=MONTH($A1)=3
=MONTH($A1)=4
=MONTH($A1)=5
=MONTH($A1)=6
=MONTH($A1)=7
=MONTH($A1)=8
=MONTH($A1)=9
=MONTH($A1)=10
=MONTH($A1)=11
=MONTH($A1)=12

excel formula to change cell color based on expiry date,change cell color based on date google sheets,conditional formatting based on date in another cell,how to change cell color in excel based on text input,how to make excel cells change color automatically based on month,excel formula to change cell color based on day of week,excel formula to change cell color without conditional formatting,excel change cell color based on current date,
Transcript
00:00I saw this question came up in reddit saying the cell color changing depending on the month of the date
00:05something like this as you enter different dates the color changes let me show you how this is done
00:11on my spreadsheet here select 12 cells to indicate 12 months you go conditional formatting new rule
00:17in here you'll be selecting this one here and in here you'll be entering this one here so a1
00:221 as in the first month which is january i'm gonna select a color and hit ok and now you're
00:28gonna select and do the same thing again conditional formatting manage rule add new rules but this time
00:33around you're gonna say 2 for february i'm gonna change the format to red and okay i'm gonna repeat
00:38this same process for the next 10 items because i got 12 months right so here we go
00:48okay once you're done you enter let's say january 1st february 2nd march 3rd
00:53and so on you can see the colors are changing
00:58so
01:03you
01:05you
01:07you
01:09you
01:11you

Recommended