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

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
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.

NAMESORT CODEACCOUNT NO.FULL LINELOOKUP
C Cuthell
97-46-27

<tbody>
</tbody>
59418670

<tbody>
</tbody>
c cuthell CHARLOTTES MONEY BGCFrom: 97-46-27 59418670

<tbody>
</tbody>
c cuthell CHARLOTTES MONEY BGCFrom: 97-46-27 59418670

<tbody>
</tbody>
VLOOKUP(A2&B2&C2,D:D,1,1)

<tbody>
</tbody>
 
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,214,808
Messages
6,121,684
Members
449,048
Latest member
81jamesacct

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