Conditional formatting anomaly?

Bebbspoke

Board Regular
Joined
Oct 10, 2014
Messages
193
Hi Folks -

I use Windows 10 & subscribe to Office 365.
I am using 64-bit Excel as my data workbook is > 0.9Gb

I have Col D with the formula =IF(OR(B2="W",B2="L",B2="ne"),NETWORKDAYS.INTL($A2,C2,"1111101"),"")

This procures the number of weekends a process (as result = Col B) took to complete,
the start time being Col A and finish time is Col C. Nothing wrong with that.... it works correctly.

The appropriate cells in Col D are blank ("") for no process or contain a numeral.

I wish to highlight each Col D cell which contains (any) number - however - when I apply the Conditional Formatting > Highlight Cell Rules > Greater than > 0.5
then ALL cells including the blanks are highlighted??? - which seems most irrational and does NOT produce the given function!

Any suggestions, please?
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

etaf

Well-known Member
Joined
Oct 24, 2012
Messages
7,050
Office Version
  1. 365
Platform
  1. MacOS
try setting up a rule and usingthe following formula

=AND(D2 < > "", D2 > 0.5 )
Assumes you select a range D2:D???

if you just want to use column D
D:D
then the formulas needs to change to use row1
=AND(D1 < > "", D1 > 0.5 )
 
Upvote 0

friel300

Board Regular
Joined
Jan 22, 2008
Messages
69
if you are just looking to hilight the cells then you can use a conditional formatting formula

Code:
=D1<>""
 
Upvote 0

MARK858

MrExcel MVP
Joined
Nov 12, 2010
Messages
15,055
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
if you are just looking to hilight the cells then you can use a conditional formatting formula

Code:
=D1<>""
I think that you are missing the >0.5 requirement :biggrin:
Although the original question is unclear as the OP does also state any number :confused:
 
Last edited:
Upvote 0

Bebbspoke

Board Regular
Joined
Oct 10, 2014
Messages
193
Hi folks,

Thank you for your suggestions - the requirement is; -

Neither Blank cells (i.e. "") nor (numerical) zero are NOT to be highlighted

Cells with numeral > zero ALL to be highlighted.

Thank you "etaf" - your solution works.
 
Upvote 0

etaf

Well-known Member
Joined
Oct 24, 2012
Messages
7,050
Office Version
  1. 365
Platform
  1. MacOS
based on your statement
anything between 0 and 0.5 should also be highlighted

so this should work

=AND(D1 < > "", D1 > 0 )
 
Upvote 0

Bebbspoke

Board Regular
Joined
Oct 10, 2014
Messages
193
based on your statement
anything between 0 and 0.5 should also be highlighted

so this should work

=AND(D1 < > "", D1 > 0 )

Hi Etaf - no problems - with 0><1 as numerals can only be integers in the stated example.

Thanks.
 
Upvote 0

Forum statistics

Threads
1,191,684
Messages
5,987,994
Members
440,124
Latest member
dippy_egg

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