Using Sort, Unique & Filter to create a single list from a table..

Spoursy

New Member
Joined
Dec 4, 2019
Messages
30
Office Version
  1. 365
Platform
  1. Windows
Hi, Im using this formula to condense data from a table into a single column of data
=SORT(UNIQUE(FILTERXML("<a><b>"&SUBSTITUTE(TEXTJOIN("|",TRUE,'Unique Master List (filtered)'!CV17:DQ110),"|","</b><b>")&"</b></a>","//b")))

If i change the table range past row 110 i get a #Value! error

Any ideas welcome
 
In that case if you put this into a cell, what does it return
Excel Formula:
=TEXTJOIN("|",TRUE,'Unique Master List (filtered)'!CV17:DQ111)
 
Upvote 0

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
its coming back with a whole load of data. I looks like it is reading the table from left to right, top to bottom.
 
Upvote 0
Ok, in another cell put
Excel Formula:
=LEN(A2)
changing the A2 to look at the cell with the textjoin in it & what does it return?
 
Upvote 0
In that case you are exceeding the limits of the filterxml function.
Do you have the REDUCE function?
 
Upvote 0
Hi - It looks like I have reduce.

So as not to exceed the limits of filterxml function, I could replace the data thats in the table to a series of numbers instead of strings of text - would that help it?
 
Upvote 0
How about
Excel Formula:
=LET(Data,'Unique Master List (filtered)'!CV17:DQ111),r,ROWS(Data),s,SEQUENCE(r*COLUMNS(Data),,0),x,INDEX(Data,MOD(s,r)+1,INT(s/r)+1),SORT(UNIQUE(FILTER(x,x<>""))))
 
Upvote 0
Thanks - Just pasted that in and the error is coming up as "you've entered too few arguments for this function"
 
Upvote 0
Oops, got an extra bracket in there, it should be
Excel Formula:
=LET(Data,'Unique Master List (filtered)'!CV17:DQ111,r,ROWS(Data),s,SEQUENCE(r*COLUMNS(Data),,0),x,INDEX(Data,MOD(s,r)+1,INT(s/r)+1),SORT(UNIQUE(FILTER(x,x<>""))))
 
Upvote 0
Solution

Forum statistics

Threads
1,215,857
Messages
6,127,372
Members
449,381
Latest member
Aircuart

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