Formula to calculate % coming up as #DIV/0! - what am I doing wrong?

halesowenmum

Active Member
Joined
Oct 20, 2010
Messages
383
Office Version
  1. 365
Platform
  1. Windows
Hi, I have the following spreadsheet:

In cell Q6 the value 237 (a total)
In cell P6 the value 99 (those out of the 237 that have been completed)
In R6 the result of the following formula on those two cells:

=(Q6-P6)/P6

The cell is formatted as %.

But I get #DIV/0! as the result - what have I done wrong?

I want to find out how much of 237 99 is, as a % - I always seem to find %s a real pain if you don't get 'em just right so any help would be so gratefully received.

Thanks very much indeedy.
 
halesowenmum,

How about:


Excel 2007
PQR
69913971.22%
71390.00%
899 
9 
10
Sheet1
Cell Formulas
RangeFormula
R6=IF(ISERROR(P6/Q6),"",P6/Q6)
R7=IF(ISERROR(P7/Q7),"",P7/Q7)
R8=IF(ISERROR(P8/Q8),"",P8/Q8)
R9=IF(ISERROR(P9/Q9),"",P9/Q9)
 
Upvote 0
That will do very very nicely thank you. I shall pop that into my spreadsheet tomorrow and I'm sure that will do the trick for me. Thanks so much for taking the time to reply in such detail. :)

halesowenmum,

How about:

Excel 2007
PQR

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]6[/TD]
[TD="align: right"]99[/TD]
[TD="align: right"]139[/TD]
[TD="align: right"]71.22%[/TD]

[TD="align: center"]7[/TD]
[TD="align: right"][/TD]
[TD="align: right"]139[/TD]
[TD="align: right"]0.00%[/TD]

[TD="align: center"]8[/TD]
[TD="align: right"]99[/TD]
[TD="align: right"][/TD]

[TD="align: center"]9[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]10[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

</tbody>
Sheet1

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: #E0E0F0"]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]R6[/TH]
[TD="align: left"]=IF(ISERROR(P6/Q6),"",P6/Q6)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]R7[/TH]
[TD="align: left"]=IF(ISERROR(P7/Q7),"",P7/Q7)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]R8[/TH]
[TD="align: left"]=IF(ISERROR(P8/Q8),"",P8/Q8)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]R9[/TH]
[TD="align: left"]=IF(ISERROR(P9/Q9),"",P9/Q9)[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
halesowenmum,

Thanks for the feedback.

You are very welcome. Glad I could help.

Come back anytime.
 
Upvote 0
Don't worry - I'll be back!!! Have put it into my summary sheet and it's working a total treat.
 
Upvote 0

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