Averageifs based on row range(multiple dates) and matching column range.

fusion5151

New Member
Joined
Jan 19, 2016
Messages
19
Office Version
  1. 365
Platform
  1. Windows
Hi,

I'm looking to build a formula to average a specific date range(row 2) based on a specific matching criteria in the row column A.

In this case once there is an average, i'd like to create a sum so for apples this would be a total of 14.

Also note my date ranges will consciously change so i'd like to adjust based on this criteria.

See below for table.

Start Date
3-Jan​
1-Jan​
2-Jan​
3-Jan​
4-Jan​
5-Jan​
6-Jan​
7-Jan​
8-Jan​
9-Jan​
10-Jan​
AverageEnd Date
7-Jan​
Apples
5​
10​
5​
8​
5​
2​
3​
7​
8​
7​
5​
Apples
Apples
9​
4​
7​
7​
2​
5​
2​
8​
2​
7​
5​
Orange
Oranges
5​
9​
7​
5​
1​
9​
5​
6​
9​
4​
5​
Tomato
Oranges
5​
3​
1​
2​
5​
1​
2​
3​
4​
4​
2​
Apples
5​
6​
6​
1​
1​
9​
4​
3​
8​
3​
4​
Tomato
3​
1​
7​
6​
4​
10​
4​
8​
5​
4​
6​
Tomato
8​
5​
7​
6​
1​
7​
2​
1​
1​
8​
5​

Thanks for all your help.

Steven
 
The simplest & most efficient way would be to use
Excel Formula:
=SUMIFS(M:M,A:A,O3)
 
Upvote 0

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,215,330
Messages
6,124,308
Members
449,151
Latest member
JOOJ

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