Returning a '0' if no data

tintostu

New Member
Joined
Nov 11, 2005
Messages
40
I'm putting together a sheet, that calculates profit margin, however I'm if there is not an input on qty i get the DIV/0! error.

The formula is as shown, =sum(I7/(H7/1.2)*100%) the '0' input is linked into the H7 cell.

All I want it to return is 0.00% if there is a '0' in cell C7

Thanks for your help in advance

Stuart
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
I'm putting together a sheet, that calculates profit margin, however I'm if there is not an input on qty i get the DIV/0! error.

The formula is as shown, =sum(I7/(H7/1.2)*100%) the '0' input is linked into the H7 cell.

All I want it to return is 0.00% if there is a '0' in cell C7

Thanks for your help in advance

Stuart

=IF(N(H7),I7/(H7/1.2),0)

Format the formula cell as percentage.
 
Upvote 0
Never thought of doing it that way Aladin. Still learning after all these years. :)
 
Upvote 0

Forum statistics

Threads
1,224,551
Messages
6,179,470
Members
452,915
Latest member
hannnahheileen

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