Conditional format question.

dbmathis

Well-known Member
Joined
Sep 22, 2002
Messages
1,064
Hi all,

How would I go about creating a conditional format that checks for the following:

Format is the following two are true:

If D10 = "Test"

If self (cell of conditional format) is = ""

Thanks.
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
=IF(AND(D10="Test",LEN(A1)=0)

Or

=IF(AND(D10="Test",A1="")

Assumes A1 is the cell of interest.
 
Upvote 0
The issue I am having is that I need to format 2000 cells at once like this? Is there a painless way to so this?
 
Upvote 0
Hello dbmathis,
If you wanted to test all 2000 cells against D10 (for example) and say your first (of the 2000 cells) was A1, you could CF A1 with the formula:
=(AND($D$10="Test")*(A1=""))
Then use the format painter to paint the other 1999 cells.

If this isn't exactly what you're looking to do, then some other combination of absolute and/or relative references in the formula is going to be what you need.
 
Upvote 0
Then in the upper-most, left-most cell in your range -- we'll assume it's A1 here -- enter:

=IF(AND($D$10="Test",A1="")

in your data validation, then

click on cell A1 and click copy

highlight the rest of the range and click Edit | Paste special, select Validation.
 
Upvote 0

Forum statistics

Threads
1,214,870
Messages
6,122,021
Members
449,060
Latest member
LinusJE

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