Display 0% rather than -

seshultz

New Member
Joined
May 25, 2011
Messages
7
Well since I got such great response so quickly, I'll try you for another question! :)

I am using the formula =IF(ISERROR(P7/Q7),"-",P7/Q7) to display a "-" rather than an error when the data isn't yet entered for calculcation.

However, if data is entered for calculation and denominator is 0, I want it to display a 0 (or NA or something else) rather than a -, so it will be obvious data was entered.

Is this possible?

Thanks!
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Well since I got such great response so quickly, I'll try you for another question! :)

I am using the formula =IF(ISERROR(P7/Q7),"-",P7/Q7) to display a "-" rather than an error when the data isn't yet entered for calculcation.

However, if data is entered for calculation and denominator is 0, I want it to display a 0 (or NA or something else) rather than a -, so it will be obvious data was entered.

Is this possible?

Thanks!
Maybe this...

=IF(Q7=0,0,P7/Q7)
 
Upvote 0
Thanks T. Valko. But that seems to put a 0 in every calculated cell, as well as everyone which hasn't been calculated yet.

I think I am getting 2 different errors - both because it doen't like 0 or no data entered in the denominator. I want to display something different if there is noting entered in the denominator cell (- or NA because the only reason I am getting the error is because data has not yet been entered) and I want a 0 to display if the data entered was a 0.

THanks very much,
Sarah
 
Upvote 0
Thanks T. Valko. But that seems to put a 0 in every calculated cell, as well as everyone which hasn't been calculated yet.

I think I am getting 2 different errors - both because it doen't like 0 or no data entered in the denominator. I want to display something different if there is noting entered in the denominator cell (- or NA because the only reason I am getting the error is because data has not yet been entered) and I want a 0 to display if the data entered was a 0.

THanks very much,
Sarah
Ok, try this...

=IF(Q7="","N/A",IF(Q7=0,0,P7/Q7))
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,808
Members
452,944
Latest member
2558216095

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