A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Store the external reference text in H13, then build the range text and pass it to INDIRECT.
Use:
=LET(
RefText, "'" & 'Dash Board_Data_File'!H13 & "'!$E$2473:$F$3573",
Data, INDIRECT(RefText),
SORT(FILTER(Data, BYROW(Data, LAMBDA(r, SUM(r)>0)), "N"), 1, -1)
)
If H13 already contains the workbook and sheet portion like:
file:///Q:\...\[Fatigue Assesment_Welded Joints_C1_RSL31.xlsm]C1_RSL31
this formula turns it into a text reference such as:
'file:///Q:\...\[Fatigue Assesment_Welded Joints_C1_RSL31.xlsm]C1_RSL31'!$E$2473:$F$3573
Important points:
-
INDIRECTrequires a valid text reference. - If
ref_textrefers to another workbook, that workbook must be open, otherwiseINDIRECTreturns#REF!. - External references are not supported in Excel for the web.
- If the path/sheet text in
H13contains spaces, keeping the single quotes around the reference is correct.
If the full external reference including the cell range is already in H13, use:
=LET(
Data, INDIRECT('Dash Board_Data_File'!H13),
SORT(FILTER(Data, BYROW(Data, LAMBDA(r, SUM(r)>0)), "N"), 1, -1)
)
References: