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

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Momentman

Well-known Member
Joined
Jan 11, 2012
Messages
4,142
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Use conditional formatting in A5 as =Countif(A1:A4,"ok")=4
 
Upvote 0

brass312

New Member
Joined
Aug 12, 2014
Messages
14
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

Momentman

Well-known Member
Joined
Jan 11, 2012
Messages
4,142
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
=AND(COUNTIF(A1:A3."ok")=3,A4="completed")
 
Upvote 0

Forum statistics

Threads
1,190,693
Messages
5,982,324
Members
439,773
Latest member
tyruschen

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
Top