Vlookup for "not exact lookup value"

Kashif Mehmood

New Member
Joined
Jul 18, 2018
Messages
3
Hello everyone,

I have 3 different columns containing Name, sort code and account No. as "C cuthell", "974627", "59418670" , i want to combine these and match with a column from my bank statement which is "c cuthell CHARLOTTES MONEY BGCFrom: 97-46-27 59418670" and ultimately i want to use vlookup on that data.

Thanks.
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
If the three values you gave are in A,B, C then the full statement line is in D, a vlookup using a concatenate and a closest match works. As for it working in a bigger set of data I am not sure as this match will find the first closest match. Try this.

A2, B2 and C2 would be the Name, Sort Code and Account No. The second 1 in the vlookup is the same as putting TRUE.

=VLOOKUP(A2&B2&C2,D:D,1,1)
 
Upvote 0
Thankyou for your answer but its not working , Plus in the bank statement the sort code is also seperated by "-" after every 2 digits.
 
Upvote 0
I don't think the dashes are a problem as you are looking up that exact value. This is how my spreadsheet looked below.

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]NAME[/TD]
[TD]SORT CODE[/TD]
[TD]ACCOUNT NO.[/TD]
[TD]FULL LINE[/TD]
[TD]LOOKUP[/TD]
[/TR]
[TR]
[TD]C Cuthell[/TD]
[TD][TABLE="width: 76"]
<tbody>[TR]
[TD="class: xl65, width: 76"]97-46-27[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 96"]
<tbody>[TR]
[TD="class: xl65, width: 96"]59418670[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 425"]
<tbody>[TR]
[TD="class: xl65, width: 425"]c cuthell CHARLOTTES MONEY BGCFrom: 97-46-27 59418670[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 377"]
<tbody>[TR]
[TD="class: xl65, width: 377"]c cuthell CHARLOTTES MONEY BGCFrom: 97-46-27 59418670[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]VLOOKUP(A2&B2&C2,D:D,1,1)[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Not working sir, giving me the wrong answer.. plus my data is comprised of thousand of rows, Approximate match is not working.
 
Upvote 0
Based on what you've posted, and assuming that the sort code column is stored as a number, you could use

A2&"*"&TEXT(B2,"00-00-00")&" "&C2

as the first argument in your VLOOKUP formula, making sure to use FALSE as the fourth argument.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,907
Messages
6,175,301
Members
452,633
Latest member
DougMo

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