Finding Average of a range based on values in another range

cyglor

New Member
Joined
Feb 14, 2016
Messages
9
This is what I want to do.
I need to find the average value in Column B that is in between two numbers (or more accurately between the range of two numbers) in column A. For example I want to find the average column B value that is in between 2000 and 2001.

Column A Column B
2002 14.5
2001.9 13.5
2001.8 14.1
2001.7 15
2001.6 12.9
...
2001.0 11.5
2000.9 10.9
2000.8 11.9
...
1999.9 10.5
1999.8 15.2

This goes on for over 5000 rows. Is there a way to automate the process. I have tried AverageIFs and CountIfs and tried combinations there of, but I can't seem to get it to work.
Is there a single formula or steps that can get this quickly?

Cheryl
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
The formatting got jumbled. The first column ends on the .# and the second column are the last 3 numbers.
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,988
Members
452,373
Latest member
TimReeks

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