Hi,
I'm new to this website, and I am an inexperienced Excel user.
Basically I have a worksheet with 4 sheets of information, and one called the Master List which collates information from the other 4. Sheets 1 to 4 are all personnel information from various years. I am trying to find an easy formula to be able to search sheets 1 to 4 for the 'End Date' using the surname as the search tool, but am getting 'Not Found' on every persons, even though I know most of them have dates.
I am using -
=IFERROR(VLOOKUP(A2,INDIRECT("'"&INDEX(List_of_Sheets,MATCH(TRUE,MATCH(INDIRECT("'"&List_of_Sheets&"'!"&Data_Range),A2)>0,0))&"'!"&Data_Range),6,0),"Not Found")
A2 being the cell containing the surname I am searching for and 6 being the Column No. I want to import the data from.
The List_of_Sheets has been created by typing in the actual names of the 4 sheets containing the information I need, and using Name Manager.
The Data_Range has been created also using Name Manager and not specifying the sheets, just the cells i.e. $A$2:$F$500, so it should check all 4 sheets.
Can someone please help me to find out what I am doing wrong?
I'm new to this website, and I am an inexperienced Excel user.
Basically I have a worksheet with 4 sheets of information, and one called the Master List which collates information from the other 4. Sheets 1 to 4 are all personnel information from various years. I am trying to find an easy formula to be able to search sheets 1 to 4 for the 'End Date' using the surname as the search tool, but am getting 'Not Found' on every persons, even though I know most of them have dates.
I am using -
=IFERROR(VLOOKUP(A2,INDIRECT("'"&INDEX(List_of_Sheets,MATCH(TRUE,MATCH(INDIRECT("'"&List_of_Sheets&"'!"&Data_Range),A2)>0,0))&"'!"&Data_Range),6,0),"Not Found")
A2 being the cell containing the surname I am searching for and 6 being the Column No. I want to import the data from.
The List_of_Sheets has been created by typing in the actual names of the 4 sheets containing the information I need, and using Name Manager.
The Data_Range has been created also using Name Manager and not specifying the sheets, just the cells i.e. $A$2:$F$500, so it should check all 4 sheets.
Can someone please help me to find out what I am doing wrong?