Forum Discussion

bracurrie's avatar
bracurrie
Copper Contributor
Aug 13, 2025

How to use a column name in formula reference

I am using the following formula in columns across where each new column is the next month.

 'XLOOKUP("*"&$A2&"*",'[Sales by Item 2025-01.xlsx]Sheet1'!$F:$F,'[Sales by Item 2025-01.xlsx]Sheet1'!$I:$I,0,2)

How do I use the Column name in the XLOOKUP function so I do not have to edit each cell for each new months linked reference?

SKU2025-012025-02
ABC-123XLOOKUP formula using "ABC-123" and "2025-01"XLOOKUP formula using "ABC-123" and "2025-02"

Resources