Highlight cell based on day of the month

lorenambrose

Active Member
Joined
Sep 17, 2008
Messages
265
Hey all,

I have a worksheet with a column called day. It is 31 rows long. The cells are formatted as TEXT "01" through "31".

I want to conditionally format the cell based on the day of the month. If it is the 15th day of the month, then highlight the cell with "15" in it.

I thought it would be easy enough, but since this is not actually a calendar and is divorced from the month and year, it is proving to be very challenging.

Thanks,
Loren
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
test.xlsm
A
1DAY
201
302
403
504
605
706
807
908
1009
1110
1211
1312
1413
1514
1615
1716
1817
1918
2019
2120
2221
2322
2423
2524
2625
2726
2827
2928
3029
3130
3231
Sheet4
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:A32Expression=A2=TEXT(DAY(TODAY()),"dd")textNO
 
Upvote 0
test.xlsm
A
1DAY
201
302
403
504
605
706
807
908
1009
1110
1211
1312
1413
1514
1615
1716
1817
1918
2019
2120
2221
2322
2423
2524
2625
2726
2827
2928
3029
3130
3231
Sheet4
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:A32Expression=A2=TEXT(DAY(TODAY()),"dd")textNO

I see where you are going, but it is not working.

Maybe a bit of detail:

The day column is "B"

mos important the column is actually 62 rows as every 2 cells are merged making 31 cells

B3:B4 = 01
B5:B6 = 02.......
 
Upvote 0
Just a tip, avoid merged cells like the plague.

test.xlsm
ABC
1DAY
2
301
4
502
6
703
8
904
10
1105
12
1306
14
1507
16
1708
18
1909
20
2110
22
2311
24
2512
26
2713
28
2914
30
3115
32
3316
34
3517
36
3718
38
3919
40
4120
42
4321
44
4522
46
4723
48
4924
50
5125
52
5326
54
5527
56
5728
58
5929
60
6130
62
6331
64
65
Sheet4
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B3:B64Expression=B3=TEXT(DAY(TODAY()),"dd")textNO
 
Upvote 0
Here is exactly what I am working with.....
 

Attachments

  • Screenshot 2022-10-23 214241.png
    Screenshot 2022-10-23 214241.png
    15.2 KB · Views: 7
  • Screenshot 2022-10-23 214314.png
    Screenshot 2022-10-23 214314.png
    17.4 KB · Views: 5
  • Screenshot 2022-10-23 214339.png
    Screenshot 2022-10-23 214339.png
    6.4 KB · Views: 5
Upvote 0
Just a tip, avoid merged cells like the plague.

test.xlsm
ABC
1DAY
2
301
4
502
6
703
8
904
10
1105
12
1306
14
1507
16
1708
18
1909
20
2110
22
2311
24
2512
26
2713
28
2914
30
3115
32
3316
34
3517
36
3718
38
3919
40
4120
42
4321
44
4522
46
4723
48
4924
50
5125
52
5326
54
5527
56
5728
58
5929
60
6130
62
6331
64
65
Sheet4
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B3:B64Expression=B3=TEXT(DAY(TODAY()),"dd")textNO
It is just not working. Am I entering it wrong? Do I highlight cells B3 through B64 and enter the formula that way?
 
Upvote 0
You seem to have done everything exactly as I did. If you could provide a sample of your sheet using the XL2BB add in it would be a great help.

test.xlsm
AB
1
2DAY
301
4
502
6
703
8
904
10
1105
12
1306
14
1507
16
1708
18
1909
20
2110
22
2311
24
2512
26
2713
28
2914
30
3115
32
3316
34
3517
36
3718
38
3919
40
4120
42
4321
44
4522
46
4723
48
4924
50
5125
52
5326
54
5527
56
5728
58
5929
60
6130
62
6331
64
65
Sheet4
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B3:B64Expression=B3=TEXT(DAY(TODAY()),"dd")textNO
 
Upvote 0
You seem to have done everything exactly as I did. If you could provide a sample of your sheet using the XL2BB add in it would be a great help.

test.xlsm
AB
1
2DAY
301
4
502
6
703
8
904
10
1105
12
1306
14
1507
16
1708
18
1909
20
2110
22
2311
24
2512
26
2713
28
2914
30
3115
32
3316
34
3517
36
3718
38
3919
40
4120
42
4321
44
4522
46
4723
48
4924
50
5125
52
5326
54
5527
56
5728
58
5929
60
6130
62
6331
64
65
Sheet4
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B3:B64Expression=B3=TEXT(DAY(TODAY()),"dd")textNO

It is going to take some doing regarding that plugin. This is a work computer.
 
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,935
Members
449,094
Latest member
teemeren

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top