Copy conditional formatting with $ in the mix???

Geek Girl 007

Board Regular
Joined
Mar 12, 2022
Messages
183
Office Version
  1. 2021
Platform
  1. Windows
Book1.xlsx
ABCDEF
1DayDateAMLUNCHPMED
2Name 1Name 1Name 1Name 1
3Sunday03/03/2025Name 20Name 20
4Name 30Name 30
5
6Monday04/03/2025
7
8
9Tuesday05/03/2025
10
11
12Wednesday06/03/2025
13
14
15Thursday07/03/2025
16
17
18Friday08/03/2025
19
20
21Saturday09/03/2025
22
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:F4Expression=COUNTA($C$2:$F$4)=12textNO


A very helpful person solved 'Change colour of block cells if other cells are full?,
I wanted a block of cells to change colour if a certain number of cells were full, however I didn't state that I needed to copy the formula to all DAYS, in blocks...... does this make sense??? will I need a different formula???
 
=COUNTA($C2:$F4)=12

Try just changing the range that is affected in the CF from A2:F4 to A2:F22
 
Upvote 0
Try 3 conditional formats.

Here the formulas for the entire range:

varios 06feb2025.xlsm
ABCDEF
1DayDateAMLUNCHPMED
2Name 1Name 1Name 1Name 1
3Sunday03/03/2025Name 20Name 20
4Name 30Name 30
5aaaa
6Monday04/03/2025BBB
7BBB
81234
9Tuesday05/03/20251234
101234
11
12Wednesday06/03/2025
13
14ABCD
15Thursday07/03/2025ABCD
16ABCD
17
18Friday08/03/2025
19
20
21Saturday09/03/2025
Hoja2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:F22Expression=AND(COUNTA(OFFSET($C2,0,0,3,4))=12,MOD(ROW(),3)=2)textNO
A2:F22Expression=AND(COUNTA(OFFSET($C2,-1,0,3,4))=12,MOD(ROW(),3)=0)textNO
A2:F22Expression=AND(COUNTA(OFFSET($C2,-2,0,3,4))=12,MOD(ROW(),3)=1)textNO


🤗
 
Upvote 0
Solution
Try 3 conditional formats.

Here the formulas for the entire range:

varios 06feb2025.xlsm
ABCDEF
1DayDateAMLUNCHPMED
2Name 1Name 1Name 1Name 1
3Sunday03/03/2025Name 20Name 20
4Name 30Name 30
5aaaa
6Monday04/03/2025BBB
7BBB
81234
9Tuesday05/03/20251234
101234
11
12Wednesday06/03/2025
13
14ABCD
15Thursday07/03/2025ABCD
16ABCD
17
18Friday08/03/2025
19
20
21Saturday09/03/2025
Hoja2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:F22Expression=AND(COUNTA(OFFSET($C2,0,0,3,4))=12,MOD(ROW(),3)=2)textNO
A2:F22Expression=AND(COUNTA(OFFSET($C2,-1,0,3,4))=12,MOD(ROW(),3)=0)textNO
A2:F22Expression=AND(COUNTA(OFFSET($C2,-2,0,3,4))=12,MOD(ROW(),3)=1)textNO


🤗

Hi there,
This works, but I wanted to add another row (so there are sets of 4 instead of 3, I tried to write a new code but couldn't.
Can you please help???
I will mark this as a soloution also. Thank you
 
Upvote 0
This works, but I wanted to add another row (so there are sets of 4 instead of 3

Try:
DANTE AMOR
ABCDEF
1DayDateAMLUNCHPMED
2Name 1111
3Sunday03/03/2025Name 2111
4Name 3111
5Name 4111
6Name 122
7Monday04/03/2025Name 2222
8Name 3222
9Name 4222
10Name 1333
11Tuesday05/03/2025Name 2333
12Name 3333
13Name 4333
14Name 144
15Wednesday06/03/2025Name 244
16Name 344
17Name 444
18Name 1555
19Thursday07/03/2025Name 2555
20Name 3555
21Name 4555
22Name 1
23Friday08/03/2025Name 2
24Name 3
25Name 4
26Name 1777
27Saturday09/03/2025Name 2777
28Name 3777
29Name 4777
Hoja2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:F29Expression=AND(COUNTA(OFFSET($C2,0,0,4,4))=16,MOD(ROW(),4)=2)textNO
A2:F29Expression=AND(COUNTA(OFFSET($C2,-1,0,4,4))=16,MOD(ROW(),4)=3)textNO
A2:F29Expression=AND(COUNTA(OFFSET($C2,-2,0,4,4))=16,MOD(ROW(),4)=0)textNO
A2:F29Expression=AND(COUNTA(OFFSET($C2,-3,0,4,4))=16,MOD(ROW(),4)=1)textNO


😇
 
Upvote 0
Try:
DANTE AMOR
ABCDEF
1DayDateAMLUNCHPMED
2Name 1111
3Sunday03/03/2025Name 2111
4Name 3111
5Name 4111
6Name 122
7Monday04/03/2025Name 2222
8Name 3222
9Name 4222
10Name 1333
11Tuesday05/03/2025Name 2333
12Name 3333
13Name 4333
14Name 144
15Wednesday06/03/2025Name 244
16Name 344
17Name 444
18Name 1555
19Thursday07/03/2025Name 2555
20Name 3555
21Name 4555
22Name 1
23Friday08/03/2025Name 2
24Name 3
25Name 4
26Name 1777
27Saturday09/03/2025Name 2777
28Name 3777
29Name 4777
Hoja2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:F29Expression=AND(COUNTA(OFFSET($C2,0,0,4,4))=16,MOD(ROW(),4)=2)textNO
A2:F29Expression=AND(COUNTA(OFFSET($C2,-1,0,4,4))=16,MOD(ROW(),4)=3)textNO
A2:F29Expression=AND(COUNTA(OFFSET($C2,-2,0,4,4))=16,MOD(ROW(),4)=0)textNO
A2:F29Expression=AND(COUNTA(OFFSET($C2,-3,0,4,4))=16,MOD(ROW(),4)=1)textNO


😇
Thank you so so much, it makes sense now, I just couldn't work it out :)
 
Upvote 0

Forum statistics

Threads
1,226,854
Messages
6,193,371
Members
453,792
Latest member
Vic001

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