List of unique value in different columns

gtd526

Well-known Member
Joined
Jul 30, 2013
Messages
675
Office Version
  1. 2019
Platform
  1. Windows
Hello,
Want a list of unique values from different columns (AI202), not including "Blanks".
Im using the following array but it only lists unique values from a single column (Y).
=INDIRECT(TEXT(MIN(IF(($Y$202:$Y$230<>"")*(COUNTIF($AI$202:AI202,$Y$202:$Y$230)=0),ROW($202:$230)*100+COLUMN($Y:$Y),7^8)),"R0C00"),)&""
I want to modify the array (or new array/formula) to get unique values in Teams(V,Y,AB,AE).

Thank you.
Here is the data:
Cell Formulas
RangeFormula
V202:V227V202=IFERROR(INDEX($H$2:$H$9971,AGGREGATE(15,6,ROW($H$2:$H$9971)-ROW($H$1)/($J$2:$J$9972<=-10),ROW()-ROW($V$201))),"")
W202:W227W202=IFERROR(INDEX($A$2:$A$9973,AGGREGATE(15,6,ROW($H$2:$H$9971)-ROW($H$1)/($J$2:$J$9972<=-10),ROW()-ROW($W$201))),"")
X202:X227X202=IFERROR(INDEX($J$2:$J$9972,AGGREGATE(15,6,ROW($H$2:$H$9971)-ROW($H$1)/($J$2:$J$9972<=-10),ROW()-ROW($X$201))),"")
Y202:Y227Y202=IFERROR(INDEX($H$2:$H$9971,AGGREGATE(15,6,ROW($H$2:$H$9971)-ROW($H$1)/($J$2:$J$9972<=-5)/($J$2:$J$9972>=-9.5),ROW()-ROW($Y$201))),"")
Z202:Z227Z202=IFERROR(INDEX($A$2:$A$9973,AGGREGATE(15,6,ROW($H$2:$H$9971)-ROW($H$1)/($J$2:$J$9972<=-5)/($J$2:$J$9972>=-9.5),ROW()-ROW($Z$201))),"")
AA202:AA227AA202=IFERROR(INDEX($J$2:$J$9972,AGGREGATE(15,6,ROW($H$2:$H$9971)-ROW($H$1)/($J$2:$J$9972<=-5)/($J$2:$J$9972>=-9.5),ROW()-ROW($AA$201))),"")
AB202:AB227AB202=IFERROR(INDEX($H$2:$H$9971,AGGREGATE(15,6,ROW($H$2:$H$9971)-ROW($H$1)/($J$2:$J$9972<=-1)/($J$2:$J$9972>=-4.5),ROW()-ROW($AB$201))),"")
AC202:AC227AC202=IFERROR(INDEX($A$2:$A$9973,AGGREGATE(15,6,ROW($H$2:$H$9971)-ROW($H$1)/($J$2:$J$9972<=-1)/($J$2:$J$9972>=-4.5),ROW()-ROW($AC$201))),"")
AD202:AD227AD202=IFERROR(INDEX($J$2:$J$9972,AGGREGATE(15,6,ROW($H$2:$H$9971)-ROW($H$1)/($J$2:$J$9972<=-1)/($J$2:$J$9972>=-4.5),ROW()-ROW($AD$201))),"")
AE202:AE227AE202=IFERROR(INDEX($H$2:$H$9971,AGGREGATE(15,6,ROW($H$2:$H$9971)-ROW($H$1)/($J$2:$J$9972>=1),ROW()-ROW($AE$201))),"")
AF202:AF227AF202=IFERROR(INDEX($A$2:$A$9973,AGGREGATE(15,6,ROW($H$2:$H$9971)-ROW($H$1)/($J$2:$J$9972>=1),ROW()-ROW($AF$201))),"")
AG202:AG227AG202=IFERROR(INDEX($J$2:$J$9972,AGGREGATE(15,6,ROW($H$2:$H$9971)-ROW($H$1)/($J$2:$J$9972>=1),ROW()-ROW($AG$201))),"")
AI202:AI223AI202=INDIRECT(TEXT(MIN(IF(($Y$202:$Y$230<>"")*(COUNTIF($AI$202:AI202,$Y$202:$Y$230)=0),ROW($202:$230)*100+COLUMN($Y:$Y),7^8)),"R0C00"),)&""
Press CTRL+SHIFT+ENTER to enter array formulas.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
How about
+Fluff 1.xlsm
VWXYZAAABACADAEAFAGAHAI
201TeamW/LSPRDTeamW/LSPRDTeamW/LSPRDTeamW/LSPRDList Unique Teams
202UTAL-11BOSW-9NYKW-2BKNL3UTA
203PHXL-12.5DENW-7BOSL-3DETW3.5PHX
204TORW-11.5SACL-7.5ATLL-2.5BKNL4.5TOR
205PHIW-13.5BOSPSH-9GSL-4.5BKNL2.5PHI
206GSW-7.5TORW-3.5WASW5BOS
207SANW-5.5MEMW-3MEML4.5DEN
208LACL-8PHXW-3.5MEML9SAC
209GSW-6.5CHAL-2GS
210BOSpsh-5NOL-2.5SAN
211UTAL-5CHAL-3.5LAC
212BKNL-5NOL-2BKN
213MIAW-6.5DETW-3.5MIA
214INDW-5.5MEMW-4IND
215ATLL-5CHIW-1.5ATL
216MILW-9SACL-4MIL
217BKNW-8.5GSL-2.5WAS
218WASW-7DENL-1.5NYK
219PHIW-5.5DALW-3MEM
220SACL-6CHAW-1.5CHA
221PHXL-7.5INDW-4.5NO
222PHXL-5CLEL-3.5DET
223NYKW-6PHXW-3.5CHI
224BKNW-9.5GSL-3.5DAL
225PHIW-7PHXW-4.5CLE
226PHIL-8NOW-3.5 
227DETL-2 
228
Main
Cell Formulas
RangeFormula
AI202:AI227AI202=IFERROR(FILTERXML("<k><m>"&TEXTJOIN("</m><m>",,$V$202:$V$230,$Y$202:$Y$230,$AB$202:$AB$230,$AE$202:$AE$230)&"</m></k>","//m[not(.=preceding-sibling::m) ]["&ROWS(AI$202:AI202)&"]"),"")
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Solution
How about
+Fluff 1.xlsm
VWXYZAAABACADAEAFAGAHAI
201TeamW/LSPRDTeamW/LSPRDTeamW/LSPRDTeamW/LSPRDList Unique Teams
202UTAL-11BOSW-9NYKW-2BKNL3UTA
203PHXL-12.5DENW-7BOSL-3DETW3.5PHX
204TORW-11.5SACL-7.5ATLL-2.5BKNL4.5TOR
205PHIW-13.5BOSPSH-9GSL-4.5BKNL2.5PHI
206GSW-7.5TORW-3.5WASW5BOS
207SANW-5.5MEMW-3MEML4.5DEN
208LACL-8PHXW-3.5MEML9SAC
209GSW-6.5CHAL-2GS
210BOSpsh-5NOL-2.5SAN
211UTAL-5CHAL-3.5LAC
212BKNL-5NOL-2BKN
213MIAW-6.5DETW-3.5MIA
214INDW-5.5MEMW-4IND
215ATLL-5CHIW-1.5ATL
216MILW-9SACL-4MIL
217BKNW-8.5GSL-2.5WAS
218WASW-7DENL-1.5NYK
219PHIW-5.5DALW-3MEM
220SACL-6CHAW-1.5CHA
221PHXL-7.5INDW-4.5NO
222PHXL-5CLEL-3.5DET
223NYKW-6PHXW-3.5CHI
224BKNW-9.5GSL-3.5DAL
225PHIW-7PHXW-4.5CLE
226PHIL-8NOW-3.5 
227DETL-2 
228
Main
Cell Formulas
RangeFormula
AI202:AI227AI202=IFERROR(FILTERXML("<k><m>"&TEXTJOIN("</m><m>",,$V$202:$V$230,$Y$202:$Y$230,$AB$202:$AB$230,$AE$202:$AE$230)&"</m></k>","//m[not(.=preceding-sibling::m) ]["&ROWS(AI$202:AI202)&"]"),"")
Press CTRL+SHIFT+ENTER to enter array formulas.
Works for me. Thank you.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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