V-Lookup Issues

nithchun

New Member
Joined
Sep 20, 2024
Messages
9
Office Version
  1. 365
Platform
  1. Windows
Hi all, I'm newer to Excel and I was wondering if any of you guys might have any insight for a problem that I'm having with my Vlookup function. I have two sheets and the identifier between them is the company name. One sheet (We can call that the Supplier List) has all the company names in rows with the associated street address and I am trying to pull a select few street addresses associated with these companies to the other spreadsheet (We can call that the Street Address List) so the Street Address List has the street addresses of some specific companies that I want. However, the names of the companies on the Supplier List have a number attatched to them like this: "MARKETO INC (1004118)", whereas the names of the companies on the Street Address List have the companies listed like this: "MARKETO INC". To trim the characters of the names of the companies on the Supplier List, I used this formula: =LEFT(B2563,LEN(B2563)-9), and removed the last 9 characters so that my VLOOKUP could have an identifier that matched. However, after running my VLOOKUP, only some of the street addresses that should have shown up show up, even though my identifiers match. Here is my VLOOKUP function: =VLOOKUP(C2, '[Identifier Copy of Supplier List.xlsx]sheet1'!$D:$X, 21, FALSE) Does anyone have any experience with this? Thanks for your help and let me know if you need any more information.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
It could be the space between the company name and the number.

The number, including the space, is 10 characters, but you are only removing 9 in your other formula.
"MARKETO INC (1004118)"

So, either change the formula to remove 10:
=LEFT(B2563,LEN(B2563)-10)

Or add TRIM to remove the extra space:
=TRIM(LEFT(B2563,LEN(B2563)-9))
 
Upvote 0
Solution
Try changing your LEFT formula to:
LEFT(B2563,LEN(B2563)-10)
In your example there is a space between the "C (" in MARKETO INC (1004118). You need to remove that space to have the company names match.
 
Upvote 0

Forum statistics

Threads
1,223,939
Messages
6,175,532
Members
452,652
Latest member
eduedu

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