Solved

Creating an overall average of individual Averages

Posted on 2013-05-22
15
211 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
 

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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

746 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now