Using 'array' in QUARTILE Function for a mixed dataset

wngammill

New Member
Joined
Sep 12, 2015
Messages
2
I have a list of last month's supply orders for our 1900 stores. This list contains the sum of item sales ('August 2015 Order Qty see Query1) for all 1300 + items for all stores.

I have concerns about abuse, so I'm wanting to utilize my ability to set monthly, item based allocation quantities. This is the max # of units per item a store can order within a rolling 30 day period. This value can be calculated, in part, using the QUARTILE function in excel. The formula is QUARTILE(array,quart). My issue is the array field. I need to be able to do the calc for each item, but the array should only include quantities specific to that item. Looking to find a way around manually selecting the array.

The equation is:
Allocation = 1.5*(3rd Quartile-1st Quartile)

EXAMPLE: Using Part Number 10-6000-015 from the "Query1" data set below, I'm looking to do the following, except for each of my 1300+ items.

FormulaValue
1st Quartile =QUARTILE((C14,C22,C27,C42,C48,C54,C59,C67,C72,C78,C85,C91,C98),1)2
3rd Quartile=QUARTILE((C14,C22,C27,C42,C48,C54,C59,C67,C72,C78,C85,C91,C98),3)4
Allocation=1.5*(3rd Quartile-1st Quartile)3

<tbody>
</tbody>

Basically, I want to put together a list of part numbers and allocations similar to the following. The final product should look something like:

Part NumberAllocation
10-6000-0153
10-6000-016
10-6000-017
10-6100-000
10-6100-004

<colgroup><col><col></colgroup><tbody>
</tbody>

Sample reference data:
Query1
Column
RowABC
1Store #Part NumberAugust 2015 Order Qty
2410-6000-0041
3410-6000-0051
4410-6000-0111
5410-6000-0143
6710-6000-0051
7710-6000-0112
8710-6000-0132
9710-6000-0142
10810-6000-0143
111010-6000-0022
121010-6000-0053
131010-6000-0111
141010-6000-0154
151010-6000-0162
161110-6000-0031
171110-6000-0052
181110-6000-0111
191110-6000-0122
201110-6000-0131
211110-6000-0142
221110-6000-0152
231210-6000-0001
241210-6000-0121
251210-6000-0131
261210-6000-0141
271210-6000-0154
281210-6000-0161
291310-6000-0053
301310-6000-0142
311310-6000-0161
321410-6000-0111
331410-6000-0131
341510-6000-0051
351510-6000-0131
361510-6000-0142
371510-6000-0162
381610-6000-0002
391610-6000-0031
401610-6000-0073
411610-6000-0121
421610-6000-0151
431710-6000-0001
441710-6000-0121
451810-6000-0022
461810-6000-0054
471810-6000-0141
481810-6000-0152
491910-6000-0001
502010-6000-0031
512010-6000-0041
522010-6000-0131
532010-6000-0142
542010-6000-0151
552110-6000-0112
562110-6000-0121
572110-6000-0141
582310-6000-0141
592310-6000-0151
602310-6000-0161
612510-6000-0002
622510-6000-0131
632510-6000-0162
642710-6000-0001
652710-6000-0022
662710-6000-0145
672710-6000-0158
682810-6000-0031
692810-6000-0041
702810-6000-0051
712810-6000-0146
722810-6000-0154
732810-6000-0162
742910-6000-0004
752910-6000-0111
762910-6000-0161
773010-6000-0141
783010-6000-0152
793010-6000-0161
803110-6000-0073
813110-6000-0083
823110-6000-0113
833110-6000-0132
843110-6000-0144
853110-6000-0152
863110-6000-0161
873210-6000-0001
883210-6000-0042
893210-6000-0051
903210-6000-0071
913210-6000-0154
923210-6000-0162
933410-6000-0001
943410-6000-0071
953410-6000-0111
963410-6000-0131
973410-6000-0144
983410-6000-0152
993410-6000-0172

<colgroup><col width="64" span="4" style="width: 48pt;"></colgroup><tbody>
</tbody>

I'm probably overcomplicating this, so my apologies and thanks in advance for your help!
Nash
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
If I understand correctly, this might help you.

Excel 2012
ABCDEFG
1Store #Part NumberAugust 2015 Order Qty
2410-6000-0041part numberallocation
3410-6000-005110-6000-0153
4410-6000-011110-6000-0161.5
5410-6000-014310-6000-0170
6710-6000-005110-6100-000#NUM!not in list
7710-6000-011210-6100-004#NUM!not in list

<colgroup><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet29

Worksheet Formulas
CellFormula
F3=(AGGREGATE(17,6,$C$2:$C$99/($E3=$B$2:$B$99),3)-AGGREGATE(17,6,$C$2:$C$99/($E3=$B$2:$B$99),1))*1.5
F4=(AGGREGATE(17,6,$C$2:$C$99/($E4=$B$2:$B$99),3)-AGGREGATE(17,6,$C$2:$C$99/($E4=$B$2:$B$99),1))*1.5
F5=(AGGREGATE(17,6,$C$2:$C$99/($E5=$B$2:$B$99),3)-AGGREGATE(17,6,$C$2:$C$99/($E5=$B$2:$B$99),1))*1.5
F6=(AGGREGATE(17,6,$C$2:$C$99/($E6=$B$2:$B$99),3)-AGGREGATE(17,6,$C$2:$C$99/($E6=$B$2:$B$99),1))*1.5
F7=(AGGREGATE(17,6,$C$2:$C$99/($E7=$B$2:$B$99),3)-AGGREGATE(17,6,$C$2:$C$99/($E7=$B$2:$B$99),1))*1.5

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,564
Messages
6,125,579
Members
449,237
Latest member
Chase S

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