Average based on multiple criteria

slamanager

Board Regular
Joined
Apr 20, 2007
Messages
129
Can some one please show me a formula how i can get an Average based on a date range, sales person, sales type please.

Col A
dates dd/mm/yyyy
Col B
Sales person names
Col C
types "New" "Closed" "Open"

I know by using a sumproduct per month how many itmes there are but unable to compute an average.

Please some one help me.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Can some one please show me a formula how i can get an Average based on a date range, sales person, sales type please.

Col A
dates dd/mm/yyyy
Col B
Sales person names
Col C
types "New" "Closed" "Open"

I know by using a sumproduct per month how many itmes there are but unable to compute an average.

Please some one help me.

On all versions...

Control+shift+enter, not just enter:
Code:
=AVERAGE(
    IF($A$2:$A$400>=F2,
    IF($A$2:$A$400<=G2,
    IF($B$2:$B$400=H2,
    IF($C$2:$C$400=I2,
      $D$2:$D$400)))))

where F2:G2 houses dates specifying a range with F2 <= G2, H2 a sales person of interest, and I2 a sales type of interest. D2:D400 houses the values to average.

If you are on Excel 2007 or later...

Just enter:
Code:
=AVERAGEIFS(
    $D$2:$D$400,
    $A$2:$A$400,">="&F2,
    $A$2:$A$400,"<="&G2,
    $B$2:$B$400,H2,
    $C$2:$C$400,I2)
 
Upvote 0

Forum statistics

Threads
1,224,594
Messages
6,179,795
Members
452,943
Latest member
Newbie4296

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