conditional formating formula question

biglb79

Active Member
Joined
Oct 17, 2007
Messages
299
is there a formula I could use that would highlight cells AB3 and and AC3 in green if all cells G3:AA3 have been initialed and dated? I don't know the exact length for both. someone could use BB 10/28 or BBB 10/28/20

2nd part of formula would be to have them highlighted in red if there isn't an initial and date? currently names are listed and everyone is replacing their name with initials and date once completed so it can't just be any type of fill in the cell. hopefully my question makes sense. thanks in advance!
 
Very messy , must be a better way

=SUMPRODUCT(LEN(G3:AA3)-LEN(SUBSTITUTE(G3:AA3," ","")))=21
as a formula in the conditional format for green

=SUMPRODUCT(LEN(G3:AA3)-LEN(SUBSTITUTE(G3:AA3," ","")))<>21
for RED

OR
=COUNTIF($G$3:$AA$3,"*/*")=21
thanks so much! I got the red working but not the green yet and I populated cells G3:AA3 with BB 10/28, but you did give me enough to work with and figure out on my own the rest of the way
 
Upvote 0

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
countif() , using the / , may be better, as should only count the cells once
if everyone uses the / for a date entry

looking into last character as a number
 
Upvote 0
for ease I have just used 5 columns rather than 21
Book1
FGHIJKLMN
1G3 to AA3AB3AC3
2fred****harry tbb 10/28cc 10/28
3bb 10/28cc 10/28bb 10/29cc 10/29bb 10/30
4
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
M2:M3Expression=COUNTIF(G3:AA3,"*/*")=5textNO
M2:M3Expression=COUNTIF($G3:$AA3,"*/*")<>5textNO
that's perfect! thank you so much!
 
Upvote 0
Book1
FGHIJKLMNO
1G3 to AA3AB3AC3
2fred****harry tbb 10/28/cc 10/28FALSE
3bb 10/28cc 10/28bb 10/29cc 10/29bb 10/30TRUE
4
Sheet2
Cell Formulas
RangeFormula
O2:O3O2=COUNTIF($G2:$K2,"*/*")=5
Cells with Conditional Formatting
CellConditionCell FormatStop If True
M2:M3Expression=COUNTIF($G2:$K2,"*/*")=5textYES
M2:M3Expression=COUNTIF($G2:$K2,"*/*")<>5textYES
 
Upvote 0

Forum statistics

Threads
1,215,430
Messages
6,124,849
Members
449,194
Latest member
HellScout

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