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

XLOOKUP function is failing

I’m trying to use xlookup function to get the corresponding values, if the certain text is matching. Following is the example, trying to use. If not right function, would you please point to the right one?

Function:

=XLOOKUP("*"&D1&"*",A1:A4,B1:B4,"Not found",2)

Any support in this regard is really appreciated!

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

Below is the table in excel:

enter image description here

>Solution :

Use partial match either before comma or after comma. Try-

=XLOOKUP("*"&TEXTBEFORE(D1,",")&"*",$A$1:$A$4,$B$1:$B$4,"Not Found",2)

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