Percentage Formula Question

kwinterborne

New Member
Joined
Aug 4, 2022
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
I’m looking for a single formula that would give me the results in column C, particularly when A=0.

=B2/A2 produces #DIV/0 if A=0

=IF(A2=0,0,B2/A2) produces 0% if A=0

I want to highlight when I have some but don’t want any. I manually entered the 300%. Basically, IF A=0,B*100%, otherwise B/A

Thanks in advance.

Ken
 

Attachments

  • Excess2.jpg
    Excess2.jpg
    33.8 KB · Views: 4

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
When A is 0, a percentage is meaningless--undefined. But here is what you're asking for so I'll give it to you:

IF A=0,B*100%, otherwise B/A
You have basically written the formula. I'm not sure what is giving you trouble:
Excel Formula:
=IF(A2=0,B*100%,B2/A2)
 
Upvote 0
LOL - yeah, I should have just tried it. I didn't know if B*100%. THANKS!
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,868
Members
449,054
Latest member
juliecooper255

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