I’d like to reference a cell in a named range depending on a value outside of this named range
What I would like to see is ideally:
INDEX(named_range;;COLUMN()-RC1)
However, INDEX does not allow for the RC1 whilst it recognizes Column().
One way would be to make RC1 part of the named range (by copying the data into first column of range etc), but as the named range is somewhere completely different to the cell containing the formula, “I don’t want to…”.
Any other options to achieve it?
Thanks
*Addition:
Maybe the purpose helps. The aim is to find the number of installed units (named_range) that need to be replaced in the future depending on the lifetime which is in RC1.*
As per comments, you need to take into account the start column of the named range to get the correct column, possibly use
=INDEX(named_range;;COLUMN()-RC1-MIN(COLUMN(named_range))+1)