Hi all,
I've been searching the internet for a solution to this but due to the key words the only solutions I'm seeing do not pertain to this situation.
I'm basically trying to aggregate a bunch of data and I want to pull unit information from one set of data into my existing set of data so I have all the information I need in one spot. The common denominators in each set of data are product codes and countries.
I have two data sets--lets call them data set 1 and data set 2. I'm trying to vlookup a product code from data set 1 to pull in a value from data set 2 but ONLY if the country values match. I'm trying to avoid creating another column to combine product code and country into one cell just for the vlookup so hoping there is a catch-all formula that can do that for me. Any ideas are appreciated!
I've stated the value in RED in data set 1 below.
DATA SET 1:
DATA SET 2:
I've been searching the internet for a solution to this but due to the key words the only solutions I'm seeing do not pertain to this situation.
I'm basically trying to aggregate a bunch of data and I want to pull unit information from one set of data into my existing set of data so I have all the information I need in one spot. The common denominators in each set of data are product codes and countries.
I have two data sets--lets call them data set 1 and data set 2. I'm trying to vlookup a product code from data set 1 to pull in a value from data set 2 but ONLY if the country values match. I'm trying to avoid creating another column to combine product code and country into one cell just for the vlookup so hoping there is a catch-all formula that can do that for me. Any ideas are appreciated!
I've stated the value in RED in data set 1 below.
DATA SET 1:
CODE | MEXICO | AUSTRALIA |
123 | Vlookup product code 123 to pull in "UNITS" value ONLY if country is Mexico | Vlookup product code 123 to pull in "UNITS" value ONLY if country is Australia |
DATA SET 2:
COUNTRY | PRODUCT CODE | UNITS |
MEXICO | 123 | 5 |
AUSTRALIA | 123 | 10 |
MEXICO | 456 | 12 |