Hi,
I have attached a basic spreadsheet to demonstrate the problem that I want to resolve.
I have two workbooks...
Workbook 1 (represented by 'Table 1'):
This includes 'Scenario ID' and an empty column that I want to automatically fill with multiple 'Script ID' values from multiple cells in the second work book.
Workbook 2 (represented by 'Table 2'):
This contains Scripts, and the 'Scenarios' that map to these scripts.
I want to use some sort of VLOOKUP or SEARCH function, or see if there is some VB that can be written to lookup the 'Scenario ID' value in workbook 1, in the 'Additional Scenarios Covered' column in workbook 2.
I'm currently presented with two problems:
1. A VLOOKUP function cannot search an array for cells that contain the value - they will only return details when the cell exactly matches.
2. A VLOOKUP function will only return the first value when found, whereas I need a formula that can return each and every instance throughout my table.
So, at the moment I am doing this manually, but both workbooks contain over 1000 entries so this really isn't ideal and is time consuming!
If anyone can help I'd be extremely appreciative!
![]()
Bookmarks