Weighted Average with three criteria

DDT~123

Board Regular
Joined
May 31, 2012
Messages
220
Greetings all - I'm stumped on how to perform a weighted average using three criteria. I'd appreciate it if you folks could help me out. The formula if it were a simple weighted average is below, as well as the 3 criteria needed.


Criteria:
IF Sheet1!A:A="North"
IF Sheet1!B:B="Apple"
IF Sheet1!C:C="Dog"

Simple Formula if criteria wasn't needed:
=SUMPRODUCT(Sheet1!K:K,Sheet1!H:H)/SUM(Sheet1!H:H)
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Try...

=SUMPRODUCT(--(Sheet1!A:A="North"),--(Sheet1!B:B="Apple"),--(Sheet1!C:C="Dog"),Sheet1!K:K,Sheet1!H:H)/
SUMIFS(Sheet1!H:H,
Sheet1!A:A,"North",Sheet1!B:B,"Apple",Sheet1!C:C,"Dog")
 
Last edited:
Upvote 0
I believe unjustified

Let's check the denominator...

Is this greater than zero?

=SUM(Sheet1!H:H)

And is this greater than zero?

=SUMIFS(Sheet1!H:H,Sheet1!A:A,"North",Sheet1!B:B,"Apple",Sheet1!C:C,"Dog")

If this returns zero, test the following:

=COUNTIFS(Sheet1!A:A,"North",Sheet1!B:B,"Apple",Sheet1!C:C,"Dog")

to see whether this returns a zero count.
<strike></strike><strike></strike>
 
Last edited:
Upvote 0
Let's check the denominator...

Is this greater than zero?

=SUM(Sheet1!H:H)

And is this greater than zero?

=SUMIFS(Sheet1!H:H,Sheet1!A:A,"North",Sheet1!B:B,"Apple",Sheet1!C:C,"Dog")

If this returns zero, test the following:

=COUNTIFS(Sheet1!A:A,"North",Sheet1!B:B,"Apple",Sheet1!C:C,"Dog")

to see whether this returns a zero count.
<strike></strike><strike></strike>

=SUM(Sheet1!H:H) returned 12,162
=SUMIFS(Sheet1!H:H,Sheet1!A:A,"North",Sheet1!B:B,"Apple",Sheet1!C:C,"Dog") returned 329
 
Upvote 0
I just figured it out :) Had to do a little bit of scrubbing due to some of the columns which were referenced in the weighted average included alpha characters. I added a helper column with an IF statement to change the alpha characters to blank. Thank you again for your help
 
Upvote 0
I just figured it out :) Had to do a little bit of scrubbing due to some of the columns which were referenced in the weighted average included alpha characters. I added a helper column with an IF statement to change the alpha characters to blank. Thank you again for your help

You are welcome. Thanks for the update.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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