+ Reply to Thread
Results 1 to 8 of 8

Determine Row Number of Last Value in column

  1. #1
    Registered User
    Join Date
    05-15-2009
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2007
    Posts
    8

    Thumbs up Determine Row Number of Last Value in column

    Hi guys,

    Trying to do a simple workbook here, with hopefully no macros/VB script.

    Essentially, I want a cell to display the row number (-1 to take into account the heading) which has the last value contained in it.

    The workbook is a list of users that have signed up in 1 month, and is distributed to staff for a particular reason.

    The cell I'm trying to create is part of a 'stats' section.

    If it can be done with a simple formula, then that's great!

    Any help is appreciated, and I'm a bit of a geek, so you can talk techie with me :-)

    Lake54
    Last edited by lake54; 05-15-2009 at 03:01 PM. Reason: Thread Solved

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

    Re: Determine Row Number of Last Value in column

    Try either

    =Match(9.99999999e+307,A:A)-1 if column of numbers

    =Match(rept("z",255),A:A)-1 if column of text strings.
    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
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Determine Row Number of Last Value in column

    I'm not sure you need the -1 adjustment using the MATCH approach.

  4. #4
    Registered User
    Join Date
    05-15-2009
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Determine Row Number of Last Value in column

    Thanks for your replies - I'll just try them now (by the way, they contain both numbers and text, some are just numbers though).

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

    Re: Determine Row Number of Last Value in column

    You are right... I don't think so either... I think I misread the part the OP had in brackets above...

    so should be:

    =Match(9.99999999e+307,A:A) if column of numbers

    =Match(rept("z",255),A:A) if column of text strings.

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Determine Row Number of Last Value in column

    lake54, be sure to check out Bob Phillips' article: http://www.xldynamic.com/source/xld.LastValue.html

  7. #7
    Registered User
    Join Date
    05-15-2009
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Determine Row Number of Last Value in column

    Wow - thanks!

    Just for future reference, the -1 was needed.

    Quick response as well. I'll definitely be coming back here in the future!

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

    Re: Determine Row Number of Last Value in column

    Quote Originally Posted by lake54 View Post
    Wow - thanks!

    Just for future reference, the -1 was needed.

    Quick response as well. I'll definitely be coming back here in the future!
    well, there you go... I don't know if I misread or was luck... I guess it depended on what exactly you wanted in the end....

    Please mark thread as Solved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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