Forum Discussion

jsrmenke's avatar
jsrmenke
Copper Contributor
Sep 08, 2025
Solved

Excel help!

How would I capture the data from the last cell in a column when the column length is variable?
  • HansVogelaar's avatar
    HansVogelaar
    Sep 11, 2025

    Thanks to SergeiBaklan​ I may now understand what you want. To get the last displayed value in column B, use

    =INDEX(B1:B100, MAX(IF(($B$14:$B$100<>"")*(($D$14:$D$100>0)+($F$14:$F$100>0)), ROW($D$14:$D$100))))

    Adjust the column in B1:B100 for the last displayed value in other columns, for example for column K:

    =INDEX(K1:K100, MAX(IF(($B$14:$B$100<>"")*(($D$14:$D$100>0)+($F$14:$F$100>0)), ROW($D$14:$D$100))))

Resources