Conditional Formatting based on multiple cells

brass312

New Member
Joined
Aug 12, 2014
Messages
14
Guys I know that it should be simple:

I got for statuses for different categories in cells A1-A4

1 2 3 4 5
A ok ok ok ok

I want conditionaal formatting to color A5 in blue only if all 4 cells A1-A4 have 'ok' populated in them.
Just cannot figure it out..
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Use conditional formatting in A5 as =Countif(A1:A4,"ok")=4
 
Upvote 0
Use conditional formatting in A5 as =Countif(A1:A4,"ok")=4


thanks, what if in another case I have different scenario:

Test 1Test 2Test 3Test 4Status
okokokcompleted

<tbody>
</tbody>

so I want A5 in blue when I have 'ok' in A1-A3 and 'completed' in A4
 
Upvote 0
=AND(COUNTIF(A1:A3."ok")=3,A4="completed")
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,733
Members
448,987
Latest member
marion_davis

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