+ Reply to Thread
Results 1 to 4 of 4

Last value in a range

  1. #1
    Registered User
    Join Date
    03-02-2005
    Location
    Greenville, SC, USA
    Posts
    41

    Last value in a range

    How can I get the last value in a range when it could end at any point and there could be blanks in the range anywhere?

    Example:

    A1 22.23
    A2 (is blank)
    A3 13.45
    A4 34.55
    A5 (is blank)


    I want the formula to return 34.55, but tomorrow there may be something in cell A5 and I would then want it to return the value in A5.


    Thanks!

  2. #2
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    Try this Array formula and let me know if it works for you:

    =INDEX(A:A,LARGE(IF(NOT(ISBLANK(A1:A100)),ROW(A1:A100)),1))

    NOTE: This is an array formula. Confirm it using CTRL+SHIFT+ENTER, not just enter.

  3. #3
    Registered User
    Join Date
    03-02-2005
    Location
    Greenville, SC, USA
    Posts
    41
    That seems to do it. Thanks! (thanks for the ctl-shift-enter part too, I would have been going crazy trying to figure out what I was doing wrong)

  4. #4
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    Glad I could help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1