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

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
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,223,882
Messages
6,175,165
Members
452,615
Latest member
bogeys2birdies

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