Remove some text from VLOOKUP result

Tomo1971

New Member
Joined
May 20, 2015
Messages
6
Hi,

I have a vlookup that extracts two names from one cell on another tracker

=VLOOKUP(B4,'[Project Tracker.xlsx]MAIN'!$1:$1048576,114,FALSE)

This gives the correct result of;

John Smith & Joe Bloggs

I need to separate both these names into two cells,

Cell A14 would need to be John Smith =LEFT(A15,FIND("&",A15)-1)
Cell A15 would need to be Joe Bloggs =RIGHT(A14,LEN(A14)-FIND("&",A14))

So in other words, the text in A14 before the & and the text in A15 after the &

Is this possible?

Many thanks
 
Last edited:

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hi, you could try these..

A14: =TRIM(LEFT(SUBSTITUTE(VLOOKUP(B4,'[Project Tracker.xlsx]MAIN'!$1:$1048576,114,FALSE),"&",REPT(" ",255)),255))
A15: =TRIM(RIGHT(SUBSTITUTE(VLOOKUP(B4,'[Project Tracker.xlsx]MAIN'!$1:$1048576,114,FALSE),"&",REPT(" ",255)),255))
 
Upvote 0
You can put the vlookup formula in place of the cell reference
Code:
=LEFT(VLOOKUP(B4,'[Project Tracker.xlsx]MAIN'!$1:$1048576,114,FALSE),FIND("&",VLOOKUP(B4,'[Project Tracker.xlsx]MAIN'!$1:$1048576,114,FALSE))-1)

Code:
=RIGHT(VLOOKUP(B4,'[Project Tracker.xlsx]MAIN'!$1:$1048576,114,FALSE),LEN(A13)-FIND("&",VLOOKUP(B4,'[Project Tracker.xlsx]MAIN'!$1:$1048576,114,FALSE)))
 
Upvote 0

Forum statistics

Threads
1,223,248
Messages
6,171,027
Members
452,374
Latest member
keccles

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