VLOOKUP Question on text strings

boydr

Board Regular
Joined
Apr 17, 2002
Messages
157
I have a worksheet that has a column of names in it. I'm trying to VLOOKUP to another sheet, column A, and returning the value in Column B if it finds the lookup.

All columns are text columns with names.

When I use the 'true' option in the vlookup, the results are about 50% accurate, and if I use 'false'then it's only about 5% accurate. The problem is that the spelling varies between the two columns. Is there an accurate way to do this?

Say on sheet1 in column B I have the vlookup:

=(C1,'sheet'!A1:B800,2,false) or
=(C1,'sheet'!A1:B800,2,true)

Can you vlookup with a partial string? I have about 17000 lines that I need to populate with this.
 
Yogi,

My data looks just like what Aladin entered above. Part of my problem is that there are extreme variances in the way the data (source and array) have been entered.

E.g. I may have IBM Inc. (notice the period) and the other list would not have a period (IBM Inc) and so on. It really varies considerably, and I was trying to extract say the first 3-5 characters and tagging on the "*" to make it find a closer match.

Sounds like it won't quite work the way I had intended. I've spent about 10 hours today going through manually changing punctuations etcc to get it to work right!

Thanks anyway for the help.
 
Upvote 0

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Hi boydr:

I may not be understanding what you are trying to accomplish. So, let me try again -- are you saying if your:

lookup value is 'IBM LLC' result should be 'IBM Corporation'
lookup value is 'Jimmy Dean' result should be 'Sara Lee 1'
lookup value is 'State Fair' result should be 'Sara Lee 2'

I f that is the case, look at the following simulation:
y030116h1.xls
ABCDE
1Name1Name2
2IBMCorp.IBMCorporation
3IBMInc.IBMCorporation
4IBMLLCIBMCorporation
5JimmyDeanSaraLee1
6StateFairSaraLee2
7TheIBMcorporationIBMCorporation
8LookupTable
9
10lookupvaluecomputedresult
11IBMLLCIBMCorporation
12JimmyDeanSaraLee1
13StateFairSaraLee2
Sheet11a
</SPAN>

As I said, I may not be understanding what you are trying to accomplish -- if a problem is fairly well defined, there is a good chance we can find a solution.
 
Upvote 0
On 2003-01-16 07:46, boydr wrote:
Aladin,

Thanks for the response, but I can't use that addin (unfortunately.) I'm doing this at work and can't install programs. I think you may be right in that I'm using fuzzy logic, and it's very difficult to get the rate match in my situation.

Without morefunc...
Book17
ABCDEF
1
2LookupvaluesResultHidethiscolumnHidethiscolumn
3IBMLLCIBMCorporationIBMCorporation 
4JimmyDeanSaraLee1SaraLee1 
5StateFairSaraLee2SaraLee2 
6IBMIBMCorporationIBMCorporation 
7IBMBlueIBMCorporation#N/AIBMCorporation
8
Sheet1
 
Upvote 0

Forum statistics

Threads
1,214,650
Messages
6,120,736
Members
448,988
Latest member
BB_Unlv

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