Search code examples
excelreference

How to reference another in a reference in excel?


I have some values and they are numbered 0-25, from A-Z. I have a cell with a value A-Z, and I want to use this value in an equation for another cell: =COLUMN('Cell Value'1). I tried using CELL("contents",A3) which is the reference to the letter. I want it to be where it automatically changes the column reference when the letter changes. If there is a way to do this that I couldn't find then please help.


Solution

  • You can convert a text string to a part of a cell reference using INDIRECT().

    In this example INDIRECT(A2&1) will return value of B1 if A2 contains "B", C1 if A2 contain "С" and so on.

    INDIRECT() text to cell address