Weighted average with SUMIFS

groovadelic

New Member
Joined
Mar 24, 2005
Messages
24
Hello - totally stumped and would appreciate if someone knows how to do a weighted average when working with SUMIFS.

Here is my Data table

A​
B​
C​
D​
E​
F​
G​
H​
Platform 1Platform 2DateAction 1 TotalAction 1 Median TurnaroundTotal Action 2Inactive Action 2Action 2 Turnaround
AX4/3/23918173.1
AX4/10/23101918.2
AZ4/17/2312110230.9
AY4/24/2313112137.5
AZ5/1/23808029.3
AX5/8/2370.946130.9
AZ5/15/2314113141.2
AX5/22/231019119.1
AZ5/29/2391.878151.9
AY6/5/235004.81496423.4
AZ6/12/2315722.96156120.2


Here is what I'm trying to captured in monthly tabs - this is April.

A​
B​
C​
D​
E​
F​
AprilA
Action 1 TotalAction 1 Average TurnaroundTotal Action 2Total Action 2 InactiveAction 2 Average Turnaround
X19117241
Y13112138
Z12110231


Formula for Action 1 Total: =SUMIFS(Data!D:D,Data!A:A,B$1,Data!B:B,A4,Data!C:C,">="&DATE(2023,4,1),Data!C:C,"<"&DATE(2023,4,31))
Action 2 Total is similar: =SUMIFS(Data!F:F,Data!A:A,B$1,Data!B:B,A4,Data!C:C,">="&DATE(2023,4,1),Data!C:C,"<"&DATE(2023,4,31))
Same for Action 2 Inactive Total.

I was calculating average action 1 turnaround and action 2 turnaround by taking the Total ÷ a COUNTIFS

What I really want is the weighted average of Turnaround Action 1 (column E) based on the total in column D and weighted average "Turnaround action 2" (column H) based on column F.

Can anyone help?
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Try:
Book1
ABCDEFGH
1Platform 1Platform 2DateAction 1 TotalAction 1 Median TurnaroundTotal Action 2Inactive Action 2Action 2 Turnaround
2AX4/3/2023918173.1
3AX4/10/2023101918.2
4AZ4/17/202312110230.9
5AY4/24/202313112137.5
6AZ5/1/2023808029.3
7AX5/8/202370.946130.9
8AZ5/15/202314113141.2
9AX5/22/20231019119.1
10AZ5/29/202391.878151.9
11AY6/5/20235004.81496423.4
12AZ6/12/202315722.96156120.2
13
14
15AprilA
16Action 1 TotalAction 1 Average TurnaroundTotal Action 2Total Action 2 InactiveAction 2 Average Turnaround
17X191.0017238.74
18Y131.0012137.50
19Z121.0010230.90
Sheet1
Cell Formulas
RangeFormula
C17:C19C17=SUMPRODUCT(--(MONTH($C$2:$C$12)=4),--($A$2:$A$12=$B$15),--($B$2:$B$12=$A17),$D$2:$D$12,$E$2:$E$12)/$B17
F17:F19F17=SUMPRODUCT(--(MONTH($C$2:$C$12)=4),--($A$2:$A$12=$B$15),--($B$2:$B$12=$A17),$F$2:$F$12,$H$2:$H$12)/$D17
 
Upvote 0
Solution

Forum statistics

Threads
1,215,086
Messages
6,123,040
Members
449,092
Latest member
ikke

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