Conditional Formatting with IF(AND)

bubblystace

New Member
Joined
Dec 5, 2017
Messages
8
Hi All,

I'm stuck on some CF and hope someone can help please :)

I want to CF to highlight non-blank cells if B4 is not N/A. I've tried using formula below but not sure why it isn't working.
=IF(AND($D4='ConditionRatings'!$A$1:$A$4),AND(COUNTBLANK($D1:$D5)>0))

E.g. If B4 is "1" then B1, B2, B3 and B5 need to be populated, if not they are to be shaded red.

COLUMN ACOLUMN B
1Measurement10LM
2MaterialBrick
3Height(red fill)
4Condition Rating1
5Remaining Life(red fill)

<tbody>
</tbody>


 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Hi,

The formula you posted won't work, it's syntax and logic is incorrect in more ways than 1.
Without knowing more about your setup, and just based on your description, you can use the following formula as your CF formula in B1, B2, B3, B5.


Book1
ABCD
1Measurement10LMFALSE
2MaterialBrickFALSE
3HeightTRUE
4Condition Rating1
5Remaining LifeTRUE
Sheet8
Cell Formulas
RangeFormula
D1=AND(B$4<>"NA",B1="")


Enter formula as CF formula for B1, format Fill Red, then use Format Painter to copy for B2, B3, B5.
 
Upvote 0

Forum statistics

Threads
1,215,639
Messages
6,125,971
Members
449,276
Latest member
surendra75

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