• Last value in column (2007)

    • This topic has 4 replies, 2 voices, and was last updated 17 years ago.
    Author
    Topic
    #451716

    How can I find the last value (entry) in a column?
    A1-B?? (the last entry in column

    Viewing 1 reply thread
    Author
    Replies
    • #1112736

      Do you want to use a formula of VBA code?

      If you want to use a formula and if column B contains numeric values, you can use this formula:

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

      9.99999999999999E+307 is the largest value you can enter in an Excel cell, so presumably all values in your column B are smaller. The MATCH function will keep on searching until it reaches the last filled cell in column B, and return its row number. INDEX uses this to return the value of that cell.

      • #1112741

        Thanks Hans, that works quite well!
        (hopefully the max number you mentioned will not be exceeded. . .this is for my weight loss program) crossfingers

    • #1112742

      That depends on the unit… grin

    Viewing 1 reply thread
    Reply To: Reply #1112742 in Last value in column (2007)

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

    Your information:




    Cancel