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

clayt101

Board Regular
Joined
Nov 26, 2008
Messages
53
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: 6

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
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,215,102
Messages
6,123,097
Members
449,096
Latest member
provoking

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