+ Reply to Thread
Results 1 to 7 of 7

Formula to pick last value in a column

  1. #1
    Registered User
    Join Date
    03-23-2009
    Location
    Royal Oak, Michigan
    MS-Off Ver
    Excel 2007
    Posts
    4

    Formula to pick last value in a column

    Is there a formula or function that allows me to always select the lowest (not min) actual lowest in a column? For example, I have a formula in A1 and I need it part of it to always reference the bottom of a certain range (i.e. A5.A200). So one day the lowest would be A7 but a week later it could be A8. I don't want to have to keep changing the formula in A1 to find the lowest value. I will be adding data on a regular basis. This reads fairly confusing but hopefully someone knows how to help me out! Thanks.
    Last edited by jayschr; 03-23-2009 at 02:09 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formula to pick last value in a column

    Try:

    =A5:Index(A:A,Match(9.99999999999e+307,A:A))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    03-23-2009
    Location
    Royal Oak, Michigan
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Formula to pick last value in a column

    That formula creates a circular reference. I am a fairly new user to excel so I haven't used the index and match command before. I copied that formula into A1 and entered a value in A5, A1 reflected that value. Leaving that value in A5, I added a new value in A7 and my A1 displayed #VALUE!. Am I doing something wrong?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formula to pick last value in a column

    Well, I am not sure what you really want to do...

    That formula is meant to be embedded in another formula that refers to the "dynamic range". It doesn't really work on it's own like that.

    Do you have a formula where you wanted to replace the range A5:A200 with a dynamic range? Or are you just looking to get the number in the last row? or something else?

  5. #5
    Registered User
    Join Date
    03-23-2009
    Location
    Royal Oak, Michigan
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Formula to pick last value in a column

    Ahh I see where I made it more confusing then it needed to be. I just want to pick the last row of valid data entered into a range.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formula to pick last value in a column

    So if you want the actual address of the row:

    =ADDRESS(MATCH(9.99999999E+307,A5:A200)+ROW(A5)-1,1)

    if you want the value in that row,

    =LOOKUP(9.99999999E+307,A5:A200)

  7. #7
    Registered User
    Join Date
    03-23-2009
    Location
    Royal Oak, Michigan
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Formula to pick last value in a column

    I actually need both, thanks! Perfect.

+ 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