Weighted Average with different criterias

msalas0308

New Member
Joined
Sep 30, 2020
Messages
14
Office Version
  1. 365
Platform
  1. Windows
Hello,
I am trying to find the weighted average of 2 or more cells with different words. I can't seem to find the correct formula. I want to find the weighted average of everything with the word MA in it, in the Work Center column. I can't seem to get the correct formula.


Work CenterSnapshotTotal Capacity
RVR100MA31.0400.0
RVR101MA102.080.0
RVR102MA48.080.0
RVR103MA60.080.0
RVR104MA64.080.0
RVR108MA90.680.0
RVR120MA95.080.0
RVR160MM134.5240.0
RVR198MA17.0240.0
RVR199MA0.040.0
RVR200MS5.0800.0
RVR201MS92.580.0
RVR202MS92.380.0
RVR203MS64.080.0
RVR204MS71.080.0
RVR205MS78.080.0
RVR206MS0.080.0
RVR209MS0.080.0
 
Thank you all. It's still not the correct formula. I am trying to get the weighted average of RVR101MA, RVR102MA, RVR103MA, RVR104MA and RVR120MA together.
 
Upvote 0

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
What answer would you expect to get from the data you posted?
 
Upvote 0
Sorry, I should have been more specific.

I am trying to find the weighted average of RVR101MA, RVR102MA, RVR103MA, RVR104MA and RVR120MA as a whole, in column "A" (Work Center) with column "C" (Total Capacity) as the weight. I want the formula to be able to look for everything with those words and calculate the weighted average based on that. Similar to the formulas you all have given me.

Book5
ABC
1Work centerSnapshotTotal Capacity
2RVR100MA31.0400.0
3RVR101MA102.080.0
4RVR102MA48.080.0
5RVR103MA60.080.0
6RVR104MA64.080.0
7RVR108MA90.680.0
8RVR120MA95.080.0
9RVR198MA17.0240.0
10RVR199MA0.040.0
11RVR160MM134.5240.0
12RVR200MS5.0800.0
13RVR201MS92.580.0
14RVR202MS92.380.0
15RVR203MS64.080.0
16RVR204MS71.080.0
17RVR205MS78.080.0
18RVR206MS0.080.0
19RVR209MS0.080.0
20RVR210ST98.0240.0
21RVR211ST105.0120.0
22RVR220LB333.0360.0
23RVR222LB87.080.0
24RVR230WE156.0120.0
25RVR240IC69.0160.0
26RVR250EO381.0200.0
27RVR254AM78.080.0
28RVR260VT157.0120.0
29RVR298MS106.0240.0
30RVR300EL424.2400.0
31RVR320IT147.0200.0
32RVR340AN327.0360.0
33RVR399IE9.040.0
34RVR500OP4.040.0
35RVR610EI1.040.0
36RVRPLNR0.056.0
37RVRSCED0.056.0
Sheet1
 
Upvote 0
Try this small change to Fluff's formula.
SUMPRODUCT((ISNUMBER(MATCH(A2:A19,F2:F6,0)))*(B2:B19*C2:C19))/SUMPRODUCT(--(ISNUMBER(MATCH(A2:A19,F2:F6,0))),C2:C19)

Book1
ABCDEF
1Work CenterSnapshotTotal CapacityMatch
2RVR100MA3140073.8RVR101MA
3RVR101MA10280RVR102MA
4RVR102MA4880RVR103MA
5RVR103MA6080RVR104MA
6RVR104MA6480RVR120MA
7RVR108MA90.680
8RVR120MA9580
9RVR160MM134.5240
10RVR198MA17240
11RVR199MA040
12RVR200MS5800
13RVR201MS92.580
14RVR202MS92.380
15RVR203MS6480
16RVR204MS7180
17RVR205MS7880
18RVR206MS080
19RVR209MS080
Sheet2
Cell Formulas
RangeFormula
D2D2=SUMPRODUCT((ISNUMBER(MATCH(A2:A19,F2:F6,0)))*(B2:B19*C2:C19))/SUMPRODUCT(--(ISNUMBER(MATCH(A2:A19,F2:F6,0))),C2:C19)
 
Upvote 0
Solution
@AhoyNC - That worked, thank you so much.

Thank you everyone for all the help with this one. It was driving me crazy.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
You're welcome. Fluff did most of the work on this one.
 
Upvote 0

Similar threads

Forum statistics

Threads
1,223,948
Messages
6,175,571
Members
452,652
Latest member
eduedu

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