Zandra

New Member
Joined
Dec 18, 2015
Messages
7
I wonder if someone could help, I have two supplier lists. The first has the correct supplier spellings and supplier references. The second is a creditor listing from a different system which has the same suppliers and different account numbers. The supplier names differ slightly eg limited included in the name and the supplier appears more than once if there is more than one invoice outstanding. I am trying to do a vlookup of the correct supplier list and match the names so that I can input the correct supplier reference against the supplier on the creditor listing. It seems to be matching some but where I have suppliers with similar names or where the supplier appears more than once on the creditor listing the wrong reference is being input.

Does anyone know of how I can go about resolving this?

Many Thanks
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Care to post an illustrative sample along with the desired results?

Here is the supplier list:

A/C Name
ASH001 ASHTON ACCOUNTANTS
ABS001 AROMAS
ARO001 ARON LTD
ARR001 ARRAN AROMATICS
BET001 BETTER NATURE LIMITED
AFF001 FUTURE RESTORE
HAR001 HARRISON PACKAGING LTD
HEA001 HEALTH BITE
HEA002 HEALTH RESTORE
HEA003 HEALTH STORE
HEA004 HEALTHY LIVING
NEW001 NEW SOLUTIONS
WOO001 WOODLY HEALTHCARE - FIFE

This is the result of using the vlookup. Column 1 is what it should be and column 4 is what the vlookup gives me.

ACTUAL Name Amount VLOOKUP
ABS001 AROMAS LIMITED 100 ARO001
BET001 BETTER NATURE LIMITED 500 AFF001
AFF001 BETTER NATURE LIMITED 400 AFF001
HAR001 BETTER NATURE LIMITED 50 AFF001
HEA001 BETTER NATURE LIMITED 56 AFF001
HEA001 HEALTH BITE 789 HEA004
HEA004 HEALTHY LIVING LTD 356 HEA004
HEA004 HEALTHY LIVING LTD 78 HEA004
HEA004 HEALTHY LIVING LTD 59 HEA004
HEA004 HEALTHY LIVING LTD 987 HEA004
HEA004 HEALTHY LIVING LTD 567 HEA004
HEA004 HEALTHY LIVING LTD 987 HEA004
HEA004 HEALTHY LIVING LTD 368 HEA004
HEA004 HEALTHY LIVING LTD 688 HEA004
HEA004 HEALTHY LIVING LTD 9875 HEA004
HEA004 HEALTHY LIVING LTD 3536 HEA004
HEA004 HEALTHY LIVING LTD 6 HEA004
HON001 HONEYBEE COMPANY LIMITED 252 HEA004
WOO001 WOODLY HEALTHCARE 23 WOO001
WOO001 WOODLY HEALTHCARE 45 WOO001
WOO001 WOODLY HEALTHCARE 56 WOO001
WOO001 WOODLY HEALTHCARE 76 WOO001
WOO001 WOODLY HEALTHCARE 678 WOO001
WOO001 WOODLY HEALTHCARE 543 WOO001
WOO001 WOODLY HEALTHCARE 456 WOO001
WOO001 WOODLY HEALTHCARE 234 WOO001
WOO001 WOODLY HEALTHCARE 234 WOO001
WOO001 WOODLY HEALTHCARE 234 WOO001

Many Thanks
 
Upvote 0
SUPPLIER LIST

Row\Col
A​
B​
1​
A/CName
2​
ASH001ASHTON ACCOUNTANTS
3​
ABS001AROMAS
4​
ARO001ARON LTD
5​
ARR001ARRAN AROMATICS
6​
BET001BETTER NATURE LIMITED
7​
AFF001FUTURE RESTORE
8​
HAR001HARRISON PACKAGING LTD
9​
HEA001HEALTH BITE
10​
HEA002HEALTH RESTORE
11​
HEA003HEALTH STORE
12​
HEA004HEALTHY LIVING
13​
NEW001NEW SOLUTIONS
14​
WOO001WOODLY HEALTHCARE - FIFE

<tbody>
</tbody>


The destination sheet...

<strike></strike>
Row\Col
B​
C​
D​
1​
A/C
NameAmount
2​
ABS001AROMAS LIMITED
100​
3​
BET001BETTER NATURE LIMITED
500​
4​
BET001BETTER NATURE LIMITED
400​
5​
BET001BETTER NATURE LIMITED
50​
6​
BET001BETTER NATURE LIMITED
56​
7​
HEA001HEALTH BITE
789​
8​
HEA004HEALTHY LIVING LTD
356​
9​
HEA004HEALTHY LIVING LTD
78​
10​
HEA004HEALTHY LIVING LTD
59​
11​
HEA004HEALTHY LIVING LTD
987​
12​
HEA004HEALTHY LIVING LTD
567​
13​
HEA004HEALTHY LIVING LTD
987​
14​
HEA004HEALTHY LIVING LTD
368​
15​
HEA004HEALTHY LIVING LTD
688​
16​
HEA004HEALTHY LIVING LTD
9875​
17​
HEA004HEALTHY LIVING LTD
3536​
18​
HEA004HEALTHY LIVING LTD
6​
19​
#N/A​
HONEYBEE COMPANY LIMITED
252​
20​
WOO001WOODLY HEALTHCARE
23​
21​
WOO001WOODLY HEALTHCARE
45​
22​
WOO001WOODLY HEALTHCARE
56​
23​
WOO001WOODLY HEALTHCARE
76​
24​
WOO001WOODLY HEALTHCARE
678​
25​
WOO001WOODLY HEALTHCARE
543​
26​
WOO001WOODLY HEALTHCARE
456​
27​
WOO001WOODLY HEALTHCARE
234​
28​
WOO001WOODLY HEALTHCARE
234​
29​
WOO001WOODLY HEALTHCARE
234​

<tbody>
</tbody>


In B2 of the destination sheet enter and copy down:
Rich (BB code):

=IFERROR(LOOKUP(9.99999999999999E+307,SEARCH('SUPPLIER LIST'!$B$2:$B$14,$C2&"*"),
  'SUPPLIER LIST'!$A$2:$A$14),VLOOKUP($C2&"*",CHOOSE({1,2},'SUPPLIER LIST'!$B$2:$B$14,
  'SUPPLIER LIST'!$A$2:$A$14),2,0))
<strike></strike>
 
Upvote 0

Forum statistics

Threads
1,216,101
Messages
6,128,845
Members
449,471
Latest member
lachbee

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