Select data range between two dates (From Dropdown) then average

Elfiraon

New Member
Joined
Sep 10, 2014
Messages
31


Right now I have two cells that are drop-down (light green) in which I can choose date intervals. What I would like to be able to grab a set of data under the “Value” column using the date interval then take the average. Say my most recent date is “9/4/2014” and the other date is “9/2/2014”. I want to take the average from the data set “9, 10, and 20”, and return the value in the yellow cell.
All help appreciated! Cheers!
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

bbott

Well-known Member
Joined
Feb 5, 2010
Messages
2,350
Welcome to the board. Try using the AVERAGEIFS function. Something like this assuming date ranges in A2 and B2 and table in A4:B8.

=AVERAGEIFS(B5:B8,A5:A8,"<="&A2,A5:A8,">="&B2)
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,016
Messages
5,834,956
Members
430,330
Latest member
drAli77

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
Top