3G
Member
Hello-
I've got a list of Vendor IDs (Col A) & Product IDs (Col G). The Vendor ID is 6 digits long, starting with 1 (10000). I have a list of product IDs for these Vendors that I created using the Vendor ID, also 6 digits long, but, the last number increments up if they have multiple products (i.e. 10001, 10002; 20001, 30001...etc). What I'm trying to do is now map the Vendor ID to the product ID, but have been having some problems. Here's what I've tried:
=IF((LEFT(G$2,2))=(LEFT(A2:A5,2)),A$2,"")
-Take the first two digits of each, and, if they're equal, return the vendor ID.
=(MATCH((LEFT(G2,2)),A2:A23,0))-1
-Tell me the row number if they match, then subtract 1 because the data starts in row 2. That'd give me the actual row number.
Both throw errors.
Any help is appreciated!
Thanks
I've got a list of Vendor IDs (Col A) & Product IDs (Col G). The Vendor ID is 6 digits long, starting with 1 (10000). I have a list of product IDs for these Vendors that I created using the Vendor ID, also 6 digits long, but, the last number increments up if they have multiple products (i.e. 10001, 10002; 20001, 30001...etc). What I'm trying to do is now map the Vendor ID to the product ID, but have been having some problems. Here's what I've tried:
=IF((LEFT(G$2,2))=(LEFT(A2:A5,2)),A$2,"")
-Take the first two digits of each, and, if they're equal, return the vendor ID.
=(MATCH((LEFT(G2,2)),A2:A23,0))-1
-Tell me the row number if they match, then subtract 1 because the data starts in row 2. That'd give me the actual row number.
Both throw errors.
Any help is appreciated!
Thanks