MatthewL Posted November 12, 2021 Posted November 12, 2021 I have a conditional formatting rule that fills a cell with colour if below x number of characters which is below and does the job. =LEN(J1)<7 I want to expand this now so it can look at column F and check if there is anything in there. Result is that if column F is filled and column J is below 7 characters I want it to highlight. If F if empty I don't want it to in this instance. Not sure how to get the IF F is not null sort of of thing.
Seb1780 Posted November 12, 2021 Posted November 12, 2021 Put in a seperate rule =f1="" Run that rule first Stop rules if condition met so the length rule does not run
asteer Posted November 12, 2021 Posted November 12, 2021 The following formula should work, its currently designed as a formula that would go into a cell, and return a 1 or a 2, so might need a little change if used in conditional formating =IF(AND(ISBLANK(F1),(LEN(J1))<7),1,2)
MatthewL Posted November 12, 2021 Author Posted November 12, 2021 =AND(LEN(J1)<7,F1<>"") Thanks, worked perfectly and what I needed. Cheers for that.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now