Highlighting a Column Header Based off a Condition in the Cells in the Column Below being met

ahotz01

New Member
Joined
Jan 4, 2023
Messages
4
Platform
  1. Windows
Is there a conditional formatting formula that would allow you to highlight a column header (A1) if a condition is met in the cells below in that entire column?

Condition : All cells containing the value of 1 are highlighted green.

Notes:
- Not all cells/rows in that column will contain the value 1
- Only those cells containing the value of 1 will be highlighted green, BUT, they will be highlighted green at different times (when they are complete)
- Once all cells in that column, containing 1, are highlighted green, then cell A1 (header) would need to turn green to reflect that column is complete
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
how do you decide when its complete ?

countif(cell range , 1 ) = number expected to complete ???
 
Upvote 0
how do you decide when its complete ?

countif(cell range , 1 ) = number expected to complete ???
It is being prepopulated with 1 to show that it applies to the # listed in column A. once complete (that will be determined manually outside the sheet, it will be highlighted green. Once we have manually highlighted all the 1's in a column green, I'm wanting the column header (CL.xx) to be highlighted green


CL.xx
a
1​
b
c
1​
d
1​
e
1​
f
g
h
1​
i
1​
 
Upvote 0
in your example
is that complete - even though not all the rows have a 1 in

counta(a2:a1000) = Sum(B2:b1000)

Book5
AB
1CL.xx
2a1
3b1
4c1
5d1
6e1
7f1
8g1
9h1
10i1
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B1Expression=COUNTA($A$2:$A$1000)=SUM($B$2:$B$1000)textNO
B2:B10Expression=B2=1textNO
 
Upvote 0
in your example
is that complete - even though not all the rows have a 1 in

counta(a2:a1000) = Sum(B2:b1000)

Book5
AB
1CL.xx
2a1
3b1
4c1
5d1
6e1
7f1
8g1
9h1
10i1
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B1Expression=COUNTA($A$2:$A$1000)=SUM($B$2:$B$1000)textNO
B2:B10Expression=B2=1textNO
not every row will have a 1 in it. The 1 will be input from the beginning and highlighted green once complete. Again, once all the 1's are highlighted within that column, the header for that column would also turn green to signify complete/all the 1s for that column have been highlighted green/completed. A better example might be something like the following.


CL.34CL.75CL.3
a
1​
b
1​
c
1​
1​
d
1​
1​
e
1​
1​
f
1​
g
h
1​
i
1​
1​
 
Upvote 0
i think you may need VBA - so something fills the cells with 1 Green only when that column is complete

so because cell in D5 is now green fill - then that column is complete and should change the header

are the cells with 1 manually filled green when deemed complete

Book6
ABCD
1CL.34CL.75CL.3
2a1
3b1
4c11
5d11
6e11
7f1
8g
9h1
10i11
Sheet1
 
Upvote 0
i think you may need VBA - so something fills the cells with 1 Green only when that column is complete

so because cell in D5 is now green fill - then that column is complete and should change the header

are the cells with 1 manually filled green when deemed complete

Book6
ABCD
1CL.34CL.75CL.3
2a1
3b1
4c11
5d11
6e11
7f1
8g
9h1
10i11
Sheet1
"so because cell in D5 is now green fill - then that column is complete and should change the header" - yes, change the header (cell D1 in this example) green because all cells in that column with a 1 (manually populated) have also been manually populated green).

"are the cells with 1 manually filled green when deemed complete" - yes
 
Upvote 0
ok, sorry - you will need VBA to test a cell for the fill colour
conditional formatting cannot do that yet

I do not provide VBA solutions on the forum, sorry
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,170
Members
453,021
Latest member
Justyna P

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