I'd like to get the average of a row filled with percentages. But because
the percentages will only be filled in when the month has started I have some
div/0! values. How can I calculate the average? And please try to keep it
simple :D
Hope I explained it clearly, if not let me know, see an example below.
thx
Nagje
example (yes i know this isn't a row ;-) ):
Jan 95.2%
Feb 100.0%
March 93.2%
April 95.0%
may 96.9%
June 97.6%
July #div/0!
Aug #div/0!
Sept #div/0!
Okt #div/0!
Nov #div/0!
Dec #div/0!
Average year = ???????
=C1/D1
use
=IF(D1="","",C1/D1)
The #div/0 errors will vanish and the average will be over the available
values.
--
Gary''s Student - gsnu200757
Rather than:
A1 = x/y
(which would generate Div by zero errors)
Restructure the formula to:
A1= If(y=0, 0, x/y)
I'm sure your formula is more complicated than x/y, but the principle
remains the same.
--
HTH,
George
"nagje" <na...@discussions.microsoft.com> wrote in message
news:22156902-5312-410A...@microsoft.com...
Alternatively, use the array formula
=AVERAGE(IF(ISNUMBER(B1:B12),B1:B12,""))
which must be entered with SHIFT+CTRl+ENTER not just ENTER
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email
"nagje" <na...@discussions.microsoft.com> wrote in message
news:22156902-5312-410A...@microsoft.com...
"nagje" <na...@discussions.microsoft.com> wrote in message
news:22156902-5312-410A...@microsoft.com...
Show us the data from which the percentages are calculated.
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email
"nagje" <na...@discussions.microsoft.com> wrote in message
news:B0CAA38C-A2DC-4455...@microsoft.com...
Manual calculation over 11 months gives me: 95.84% The formula you gave me
gives me 96.11%. A difference of 0.27%. Not that big but there are also rows
where the difference is 1.00%.
Hope this is what you asked for. Thanx again for helping.
Select all the values and use the decimal increase tool to see what I am
taking about
Try this: suppose the non error values are in A1:A11. Write a formula
=SUM(A1:A11) Do you get 'your' 95.84 or 'my' 96.11 ?
If more help need please send me a copy of the file (remove confidential
stuff)
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email
"nagje" <na...@discussions.microsoft.com> wrote in message
news:645B99D4-484E-446C...@microsoft.com...
More to the point, what appears to be 92.86 could be as big as
92.8649...9 (enough 9s to fill 15 significant digits). But when I
append 49...9 to all of the OPs 11 numbers, the largest average is
still only 95.845909 -- not even close to 96.11.
On the other hand, I cannot duplicate the OP's claim that your formula
results in 96.11.
So I think the problem is not simply rounded displayed values v.
actual value, but the fact that the OP's numbers no longer match what
was posted earlier -- or the OP has a typo in the range that specified
for AVERAGE(), or the OP has misinterpreted what you suggested that
the OP do.
I suggest that the OP post the formulas that the OP is now using after
applying your suggestion.
Thx for all the help. If we'd be in a pub now I'd buy you a beer :-)