Unwanted Display of Zero Values

Anne Troy

MrExcel MVP
Joined
Feb 18, 2002
Messages
2,632
Office Version
  1. 365
Platform
  1. Windows
I know how NOT to display zeroes across the board.
I know how NOT to display zeroes using conditional formatting.
I know how NOT to display zeroes using a formula.
At least I thought I did. I consider myself fairly efficient at creating formulas.

I'm trying to get the value over 40 for overtime hours.

When G5 = 40, I cannot get it to NOT display the 0.00 in the cell.

Here's my formula....

=IF(G5=40,"",IF(MAX(0,G5-40)=0,"",MAX(0,G5-40)))

Here's another that fails...

=IF(G5=40,"",MAX(0,G5-40))
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Maybe a floating point arithmetic precision issue. How about


=IF(ROUND(G5,0)=40,"",MAX(0,G5-40))
 
Upvote 0
Both formulas work OK for me, i.e. the Cell with the formula in it remains blank if the value in G5 is <=40.

Strange how they're not working for you...

Matty
 
Upvote 0
Thanks VoG! Have you tried that Tanqueray with some pink lemonade? Nom nom!!

The rounding worked, though we are using time formulas and I used no rounding to come up with the values in the totals. Ugh.

Thanks again.
Thanks, Matty, for the shot at it.
 
Upvote 0
Thanks VoG! Have you tried that Tanqueray with some pink lemonade? Nom nom!!

No I haven't. As far as I know 'pink lemonade' is not available here (unless it is called something different). I just stick to tonic although Tanqueray is drinkable neat.

Glad that it worked for you.
 
Upvote 0

Forum statistics

Threads
1,224,562
Messages
6,179,526
Members
452,923
Latest member
JackiG

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