Maths % how do you show when 0

Sahil123

Well-known Member
Joined
Oct 31, 2011
Messages
673
Hi all

If I’m trying to find out a percentage of a total where number of people to start were 0 - how do u show it

for example

An agent was assigned 2 tasks but he completed 4 would be 4/2 = 200%

An Agent was assigned 2 tasks but he completed 1 would be 1/2 = 50%

what if the agent was assigned 0 tasks but he completed 4 tasks - how would you calculate or show this as I can’t do 4/0


Thank you
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
I would probably show 100% - mathematically incorrect, but technically the agent did complete 100% of his zero tasks, regardless of how many they actually completed. If that doesn't sit right with you, consider going with "n/a", or "-", or something else to indicate that the calculation does not apply/doesn't make sense.
 
Upvote 0
I presume your percentages are generated by a formula... if so, I would test if the denominator cell's value is 0 and display the empty text string ("") if it is, otherwise display your calculated percentage. So, if your formula is this...

=A1/B1

then I would change it to this...

=IF(B1=0,"",A1/B1)
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,219
Members
452,620
Latest member
dsubash

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