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...
m_tarler
Nov 24, 2026Silver Contributor
Yes you can use the INDIRECT function for this
=INDIRECT("Sheet1!"&D1)
you can also use INDEX or OFFSET or CHOOSECOL. It would be easier if the output of D1 was a Column Number (33) instead of the Range ("AG:AG") and then
=INDEX(A:ZZ,0,D1)
or
=OFFSET(A:A,,D1-1)
or
=CHOOSECOL(A:ZZ,D1)