Solved Formula to lookup value

kirana2014

New member
Joined
Oct 21, 2023
Messages
2
Reaction score
0
Points
1
Excel Version(s)
2021
Please help me with excel formula i tried to xlookup value with below formula but it doesn't work please help me what mistake i made in this formula


=XLOOKUP("*("&D2&"*";$A$2:$A$4;$B$2:$B$4;;2)
 

Attachments

  • Xlookup.jpg
    Xlookup.jpg
    42.3 KB · Views: 5
see how you get on with:
Code:
=INDEX($B$2:$B$4;MATCH(TRUE;ISNUMBER(SEARCH($A$2:$A$4;D2));0))
copied down.

If the numbers you're looking for are always the 2nd to 4th, then try a single-celled formula:
Code:
=INDEX(B2:B4;MATCH(VALUE(MID(D2:D4;2;3));A2:A4;0))
 
Last edited:
see how you get on with:
Code:
=INDEX($B$2:$B$4;MATCH(TRUE;ISNUMBER(SEARCH($A$2:$A$4;D2));0))
copied down.

If the numbers you're looking for are always the 2nd to 4th, then try a single-celled formula:
Code:
=INDEX(B2:B4;MATCH(VALUE(MID(D2:D4;2;3));A2:A4;0))
Dear p45cal,

Thank you is working
Well done!

 
Back
Top