I have about 20 worksheets with data in similar format. I have VLOOKUP working fine with multiple worksheets in a SheetList, to bring selected information into a new worksheet. But this won't work looking left in (from) the array. I can search one worksheet by Index-Match but I do not know how to use the SheetList in the index and match functions to search all the worksheets at once, and I cannot find an answer anywhere.
This works fine (my personal arrays)
=VLOOKUP([FONT="]$C7[/FONT],INDIRECT[FONT="]([/FONT]"'"&INDEX[FONT="]([/FONT][FONT="]SheetList[/FONT],MATCH[FONT="]([/FONT]1,--[FONT="]([/FONT]COUNTIF[FONT="]([/FONT]INDIRECT[FONT="]([/FONT]"'"&[FONT="]SheetList[/FONT]&"'!$d$6:$e$200"[FONT="])[/FONT],[FONT="]$C7[/FONT][FONT="])[/FONT]>0[FONT="])[/FONT],0[FONT="])[/FONT][FONT="])[/FONT]&"'!$d$6:$e$200"[FONT="])[/FONT],2,0)
This gets the amount of an invoice where the invoice numbers are in a 'Fill Series" list on a new spreadsheet.
This works for a single worksheet:
=INDEX(Railway!$B$6:$B$25,MATCH[FONT="]([/FONT][FONT="]C18[/FONT],Railway!$D$6:$D$25,0[FONT="])[/FONT])
This gets the date of the invoice which is in a column to the left of the invoice number in each spreadsheet. Changing the column order makes no sense and would be awkward for the initial data entry. But this is only one selected worksheet to test if the index-match formula works - it does.
[FONT="]
[/FONT]
[FONT="]Can someone advise about how to incorporate the SheetList (a named array of all the worksheet names) into INDEX and into MATCH.[/FONT]
[FONT="]
[/FONT]
[FONT="]Thanks[/FONT]
This works fine (my personal arrays)
=VLOOKUP([FONT="]$C7[/FONT],INDIRECT[FONT="]([/FONT]"'"&INDEX[FONT="]([/FONT][FONT="]SheetList[/FONT],MATCH[FONT="]([/FONT]1,--[FONT="]([/FONT]COUNTIF[FONT="]([/FONT]INDIRECT[FONT="]([/FONT]"'"&[FONT="]SheetList[/FONT]&"'!$d$6:$e$200"[FONT="])[/FONT],[FONT="]$C7[/FONT][FONT="])[/FONT]>0[FONT="])[/FONT],0[FONT="])[/FONT][FONT="])[/FONT]&"'!$d$6:$e$200"[FONT="])[/FONT],2,0)
This gets the amount of an invoice where the invoice numbers are in a 'Fill Series" list on a new spreadsheet.
This works for a single worksheet:
=INDEX(Railway!$B$6:$B$25,MATCH[FONT="]([/FONT][FONT="]C18[/FONT],Railway!$D$6:$D$25,0[FONT="])[/FONT])
This gets the date of the invoice which is in a column to the left of the invoice number in each spreadsheet. Changing the column order makes no sense and would be awkward for the initial data entry. But this is only one selected worksheet to test if the index-match formula works - it does.
[FONT="]
[/FONT]
[FONT="]Can someone advise about how to incorporate the SheetList (a named array of all the worksheet names) into INDEX and into MATCH.[/FONT]
[FONT="]
[/FONT]
[FONT="]Thanks[/FONT]