NOT(ISBLANK(ref)) help

Larysa

New Member
Joined
Oct 16, 2014
Messages
1
Hi,
I am trying to apply the conditional formatting to a column D in a spreadsheet. I need the following:
If there is a value in a cell A1-the cell D1 needs to be filled with yellow, if there is a value in a cell B1- cell D1 becomes red, if the value in cell C1=100%, D1 becomes green.
I used:
NOT(ISBLANK(A1))-for yellow
NOT(ISBLANK(B1))-for red
The value = 100% for green.
It works when I apply that conditional formatting to one cell (D1 for example). However, if i try to format several cells in a column D it highlights all of the cells in red.
What could be the problem?
Please, let me know if you have any suggestions.
Thank you.
 

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
Hello,

a better method to use is countA , countA would return one if A1 is filled , also countA(B1) also etc... use conditional formatting based on the 0 for no color , 1 for yellow, 2 for red, 3 for green
=IF(COUNTA(A1)=1,1,IF(COUNTA(B1)=1,2,IF(C1=100,3,0)))

hope this helps :)
 
Upvote 0
Note that 100% is not equal to 100, but rather is equal to 1.
So in checking column C, you need to either check for it =1 or =100%.
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,912
Members
452,366
Latest member
TePunaBloke

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