excel-formulasyntaxreferencegoogle-sheets-formulaindirection

Referencing a variable column value in a Google Sheet formula


I want to use the value of a cell as the column value of a cell reference in a formula.

For example:

I think using INDIRECT is required but couldn't figure it out.


Solution

  • do it like this:

    =INDIRECT("F"&A1)
    

    or if you want to lock A1 value:

    =INDIRECT("F"&$A$1)
    

    =INDIRECT("All Active - Paid Accounts!F"&$A$1)