• Last Value in range (X2K)

    Author
    Topic
    #386060

    I am looking for a formula that will give me the last value in a column of figures. I am sure this has been posted before but I could not find it in search sad

    Many Thanks

    Peter

    Viewing 0 reply threads
    Author
    Replies
    • #668380

      For instance, to find the value of the last used cell in column A, use this formula:

      =OFFSET(A2,MATCH(9.99999999999999E+307,A2:A65536),0)

      I found this formula by Rory in post 168137 by searching for “last cell column”, search option “And”.

      • #668381

        Thanks Hans smile

      • #668401

        How about the last numerical (as opposed to text) value in a row?

        0

        • #668402

          Try something like:
          =OFFSET(A2,0,MATCH(9.99999999999999E+307,2:2)-1)
          if your formula is in A1. You will need to adjust the cell and row numbers according to where your formula is and which row you’re looking in. (It’s basically the same formula as for columns, but swapping the 0 and the MATCH expression round in the OFFSET function)
          HTH.

        • #668899

          =LOOKUP(9.99999999999999E+307,2:2)

          or

          =INDEX(2:2,MATCH(9.99999999999999E+307,2:2)

          will return the last numeric value (a number, a date, or a time value).

          The formula is also applicable to definite ranges…

          =LOOKUP(9.99999999999999E+307,A2:M2)

      • #668897

        You don’t need volatile OFFSET…

        Either

        =INDEX(A:A,MATCH(9.99999999999999E+307,A:A))

        or

        =LOOKUP(9.99999999999999E+307,A:A)

    Viewing 0 reply threads
    Reply To: Last Value in range (X2K)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: