Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Find the Rank 02 Matching element against the Given Key word

I have two tables, Table two with code and Key words.

enter image description here

Now I need to get the rank 02 separately

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

enter image description here

Table 01 With combination of Key words, SO need to find the 2nd Rank of height matching row of each description and need to give the rank two matching code as code against the Description.

Best regard
Indika

>Solution :

There is not much difference between the last post and this one, you need to wrap the SORT() function within TAKE() & TOROW()

enter image description here


• Formula used in cell B2

=LET(
     a,N(IFERROR(XMATCH($E$2:$K$8,TEXTSPLIT(A2," ")),0)<>0),
     b,HSTACK($D$2:$D$8,MMULT(a,SEQUENCE(ROWS(a),,,0))),
     TOROW(TAKE(SORT(b,2,-1),2,1)))

Reference to last post of OP: Find the Rank 01 Matching element against the Given Key word


enter image description here


• Formula used in cell B2

=DROP(REDUCE("",A2:A6,LAMBDA(m,b,VSTACK(m,LET(
       a,N(IFERROR(XMATCH($E$2:$K$8,TEXTSPLIT(b," ")),0)<>0),
       c,HSTACK($D$2:$D$8,MMULT(a,SEQUENCE(ROWS(a),,,0))),
       CHOOSECOLS(TOROW(SORT(c,2,-1)),1,3))))),1)

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading