Extract unique characters from cell range

ollyhughes1982

Well-known Member
Joined
Nov 27, 2018
Messages
793
Office Version
  1. 365
Platform
  1. MacOS
Hi all.

I am trying to extract a list of unique characters from a range of cells. I did this previously, when i had a list 999 rows long, but now my list has grown to 2,551 rows and when I amend my reference to 2552, instead of 1000 it gives ma an error. Please can someone help. I can't understand why I can't just change the formula from:

=LET(u,UNIQUE(FILTER(A2:A1000,A2:A1000<>"")),UNICHAR(UNIQUE(UNICODE(MID(CONCAT(u),SEQUENCE(LEN(CONCAT(u))),1)))))
to
=LET(u,UNIQUE(FILTER(A2:A2552,A2:A2552<>"")),UNICHAR(UNIQUE(UNICODE(MID(CONCAT(u),SEQUENCE(LEN(CONCAT(u))),1))))).

Shouldn't this simple range change just work?

Link to file (it's very small and opens quickly) is here: All Characters List.xlsx

Thanks in advance!

Olly.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Presumably with the bigger range, the CONCAT string will be exceeding the 32,767 character cell limit.

Another way you could do this:

=LET(data,A2:A2552,r,ROWS(data),c,MAX(LEN(data)),txt,MID(data,SEQUENCE(,c),1),s,SEQUENCE(r*c,,0),x,INDEX(txt,1+s/c,MOD(s,c)+1),UNICHAR(UNIQUE(UNICODE(FILTER(x,x<>"")))))
 
Upvote 0
Solution
Presumably with the bigger range, the CONCAT string will be exceeding the 32,767 character cell limit.

Another way you could do this:

=LET(data,A2:A2552,r,ROWS(data),c,MAX(LEN(data)),txt,MID(data,SEQUENCE(,c),1),s,SEQUENCE(r*c,,0),x,INDEX(txt,1+s/c,MOD(s,c)+1),UNICHAR(UNIQUE(UNICODE(FILTER(x,x<>"")))))
Ok, great. Thank you, I will use this instead.
 
Upvote 0

Forum statistics

Threads
1,223,936
Messages
6,175,507
Members
452,650
Latest member
Tinfish

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