I'm trying to make Column E in Workbook A display the number of reports a manager has submitted in a given month in Workbook B. I want to use the COUNTA formula to count the number of non-blank cells in Column A of Workbook B, which would be equivalent to the number of submitted reports. However, there are multiple managers and each manager has their own sheet in Workbook B. For example, manager John Smith logs submitted reports in Workbook B on a sheet called "Smith". The name of the sheet in Workbook B is located in cell Q3 of Workbook A. I tried to make this work with the following code:
=COUNTA((('[Workbook B.xlsx]' & 'INDIRECT(Q3,FALSE)' & '!$A$2')),('[Workbook B.xlsx]' & 'INDIRECT(Q3,FALSE)' & '!$A$500))
Ideally, this code would count the nonblank cells from A2:A500 in Workbook B and display the number in Workbook A.