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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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