Solved

Creating an overall average of individual Averages

Posted on 2013-05-22
15
250 Views
Last Modified: 2013-05-24
see attached example.
I would like to accomplish what I show via adding other rows to do the intermediatry calcs in multiple steps in a single formula
i.e.
I have a row of numbers, and would like to divide each cell in that row (giving a ratio for each cell in the row)- and then averaging all of these ratios to get an overall ratio


The data given are in Cols A:C
I'm trying to produce cells G12 and H12 via cell formula
without the need of creating cells G4:H8

Using MS Excel 07
thanks
OverallLossAvg-Example.xlsx
0
Comment
Question by:endurance
  • 6
  • 5
  • 4
15 Comments
 
LVL 23

Expert Comment

by:NBVC
ID: 39187545
Try:

=AVERAGE(B4:B8/B2)

confirmed with CTRL+SHIFT+ENTER and copied to next cell
0
 
LVL 6

Expert Comment

by:worm-getter
ID: 39187546
for 2012:

=AVERAGE(B4/B$2, B5/B$2, B6/B$2, B7/B$2, B8/B$2)

you can do 2013 yourself.
0
 
LVL 23

Expert Comment

by:NBVC
ID: 39187548
or

=AVERAGE(INDEX(B4:B8/B2,0))

confirmed with just ENTER
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:endurance
ID: 39187777
Thanks  - the AVERAGE(INDEX(B4:B8/B2,0)) and
=AVERAGE(B4:B8/B2)
are just what I was looking for.
And I was able to extend it to a different application so that it multiplied each value in a row is divided by a value in a different row - and the cell showed the overall average of all of these ratios - AVERAGE(INDEX(B4:B8/C4:C8,0))

Though one problem I just encountered when doing so - if a pair of cells (numerator and denominator) were zero (e.g. no claims) - it gave me a #Div0 error - is there a way to adjust the above formulas to account for zero - so anything ratio with a zero demonitor doesn't count towards the average?
0
 
LVL 6

Expert Comment

by:worm-getter
ID: 39187846
it should only give a #Div0 error when the denominator = 0.
try using a checking condition.
0
 
LVL 23

Accepted Solution

by:
NBVC earned 500 total points
ID: 39187877
Try:

=AVERAGE(IF(C4:C8<>0,B4:B8/C4:C8))

confirmed with CTRL+SHIFT+ENTER
0
 

Author Comment

by:endurance
ID: 39188272
Yep!! that did it,
one last Q - is there any way to adjust the
AVERAGE(INDEX(B4:B8/B2,0))
formula to account for zeros
?
0
 
LVL 6

Expert Comment

by:worm-getter
ID: 39188325
use if statement
0
 

Author Comment

by:endurance
ID: 39188335
What would be the formula
I tried
=AVERAGE(INDEX(IF($E$4:$E$8<>0,$B$4:$B$8/$E$4:$E$8),0))

but got an error
0
 
LVL 6

Expert Comment

by:worm-getter
ID: 39188407
try moving the last 0.
0
 
LVL 23

Expert Comment

by:NBVC
ID: 39188447
Wouldn't it be like I showed before?

=AVERAGE(IF($E$4:$E$8<>0,B$4:$B$8/$E$4:$E$8))

you would need to confirm with CTRL+SHIFT+ENTER.
0
 

Author Comment

by:endurance
ID: 39188476
yep that was great, was just wondering if you can do it with the Average(Index ...) way
(preferred to only have to press ENTER )
0
 
LVL 23

Expert Comment

by:NBVC
ID: 39188572
Because the #Div/0 becomes an element in the resulting array, we need the Array formula to "cancel" out the error, so need the CSE confirmation.
0
 

Author Comment

by:endurance
ID: 39191102
k, thanks
0
 

Author Comment

by:endurance
ID: 39194403
How would I modify

=AVERAGE(IF(C4:C8<>0,B4:B8/C4:C8))
if I want to exclude all ratios where EITHER the denominator is 0 OR the numerator is blank?
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question