Forum Discussion
Using the number in a cell as the row reference in other.
- Nov 16, 2020
The function that performs the task you describe is
=INDIRECT("F"&D4)
Another option is to use INDEX
= INDEX(F:F, D4)
I tend to use defined names rather than cell references e.g.
= INDEX( data, instance )
but that is a matter of personal preference.
- PeterBartholomew1Feb 10, 2021Silver Contributor
Have you looked at SergeiBaklan 's suggestion of using Excel Tables. That provides a name for the data range that adjusts as data is added. The primary use of this functionality to keep track of the number of records in the Table but, if you add fields/columns that works too.
The key point is that the formulas
= ROWS(Table1)
= COLUMNS(Table1)
keep track of the Table size, so that
= INDEX( Table1, 0, COLUMNS(Table1)),
for example, is the right-most field of the table.
- eviera49Feb 10, 2021Copper Contributor
Thanks for helping me again.
Please see the whole explanation of the problem in the following post: