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

How to create an Index Array with references from a MATCH Function

I have two arrays. The second array is a lookup array for the first array and returns the row where there is a match.

=IFERROR(MATCH(B2:B9,A2:A9, 0),"")

Then the integers in this new array are used as the index for another new array whose values are the Index of the matching value in the lookup array separated by blank elements for indexes not referenced.

Problem Image

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

I fear that this is simple problem that I am overthinking. Thank you for your help.

Originally, I tried comparing the two arrays directly, but this obviously didn’t work because only elements in the same ROW() are compared. Then I tried creating a Boolean Array, but am not sure how to implement it to find the original element index in the lookup array.

>Solution :

change the places of the ranges:

=IFERROR(MATCH(A2:A9, B2:B9, 0),"")

enter image description here

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