Index Match and Extract

lai_arceo

New Member
Joined
Apr 7, 2010
Messages
35
Good day.

I know how to basically do an index match search. However, I am stumped on how to extract the first, 2nd, 3rd, 4th and fifth letters of the returned value.

A sample is attached below. I need to be able to enter the ID number and then generate the FIRST NAME INITIALS of the returned value. Any help will be much appreciated.
1707204326444.png
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Your excel version 2019 right?
Try this and please include your excel version in your BIO,

Cell F2
Excel Formula:
=IFERROR(MID(INDEX(B2:B4,MATCH(D2,A2:A4,0)),{1,2,3,4,5,6,7},1),"")


1707206285223.png
 
Upvote 1
Solution
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

If you have 2021 or 365 you could use this
Excel Formula:
=LET(x,XLOOKUP(D2,A2:A4,B2:B4,""),IF(x="","",MID(x,SEQUENCE(,LEN(x)),1)))
 
Upvote 0

Forum statistics

Threads
1,215,073
Messages
6,122,970
Members
449,095
Latest member
Mr Hughes

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top