Convert name and surname in to ID

bkobal

New Member
Joined
Feb 23, 2011
Messages
11
Hi

On the left side I have a table with names, surnames and associated ID.

I would like to enter the name (H3) and surname (I3) and the function would return an appropriate ID (J3). See picture.

excel.jpg


Please Help.

Thanks!
 
The following formula facinates me

=INDEX(E23:E27,MATCH(G23&H23,INDEX(C23:C27&D23:D27,),0))

I never knew you could match more than one thing,

Is there a limit?
 
Upvote 0

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
=INDEX(E23:E27,MATCH(G23&H23,INDEX(C23:C27&D23:D27,),0))

This function works to.
If i have two persons with same name and surname, function return ID of the first person.
 
Upvote 0
Hi, I've only ever tried two different items, but I'm guessing there could easily be more as long as the items were on the same rows. Will have a mock up and try later
 
Upvote 0
when i try to solve this problem, it works only in case if there was no persons with same name or surname.
This was my solution:

=IF((COUNTBLANK(H3:I3))>1;"";(IF(((((MATCH(I3;C$2:C$33;0))-(MATCH(H3;B$2:B$33;0))<>0)));"No_ID";(INDEX(D$2:D$33;(MATCH(I3;C$2:C$33;0)))))))

;)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,225,149
Messages
6,183,178
Members
453,151
Latest member
Lizamaison

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