Range of Numbers percentile avg

blimes

New Member
Joined
Jan 6, 2016
Messages
32
Office Version
  1. 2013
Platform
  1. Windows
I have a column of numbers in A1:A1000 and a number that is in cell G1. In cell G2 I want to make a average of the numbers in Column A1:A1000 that are within 5% +or- of the value in G2. Can anyone help me on this?

Thanks
Adam
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Like this?

Book1 (version 1).xlsb
ABCDEFG
17197750
25342754.25
38946
44390
57125
Sheet8
Cell Formulas
RangeFormula
G2G2=AVERAGE(IF((A1:A1000>=G1*0.95)*(A1:A1000<=G1*1.05),A1:A1000))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Another option
Excel Formula:
=AVERAGEIFS(A:A,A:A,"<="&G1*1.05,A:A,">="&G1*0.95)
 
Upvote 0
I thought it came out with 2007, but if not I'm sure I had it in 2013.
 
Upvote 0
Just checked the Excel Functions Bible "By Norman Harker in association with Ron de Bruin" and that shows it appeared with 2007
 
Upvote 0
I think that MS have that wrong as the Excel Function Bible was last modified in 2014 & shows that function so it must have been available in 2013.
 
Upvote 0
It appears you're right and Microsoft docs are wrong. I have 2013 loaded on another computer, and it has AVERAGEIFS.
 
Upvote 0

Forum statistics

Threads
1,214,913
Messages
6,122,207
Members
449,074
Latest member
cancansova

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