Dynamic List of Unique Items Based on Criteria

Maddy1234

New Member
Joined
Mar 9, 2018
Messages
24
Hello wise people,

I need some help on a specific query. I'm trying out a simple BI to help manage the employees queue work rates.

There are two types of queues; Production and non- Production. Production Codes will have volumes ranging from 0 to any number and the non production codes will have "-". Please see below.

QueueTime TakenVolumes
Production Queue 11:001
Production Queue 20:300
Meal Break0:45-
Production Queue 21:302
Staff Meeting0:20-
Production Queue 11:002
Production Queue 20:451
System Down0:10-

<tbody>
</tbody>

I want to dynamically create two simple separate lists for Production and non production. Please see below for desired result.

ProductionNon Production
Production Queue 1Meal Break
Production Queue 2Staff Meeting
System Down

<tbody>
</tbody>

I do not want to use pivot tables and I would appreciate if someone could help me achieve the desire result without the use of Ctrl+Shift+Enter.

Many thanks in advance.
 
Last edited:

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Hey. Pivot tables are not required but I can't think of a way to do this without an array formula like this:


Book1
ABCDEF
1QueueTime TakenVolumesProductionNon Production
2Production Queue 101:001Production Queue 1Meal Break
3Production Queue 200:300Production Queue 2Staff Meeting
4Meal Break00:45-System Down
5Production Queue 201:302
6Staff Meeting00:20-
7Production Queue 101:002
8Production Queue 200:451
9System Down00:10-
Sheet1
Cell Formulas
RangeFormula
E2{=IFERROR(INDEX($A$2:$A$9,MATCH(0,IF($C$2:$C$9<>"-",COUNTIF($E$1:$E1,$A$2:$A$9),""),0)),"")}
F2{=IFERROR(INDEX($A$2:$A$9,MATCH(0,IF($C$2:$C$9="-",COUNTIF($F$1:$F1,$A$2:$A$9),""),0)),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.


WBD
 
Upvote 0
Hi, here is an option that does not require CSE - note though that these are still array processing formula with the associated negative impact of using large ranges and on top of that will probably be less efficient than the CSE entered alternatives .


Excel 2013/2016
ABCDEF
1QueueTime TakenVolumesProdnon prod
2Production Queue 101:00:001Production Queue 1Meal Break
3Production Queue 200:30:000Production Queue 2Staff Meeting
4Meal Break00:45:00-System Down
5Production Queue 201:30:002
6Staff Meeting00:20:00-
7Production Queue 101:00:002
8Production Queue 200:45:001
9System Down00:10:00-
Sheet1
Cell Formulas
RangeFormula
E2=IFERROR(INDEX($A$2:$A$9,AGGREGATE(15,6,(ROW($A$2:$A$9)-ROW($A$2)+1)/((MATCH($A$2:$A$9,$A$2:$A$9,0)=ROW($A$2:$A$9)-ROW($A$2)+1)*ISNUMBER($C$2:$C$9)),ROWS(E$2:E2))),"")
F2=IFERROR(INDEX($A$2:$A$9,AGGREGATE(15,6,(ROW($A$2:$A$9)-ROW($A$2)+1)/((MATCH($A$2:$A$9,$A$2:$A$9,0)=ROW($A$2:$A$9)-ROW($A$2)+1)*($C$2:$C$9="-")),ROWS(F$2:F2))),"")
 
Upvote 0
Another way (with Wideboydixon's layout):

In E2 and copy down

=IFERROR(INDEX(A$2:A$9,MATCH(0,INDEX(COUNTIF(E$1:E1,A$2:A$9)+(C$2:C$9="-"),),0)),"")

In F2 and copy down

=IFERROR(INDEX(A$2:A$9,MATCH(0,INDEX(COUNTIF(F$1:F1,A$2:A$9)+(C$2:C$9<>"-"),),0)),"")

Ps: not for a large number of records.

Markmzz
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,936
Messages
6,122,340
Members
449,079
Latest member
rocketslinger

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