weighted average calc and lookup

shaero

New Member
Joined
Aug 9, 2011
Messages
9
Hi,

I have a question about writing a formula (preferably not an array one) to calculate a weighted average. I need it to satisfy several conditions. First off, there are 3 possible conditions in column M (A,B, and C). If column M = A or B then column N is a number. If not, then column N is empty. Also, column V is either Z or X. What I need the formula to do is calculate the weighted average rate based on a certain parameter W for the columns R, T, and Y. Then if column M = A or B (column N is a number) if column M= A or B then pull up the weighted average for column N (where N is a number). If column M is C, I need the formula to look up info in column S based on Q and E if column V is Z or look up in column D if V is X.

Any ideas would be much appreciated. This is what I have so far, but it isn't really working too well:

{=IF(OR(M="A",M="B"),SUMPRODUCT(((W=),R*T*Y)/SUMPRODUCT((W=),R*T)),IF(V="Z",((Q=)*(E=),S),IF(V="X",((Q=)*(E=),D),"")))}

Thanks in advance,

shaero
 
Last edited:

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,224,613
Messages
6,179,903
Members
452,948
Latest member
Dupuhini

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