Conditional formatting on 4 cells in row

AdRock

Board Regular
Joined
Apr 1, 2011
Messages
128
I have 4 columns of numbers.

A1 B1 C1 D1
1 0 0 0
2 0 2 0
0 0 1 0
0 4 0 4
0 3 0 0
0 0 0 5

Some of the rows have 1 positive number and 3 zeros, some will have 2 positive numbers and 2 zeros.

Is there a way I can do conditional formatting or something that highlights any row which only has 1 positive number? It doesn't matter which cell in the row it's in but as long as the other 3 cells have zeros.
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Try the following

Use 'formula is'

=COUNTIF($A1:$D1,">0")=1

Ensure you selected A1 first when selecting range as you might get unexpected results otherwise.

HTH
 
Upvote 0

Forum statistics

Threads
1,224,567
Messages
6,179,569
Members
452,926
Latest member
rows and columns

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