AANAGRAM

=AANAGRAM(a,b)

a
array, 1D vertical array
b
array, 1D vertical array

finds anagrams matches between 2 arrays

Xlambda

Well-known Member
Joined
Mar 8, 2021
Messages
860
Office Version
  1. 365
Platform
  1. Windows
AANAGRAM finds anagrams matches between 2 arrays. calls AKEEP , T_CHARS ,ATEXTJOIN , AUNQSRT
Excel Formula:
=LAMBDA(a,b,
    LET(x,AKEEP(a,T_CHARS(,2,),),y,AKEEP(b,T_CHARS(,2,),),
       z,ATEXTJOIN(AUNQSRT(MID(x,SEQUENCE(,MAX(LEN(x))),1),1),,,),v,ATEXTJOIN(AUNQSRT(MID(y,SEQUENCE(,MAX(LEN(x))),1),1),,,),
       IFNA(XMATCH(z,v),"-")
    )
)
LAMBDA 7.0.xlsx
ABCDEFGH
1D3=ATEXTJOIN(F3:F9,SEQUENCE(ROWS(F3:F9))&"-",,)
2array a=AANAGRAM(A3:A11,F3:F9)array b
3Stereophonics21-Hairy CameraHairy Camera
4Mariah Carey12-Shoe InspectorShoe Inspector
5Abbab-3-Rain VanRain Van
6Is it a rum64-See Ace HeckSee Ace Heck
7Baba75-Open at tenOpen at ten
8Nirvana36-TiramisuTiramisu
9Panettone57-AbbaAbba
10Cheesecake4
11Net at open5
12
AANAGRAM post
Cell Formulas
RangeFormula
D1D1=FORMULATEXT(D3)
B2B2=FORMULATEXT(B3)
B3:B11B3=AANAGRAM(A3:A11,F3:F9)
D3:D9D3=ATEXTJOIN(F3:F9,SEQUENCE(ROWS(F3:F9))&"-",,)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,224,829
Messages
6,181,219
Members
453,024
Latest member
Wingit77

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