Conditional Weighted Average with Multiple Variables

Chellobi

New Member
Joined
Oct 2, 2017
Messages
2
Hey guys,

Spent about 5 hours or more trying to figure this out.. I don't see myself completing the formula without help.

I need the weighted average for [(P) Storeys] where the following criteria are met:

1: [(C) Approved] = "Pending"
2: [(O) Approved] = "Pending"
3: [(O) Approved] ="*Divisional*"

How do I do this?
My closes success, possibly:

=SUMPRODUCT((Master[(P) Storeys])*(Master[(C) Approved]={"Pending"})*(Master[OMB Approved]={"Pending","*Divisional*"}))/SUMPRODUCT(--((Master[(C) Approved]={"Pending"})*(Master[OMB Approved]={"Pending","*Divisional*"})))

.. but it returns as #DIV/0!
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Whoops,
typo

My formula is

=SUMPRODUCT((Master[(P) Storeys])*(Master[(C) Approved]={"Pending"})*(Master[(O) Approved]={"Pending","*Divisional*"}))/SUMPRODUCT(--((Master[(C) Approved]={"Pending"})*(Master[(O) Approved]={"Pending","*Divisional*"})))
 
Upvote 0

Forum statistics

Threads
1,215,008
Messages
6,122,672
Members
449,091
Latest member
peppernaut

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