How to vlookup the characters between a delimiter

phillipc1

New Member
Joined
Oct 11, 2023
Messages
20
Office Version
  1. 365
Platform
  1. Windows
Hello,

I am trying to do a vlookup that pulls out the employee number from a field that contains the employee name and employee number, without the "()" delimiter. However, I am at a loss on what type of formula to use. Below is a sample of what I am trying to do. I need to populate Employee Number.


Manager Lookup.xlsx
AB
1RecordEmployee Data
21Jason Bourne (12345)
32Tim Drake (54321)
43Luke Skywalker (12131)
54Darth Vader (54535)
Sheet3



Manager Lookup.xlsx
ABC
1RecordEmployee NameEmployee Number
21Jason Bourne
32Tim Drake
43Luke Skywalker
54Darth Vader
Sheet2
Cell Formulas
RangeFormula
B2:B5B2=IFERROR(LEFT(VLOOKUP(A2,Sheet3!A:B,2,FALSE),FIND("(",VLOOKUP(A2,Sheet3!A:B,2,FALSE))-1),"")
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
How about
Fluff.xlsm
ABC
1RecordEmployee NameEmployee Number
21Jason Bourne 12345
32Tim Drake 54321
43Luke Skywalker 12131
54Darth Vader 54535
Sheet2
Cell Formulas
RangeFormula
B2:C5B2=SUBSTITUTE(TEXTSPLIT(XLOOKUP(A2,Sheet3!$A$2:$A$100,Sheet3!$B$2:$B$100,""),"("),")","")
Dynamic array formulas.
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,072
Messages
6,122,966
Members
449,094
Latest member
Anshu121

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