Change Cell Color if more than one has a value, or if another has no value.

UncleBajubjubs

Board Regular
Joined
Jul 11, 2017
Messages
111
Office Version
  1. 2010
Good morning, I have a table with 4 columns where columns A, B, and C can have an amount of money, and D a text string. It's intended that the the user will put in an amount of money into one of A, B, or C, and they will enter a value into column D for any rows that have anything in the previous columns.

In this table as an example, rows 1 and 2 are filled out correctly, but row 3 is wrong because both A and C have a value, and row 4 is wrong because there is a value in B, but nothing in D.
56E1
22G6
7134B2
65

How might I set it so that so cells A, B, and C will be highlighted if more than 1 of the 3 have values, and D will be highlighted if there is no label when 1 of A,B, or C have a value?
Thanks
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Hi,

Use conditional formatting:
For A1 to C4
Excel Formula:
=COUNTA($A2:$C2)>1

For D1 to D4
Excel Formula:
=Isblank($D2)
 

Attachments

  • conditionalFormattingCountA.JPG
    conditionalFormattingCountA.JPG
    106.9 KB · Views: 18
Upvote 0
Solution
Thanks, that works pretty great!

Is there way to make it not count cells that have "0" in them? If I have 2 and 0 in A and B, that makes it format.
 
Upvote 0
Thanks for the feedback.

Are you saying that if A, B, or C contains 0 this should also be considered as blank.
 
Upvote 0
Correct, if a row has 0, 2, and 0, that should be considered correctly filled out, and thus not format.
Thanks
 
Upvote 0
Hi,

Check below:

Excel Formula:
=AND(COUNTA($A2:$C2)>1,SUM($A2:$C2)>MAX($A2:$C2))
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,162
Members
453,021
Latest member
Justyna P

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