Weighted average of population

butlerrbrian

New Member
Joined
Jan 30, 2013
Messages
37
I have a dataset that includes ZIP Codes arranged by dispatch zones as bundles inside markets that includes population figures by ZIP codes. It also contains order forecasts that are only arranged by market.

ZIP CODE MARKET Dispatch Zone Households
12345 Anywhere, TX ANY-N Anywhere 15000

12346 Anywhere, TX ANY-N Anywhere 7800

12347 Anywhere, TX ANY-N Anywhere 1250

12348 Anywhere, TX ANY-S Anywhere 1800

12349 Anywhere, TX ANY-S Anywhere 2200

MARKET MONTH Orders
Anywhere January 35

I need to apportion the 35 orders into the disptach zones based on weighted population. I am building on the idea of:

=ROUNDUP(SUMX(ZIPS, ZIPS[Households] * Orders[Orders] / ZIPS[Households]))

This is not returning the correct values.

Any thoughts are welcome - perhaps =SUMPRODUCT is where I should be?

:banghead:
 

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.
sounds like an interesting case!

The main issue is that you're trying to use a DIM table (ZIPS) rather than your FACT table when using the X-MEN function (SUMX) which should return a really weird error or a really weird result.

Any way that you can upload a workbook with some dummy data and the way that it should end up? (as desired output - even with the #'s)
 
Upvote 0

Forum statistics

Threads
1,223,974
Messages
6,175,737
Members
452,667
Latest member
vanessavalentino83

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