Conditional Formatting and blank fields

Pumpk1n

Board Regular
Joined
Jan 31, 2017
Messages
86
Office Version
  1. 365
Platform
  1. Windows
I have an incoming CSV file which has blanks where no data exists. When I apply conditional formatting using the EXCEL functionality (i.e. where cell value is greater than a specific value), the blank rows are also shaded. There are different columns -- one is formatted as "accounting" and the other is formatted as "custom" but neither treats the CSV value as 0. I'd like those blank CSV fields treated as 0 so they don't meet the criteria. Is there a way to do tha within existing conditional formatting functionality?
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Hi Pumpk1n,

Have you tried and AND statement to also check for a null cell?

csv2.csv
DE
1Value1Value2
27
355
43330
5022
csv2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D2:E5Expression=AND(D2<>"",D2>0)textNO
 
Upvote 0
I don't believe I can apply that formula based on what I see in the formatting selection box. Can you confirm.

1599054664623.png
 

Attachments

  • 1599054624343.png
    1599054624343.png
    20 KB · Views: 1
Upvote 0
Pumpk1n,

You need to select the formula option

1599055327912.png
 

Attachments

  • 1599055187083.png
    1599055187083.png
    30.9 KB · Views: 2
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,824
Members
449,050
Latest member
Bradel

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