Select Closest Match to Values

AllisterB

Board Regular
Joined
Feb 22, 2019
Messages
120
Office Version
  1. 365
Platform
  1. Windows
I have a transaction listing coming out of a General Ledger. The Name of the client is in the Narration column - however, sometimes it is misspelt and the client name it is not always in the same position in the column.

The Transaction Table of about 1000 rows is sitting in a database. The Client data is in an Excel workbook.

The list of clients is very limited (about 30) and they are quite different from each other. I am therefore comfortable about the closest match being chosen eg Jane Dikes for Jayne D.

How would I go about achieving this - would it be by using PQ Editor or possibly by vba.

thanks

Allister

book25.xlsm
DEFGHIJ
6
7DateAccountNarrationAmount
822/12/20201200.100ABC - Alex Brown - Dec 2010
929/12/20201200.100ABC - Jane Dikes - Dec 2020
1030/12/20201300.200Alex Brown Homer B - Dec 202030
1127/12/20201400.000ABC - Dec 20 - Jayne D40
124/01/20211200.100DEF - Jan 21 - Bob H50
1330/12/20201500.200ABC -John White - Dec 2060
141/01/20211200.100ABC - H Black - Jan 2170
154/01/20211120.100ABC - Jane Dikes - Jan 2180
1621/12/20201200.100DEF - Dec 2020 Bobby Hill90
17
18
19
20Clients
21Alex Brown
22Jane Dikes
23Homer Black
24Bobby Hill
25John White
26
27
28
29
30DateAccountNarrationClientAmount
3122/12/20201200.100ABC - Alex Brown - Dec 20Alex Brown10
3229/12/20201200.100ABC - Jane Dikes - Dec 20Jane Dikes20
3330/12/20201300.200Alex Brown Homer B - Dec 2020Homer Black30
3427/12/20201400.000ABC - Dec 20 - Jayne DJane Dikes40
354/01/20211200.100DEF - Jan 21 - Bob HBobby Hill50
3630/12/20201500.200ABC -John White - Dec 20John White60
371/01/20211200.100ABC - H Black - Jan 21Homer Black70
384/01/20211120.100ABC - Jane Dikes - Jan 21Jane Dikes80
3921/12/20201200.100DEF - Dec 2020 Bobby HillBobby Hill90
40
Sheet1
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

Forum statistics

Threads
1,223,753
Messages
6,174,307
Members
452,554
Latest member
Louis1225

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