VLOOKUP with return of partial result

virtuosok

Board Regular
Joined
Sep 2, 2020
Messages
209
Office Version
  1. 365
Platform
  1. Windows
Hi,
I have the formulas in the following format:
Excel Formula:
=VLOOKUP(K3,IWRS003!A2:B800,2,FALSE)
They return result along the lines of
Smith, John
I need the formula to only return the value before comma (Smith) but struggle to marry the above formula with the likes of
Excel Formula:
=LEFT(A1,(FIND(",",A1,1)-1))
Is it even possible or I have to add helper column?
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
try

=LEFT(VLOOKUP(K3,A2:B800,2,FALSE),(FIND(",",VLOOKUP(K3,A2:B800,2,FALSE),1)-1))

Book6
ABCDEFG
1smith, johnsmith
21ABC,123VlookupJust text before comm
32smith, johnABC
4
Sheet2
Cell Formulas
RangeFormula
D1D1=VLOOKUP(K3,A2:B800,2,FALSE)
F1F1=LEFT(VLOOKUP(K3,A2:B800,2,FALSE),(FIND(",",VLOOKUP(K3,A2:B800,2,FALSE),1)-1))
F3F3=LEFT(VLOOKUP(K4,A2:B800,2,FALSE),(FIND(",",VLOOKUP(K4,A2:B800,2,FALSE),1)-1))
 
Upvote 0
Solution

Forum statistics

Threads
1,214,979
Messages
6,122,551
Members
449,088
Latest member
davidcom

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