Excel select a value from a cell having row number calculated

前端 未结 1 1709
难免孤独
难免孤独 2021-02-13 16:57

In column A i have numbers calculated like so:

[A]
[1]
[2]
[3]
[4]
[1]
[2]
[3]
...

In column K I have values:

[row] [K]
[ 1 ]         


        
1条回答
  •  逝去的感伤
    2021-02-13 17:48

    You could use the INDIRECT function. This takes a string and converts it into a range

    More info here

    =INDIRECT("K"&A2)
    

    But it's preferable to use INDEX as it is less volatile.

    =INDEX(K:K,A2)
    

    This returns a value or the reference to a value from within a table or range

    More info here

    Put either function into cell B2 and fill down.

    0 讨论(0)
提交回复
热议问题