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 search for size in the list and set costing based on it?

I need to search the ‘ITEM NAME’ list for matching size and set MRP based on it.

For Example-

NIKE PAHANTOM 38 RED”s MRP needs to be set 320

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

NIKE PAHANTOM 44 RED”s MRP needs to be set 400

enter image description here

>Solution :

Using XLOOKUP() would work:

enter image description here


=XLOOKUP(--INDEX(TEXTSPLIT(A8," "),3),$B$1:$E$1,$B$2:$E$2,"Not Found")

Or, if the pattern remains same then using HLOOKUP()

=HLOOKUP(--MID(A8,14,2),$B$1:$E$2,2,0)

Or, Using the same method with HLOOKUP() and TEXTSPLIT()

=HLOOKUP(--INDEX(TEXTSPLIT(A8," "),3),$B$1:$E$2,2,0)

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