Populate columns based on multiple criteria

JonasTiger

New Member
Joined
Jan 28, 2022
Messages
28
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi
I'm trying to build a table as shown in the attached file (S10:AD29) based in a data table(B9:N109) with the following tasks:
Populate Store Columns (yellow) if ITEM has PRIO1
If PRIO1 ITEMS >20, then transfer each remain item to next PRIO
If PRIO1 ITEMS <20, then add to list ITEMS with PRIO2, and so on…

Is this possible with formulae?

testeCPforum.xlsx
BCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAG
8PRIORITIESCHOICES 
9ORDITEMLOCPrio1Prio2Prio3Prio4STO1STO2STO3STO4STO5PRIOcoefPRIOrankPRIOrank1NSTO1PRIOcoefNSTO2PRIOcoefNSTO3PRIOcoefNSTO4PRIOcoefNSTO5PRIOcoef
101ITEM 01201015132430301ITEM 187021ITEM 105541ITEM 074561ITEM 584081ITEM 3755
112ITEM 02100113412520652ITEM 315522ITEM 1510042ITEM 134062 82ITEM 6540
123ITEM 03100111234520663ITEM 456023ITEM 344543ITEM 306063 83ITEM 9385
134ITEM 04201001542325464ITEM 465524ITEM 434044ITEM 354564 84 
145ITEM 0530001514235795ITEM 6010025ITEM 624045ITEM 554065 85 
156ITEM 0620001513425806ITEM 828026ITEM 667046ITEM 635566 86 
167ITEM 07101112513445207ITEM 885527ITEM 707047ITEM 647067 87 
178ITEM 08201012315430318 28ITEM 755548ITEM 864568 88 
189ITEM 0920001532145819 29ITEM 9010049ITEM 1007069 89 
1910ITEM 102100021345551310 30 50 70 90 
2011ITEM 112010112345303211 31 51 71 91 
2112ITEM 12200011523458212 32 52 72 92 
2213ITEM 131011035142402413 33 53 73 93 
2314ITEM 143010051423254714 34 54 74 94 
2415ITEM 151111151324100115 35 55 75 95 
2516ITEM 16300013412558316 36 56 76 96 
2617ITEM 17200011234558417 37 57 77 97 
2718ITEM 18110101542370618 38 58 78 98 
2819ITEM 192010051423254819 39 59 79 99 
2920ITEM 202010051342254920 40 60 80 100 
Sheet1 (2)
Cell Formulas
RangeFormula
AC8AC8=IFERROR(INDEX(Table13[PRIOcoef],MATCH(AA8,Table13[ITEM],0)),"")
T10:T16T10=FILTER(Table13[ITEM],(Table13[STO1]=1)*(Table13[PRIOcoef]>=40))
AG10:AG29,AD10:AD29,AA10:AA29,X10:X29,U10:U29U10=IFERROR(INDEX(Table13[PRIOcoef],MATCH(T10,Table13[ITEM],0)),"")
V10,Y10,AB10,AE10V10=S10+20
W10:W18W10=FILTER(Table13[ITEM],(Table13[STO2]=1)*(Table13[PRIOcoef]>=40))
Z10:Z18Z10=FILTER(Table13[ITEM],(Table13[STO3]=1)*(Table13[PRIOcoef]>=40))
AC10AC10=FILTER(Table13[ITEM],(Table13[STO4]=1)*(Table13[PRIOcoef]>=40))
AF10:AF12AF10=FILTER(Table13[ITEM],(Table13[STO5]=1)*(Table13[PRIOcoef]>=40))
V11:V29,S11:S29,AE11:AE29,AB11:AB29,Y11:Y29V11=V10+1
G10:G29G10=IF([@LOC]=1,1,0)
N10:N29N10=IF([@Prio1]=1,$E$1,0)+IF([@Prio2]=1,$F$1,0)+IF([@Prio3]=1,$G$1,0)+IF([@Prio4]=1,$H$1,0)
P10:P29P10=RANK(Table13[@PRIOcoef],Table13[PRIOcoef],0)+COUNTIF($N$10:N10,N10)-1
Dynamic array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
AE12:AE29Cell ValueduplicatestextNO
AE11Cell ValueduplicatestextNO
AB12:AB29Cell ValueduplicatestextNO
AB11Cell ValueduplicatestextNO
Y12:Y29Cell ValueduplicatestextNO
Y11Cell ValueduplicatestextNO
V12:V29Cell ValueduplicatestextNO
V11Cell ValueduplicatestextNO
AF10Cell ValueduplicatestextNO
AC10Cell ValueduplicatestextNO
Z10Cell ValueduplicatestextNO
W10Cell ValueduplicatestextNO
T10Cell ValueduplicatestextNO
O11,R11:T11,S12:S29Cell ValueduplicatestextNO
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

Forum statistics

Threads
1,224,820
Messages
6,181,157
Members
453,021
Latest member
Justyna P

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