I am trying to pull data from another workbook with a certain sheet name. The certain sheet name is in cell J1 within Workbook 1. The data I need in Workbook 1 cell J4 is in Workbook 2 cell O35. I am using the following formula:
INDEX(INDIRECT("'[Workbook 2.xlsx]"&J1&"'!"&$A$3:$O$40),MATCH($G4,INDIRECT("'[Workbook 2.xlsx]"&J1&"'!$A$3:$O$3"),0),MATCH($L$2,INDIRECT("'[Workbook 2.xlsx]"&J1&"'!$A$4:$A$40"),0))
The two MATCH/INDIRECT parts of the formula works fine, but it is the first part; INDEX(INDIRECT that is not. I clearly have something wrong because the range $A$3:$O$40 is highlighting in Workbook 1 when I click on the formula. I really need it to index Workbook 2.
If anyone sees my mistake please let me know what I have wrong where, please!
Thanks
Tim
INDEX(INDIRECT("'[Workbook 2.xlsx]"&J1&"'!"&$A$3:$O$40),MATCH($G4,INDIRECT("'[Workbook 2.xlsx]"&J1&"'!$A$3:$O$3"),0),MATCH($L$2,INDIRECT("'[Workbook 2.xlsx]"&J1&"'!$A$4:$A$40"),0))
The two MATCH/INDIRECT parts of the formula works fine, but it is the first part; INDEX(INDIRECT that is not. I clearly have something wrong because the range $A$3:$O$40 is highlighting in Workbook 1 when I click on the formula. I really need it to index Workbook 2.
If anyone sees my mistake please let me know what I have wrong where, please!
Thanks
Tim