Chart with Negative Percentage (Can't Divide by 0)

clayt101

Board Regular
Joined
Nov 26, 2008
Messages
55
Is it possible to do what I am trying to do? I am trying to show the amount of money spent, compared to what we have been allocated. The issue is where money has been spent, but we have $0 allocated...ie you can't divide by 0.
In mind, on the attached picture, the percentage for "Other Charges" should be undefined or an error, since it should be graphing (0-64.85)/0.

Is there anyway to show this differently?
Thanks
 

Attachments

  • Excel.JPG
    Excel.JPG
    174.9 KB · Views: 11

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Hi,

Yeah, dividing by zero is a mathematical sin. When I know I have possibilities of dividing be zero I add a little fudge factor. I create a named range called "rsn". The formula for rsn is =1e+300.

Then in my cell I change it to: (0-64.85)/(0+rsn)

Since rsn is a Really Small Number, it won't affect your values by any significant amount. Matter of fact if the allocated amount is zero, your value will look like zero.
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,197
Members
453,021
Latest member
pingpong7117

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