Forum Discussion
BNewman
Nov 20, 2026Copper Contributor
excel formula cell reference
I want to write a formula==sumifs or a lookup--where the criteria range uses a value in another cell. For example, rather than write a sumifs as (sheet!A:A,...etc) I want to use the value in a cell i...
NikolinoDE
Nov 26, 2026Platinum Contributor
Regarding the complete proposed solution from m_tarler, I would just like to add that I particularly like the INDEX approach, as it avoids the volatility of INDIRECT and OFFSET.
One additional consideration: if the lookup currently returns a column letter (such as AG), it can also be converted into a column number using COLUMN(INDIRECT(D1&"1")), or the lookup itself could return the column number directly. That would make the INDEX approach even more flexible and efficient for larger workbooks.
I think INDEX is probably the better long-term solution here.