#DIV/0! displays in box (don't want to show/print)

FragaGeddon

Board Regular
Joined
Mar 24, 2005
Messages
137
Basically I have a formula like this: =SUM(J7/L7)
......K7 will display the info as a percentage.
When there is no data in L7 it displays #DIV/0!.
When something is entered in L7 and nothing in J7 it displays 0.00.
Basically I want to either hide the 0.00 and #DIV/0! from display and/or printing.
The really more important thing is to not have that cell print if there is no value.

Thanks for your help.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Basically I have a formula like this: =SUM(J7/L7)
......K7 will display the info as a percentage.
When there is no data in L7 it displays #DIV/0!.
When something is entered in L7 and nothing in J7 it displays 0.00.
Basically I want to either hide the 0.00 and #DIV/0! from display and/or printing.
The really more important thing is to not have that cell print if there is no value.

Thanks for your help.
Try this...

=IF(OR(J7="",L7=""),"",J7/L7)
 
Upvote 0
Just need a bit more help with this.
Adding cells C5 to C11. if there is no value, then want it to display nothing.
I've tried:
=IF(OR(C5="",C6="",C7="",C8="",C9="",C10="",C11=""),"",C5:C11)
Which I believe says if any of those cells have nothing, then display nothing.
So i tried IF(OR(C5="":C11=""),"",C5:C11) which doesn't work either.
 
Upvote 0
I also have this in cell D12:
=IF(OR(C12=""),"",C12/Y12)
but the value in C12 is $0.00, which is really the main cell I'm worried about than the one above.
I tried =IF(OR(C12="$0.00"),"",C12/Y12) but that doesn't work.
 
Upvote 0
Just need a bit more help with this.
Adding cells C5 to C11. if there is no value, then want it to display nothing.
I've tried:
=IF(OR(C5="",C6="",C7="",C8="",C9="",C10="",C11=""),"",C5:C11)
Which I believe says if any of those cells have nothing, then display nothing.
So i tried IF(OR(C5="":C11=""),"",C5:C11) which doesn't work either.
I assume you want EVERY cell to have a number otherwise return blank?

=IF(COUNT(C5:C11)<6,"",SUM(C5:C11))
 
Upvote 0
SS17%7E0.jpg
 
Last edited:
Upvote 0
I assume you want EVERY cell to have a number otherwise return blank?

=IF(COUNT(C5:C11)<6,"",SUM(C5:C11))
Every number might not have a value. See my screenshot and you'll see. Thanks for your help. I'm more worried about the % column from displaying #DIV/0!
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,726
Members
452,939
Latest member
WCrawford

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