Weighted Average with OR function

suiz919

New Member
Joined
Sep 16, 2011
Messages
23
Hi-

I'm trying to find the weighted average of column D & E if Column I is "A","B", or "C" and Column A is equal to "FI"

this is what i have so far, but it's giving me an error

<style>table { }td { padding: 0px; color: black; font-size: 11pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: Calibri,sans-serif; vertical-align: bottom; border: medium none; white-space: nowrap; }ruby { }rt { color: windowtext; font-size: 8pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: Verdana; display: none; }</style> <table style="border-collapse: collapse;" border="0" cellpadding="0" cellspacing="0" width="86"> <col style="" width="86"> <tbody><tr height="14"> <td height="14" width="86">SUMPRODUCT(--(A2:A12="FI"),--(ISNUMBER(MATCH(I2:I12,{"a";"b";"c"},0))),($D$2:$D$12,$E$2:$E12)/
SUMPRODUCT(--(A2:A12="FI"),--(ISNUMBER(MATCH(I2:I12,{"a";"b";"c"},0))),($D$2:$D$12)

</td> </tr> </tbody></table> Please help. Much appreciated.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Try to delete the parentheses in red

=SUMPRODUCT(--(A2:A12="FI"),--(ISNUMBER(MATCH(I2:I12,{"a";"b";"c"},0))),($D$2:$D$12,$E$2:$E12)/SUMPRODUCT(--(A2:A12="FI"),--(ISNUMBER(MATCH(I2:I12,{"a";"b";"c"},0))),($D$2:$D$12)


M.
 
Upvote 0
Hi-

I'm trying to find the weighted average of column D & E if Column I is "A","B", or "C" and Column A is equal to "FI"

this is what i have so far, but it's giving me an error

<STYLE>table { }td { padding: 0px; color: black; font-size: 11pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: Calibri,sans-serif; vertical-align: bottom; border: medium none; white-space: nowrap; }ruby { }rt { color: windowtext; font-size: 8pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: Verdana; display: none; }</STYLE><TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=86 border=0><COLGROUP><COL width=86><TBODY><TR height=14><TD width=86 height=14>SUMPRODUCT(--(A2:A12="FI"),--(ISNUMBER(MATCH(I2:I12,{"a";"b";"c"},0))),($D$2:$D$12,$E$2:$E12)/
SUMPRODUCT(--(A2:A12="FI"),--(ISNUMBER(MATCH(I2:I12,{"a";"b";"c"},0))),($D$2:$D$12)


</TD></TR></TBODY></TABLE>Please help. Much appreciated.
Think you just had some misplaced parentheses.

This...

=SUMPRODUCT(--(A2:A12="FI"),--(ISNUMBER(MATCH(I2:I12,{"a";"b";"c"},0))),$D$2:$D$12,$E$2:$E12)/SUMPRODUCT(--(A2:A12="FI"),--(ISNUMBER(MATCH(I2:I12,{"a";"b";"c"},0))),$D$2:$D$12)
 
Upvote 0
Think you just had some misplaced parentheses.

This...

=SUMPRODUCT(--(A2:A12="FI"),--(ISNUMBER(MATCH(I2:I12,{"a";"b";"c"},0))),$D$2:$D$12,$E$2:$E12)/SUMPRODUCT(--(A2:A12="FI"),--(ISNUMBER(MATCH(I2:I12,{"a";"b";"c"},0))),$D$2:$D$12)

Biff,

Exactly at the same time!!!

Are you following me? :laugh:

M.
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,331
Members
452,907
Latest member
Roland Deschain

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