Matching up data between 2 workbooks

zookeepertx

Well-known Member
Joined
May 27, 2011
Messages
576
Office Version
  1. 365
Platform
  1. Windows
I have 2 workbooks: 1 contains data in columns A-K & the other is a log containing data in columns A-P. On the data sheet, col C is a vendor name & col A is a shortened code for the vendor. On the log sheet, col E is the first 9 characters of the vendor name followed by a / & the vendor number.

I need to match up the 9 characters of the vendor name on the log with the first 9 characters of the vendor name on the data sheet & return the vendor's code from col A of the data sheet in col R of the log.
EXCEPT: if the vendor name has a duplicate just above or below it on the data sheet or the vendor code has a duplicate just above or below it on the data sheet, then I need the word VERIFY in col R of the log. It would be best if the cells that return VERIFY could be red & any cells in col R without a match on the data sheet could be yellow with something like NO MATCH in them.

Here is an example of the data sheet (left) & the log sheet (right) as they start out:

Col A
Col C
Col E
Row 1
WIDS
Widgets and Stuff
Row 1
Justin Mo/27584
Row 2
BUCO
Bungee Cords Intl
Row 2
Wires N S/13579
Row 3
WNST
Wires N Strings
Row 3
Dictionar/14893
Row 4
DICT
Dictionaries R Us
Row 4
Dictionar/14893
Row 5
DICR
Dictionaries R Us
Row 5
Northern /98347
Row 6
JUST
Just A Dollar
Row 6
Widgets a/12345
Row 7
JUST
Justin Morgan
Row 7
Bungee Co/24680

<TBODY>
</TBODY>

As you can see, Dictionaries R Us has a duplicate in the name column & JUST has a duplicate in the code column. Also, on the log sheet, Row 5 has no match on the data sheet. So, the desired result on the log sheet would be:

Col E
Col R
Row 1
Justin Mo/27584
VERIFY
Row 2
Wires N S/13579
WNST
Row 3
Dictionar/14893
VERIFY
Row 4
Dictionar/14893
VERIFY
Row 5
Northern /98347
NO MATCH
Row 6
Widgets a/12345
WIDS
Row 7
Bungee Co/24680
BUCO

<TBODY>
</TBODY>


I would REALLY appreciate any help on this; I've been studying on it & can't seem to figure out how to do it. Thanks!
(Just got Excel 2010 & still trying to figure it out)
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Forum statistics

Threads
1,219,093
Messages
6,146,266
Members
450,681
Latest member
ASBM24

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