Search a table and use the returning value to search another table
Nena asks:
Sheet 1 - 'File data'
1. client name
2. filename
3. file date create
Sheet 2 - 'Client data'
1. client name
2. client ID
3. service start date
4. service end date
I need to map correct client ID based on lookup by client name and then based on finding which service date range does client file created date fit into.
So I need to:
1. First search - Identify Client records with matching name
2. Second search - Within that range, I need to find fitting date range.
Your lookups are great when I search entire sheets but I need to do second search based on subset of data.
Any help will be much appreciated.
Thanks!
Nena
Answer:
I created two tables containing random data.
Sheet1, Table1
Sheet2, Table2
Sheet 3:
Formula in cell A6:
This formula contains a reference to a table. Dragging the cell by the handle to 'pull' the formula across multiple columns won´t work. Copy cell A6 and paste to cell range B6:C6.
Array formula in cell A9:
How to enter an array formula
Copy cell A9 and paste to cell range B9:D9. Copy cell range A9:D9 and paste to cell range A10:D14.
Recommended blog post:
Search two related tables simultaneously (vba)
Download excel *.xlsx file
Related posts:
Search for a text string in an excel table
Search for a cell in a table and then display the column title in excel
How to create a dynamic pivot table and refresh automatically in excel





















