I have 2 worksheets. The first is a single column of values. The second is a data array with multiple rows and columns.
I need to perform a lookup/search of the values in worksheet 1 against the data array in worksheet 2. The returned value needs to be the cell adjacent to the right of the matched cell. I cannot simply use vlookup since the lookup values are not necessarily in the first column.
I've been messing around with the index, match, countif functions but can't get it right. Can anyone help? I've included a simplified example below. The real data I'm working with actually has 3000+ columns of data, the data points repeat every 20 columns so there are 150 "sets" of data spreading horizontally across the spreadsheet.
Worksheet 1 (lookup values):
Color Returned Value Green 4 Orange 7
Worksheet 2 (data array):
Color Number Color Number Blue 1 Black 2 Red 3 Green 4 White 5 Yellow 6 Orange 7 Brown 8 Silver 9 Pink 10
So the formula I'm looking to create will be for the "Returned Value" column in the first table. In this example, Green is the lookup value, it is found in the data array (table 2) and returns the value located next to the cell (4). Same logic applies to the orange example and the response of 7.
Hope this makes sense. Any help is appreciated.
Bookmarks