+ Reply to Thread
Results 1 to 12 of 12

Get LastRow based on a series of columns ranges?

  1. #1
    Forum Contributor
    Join Date
    09-07-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    358

    Get LastRow based on a series of columns ranges?

    Hi Guys,

    I know how to get the last row for columns, usedrange... etc but I don't know how to get the lastrow based on multiple column range

    For example, find the last row between columns A:M but IGNORE N:O however we still want to check/get the last row for P:Z

    Anyone know how to do this?

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Get LastRow based on a series of columns ranges?

    Here's a couple that works on my spreadsheet:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Get LastRow based on a series of columns ranges?

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    09-07-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    358

    Re: Get LastRow based on a series of columns ranges?

    Quote Originally Posted by mehmetcik View Post
    Please Login or Register  to view this content.
    Doesn't work, see attachment
    Attached Files Attached Files

  5. #5
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Get LastRow based on a series of columns ranges?

    Did you try my solution?

  6. #6
    Forum Contributor
    Join Date
    09-07-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    358

    Re: Get LastRow based on a series of columns ranges?

    Quote Originally Posted by xladept View Post
    Did you try my solution?
    Hmm, for some reason it didn't add your quote and my reply O_o

    I posted "How do I get your solution to use multiple ranges, A:M;P:Z for example"

  7. #7
    Forum Contributor
    Join Date
    09-07-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    358

    Re: Get LastRow based on a series of columns ranges?

    Please Login or Register  to view this content.
    Doesn't work :/

  8. #8
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Get LastRow based on a series of columns ranges?

    Try:
    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    09-07-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    358

    Re: Get LastRow based on a series of columns ranges?

    I made the following which works, albeit kinda slow in comparison of what it could be.

    Please Login or Register  to view this content.

  10. #10
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Get LastRow based on a series of columns ranges?

    Hi Hyflex,
    maybe so
    Please Login or Register  to view this content.

  11. #11
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Get LastRow based on a series of columns ranges?

    Here is the code,
    Please Login or Register  to view this content.
    Last edited by kvsrinivasamurthy; 08-21-2014 at 06:37 AM.

  12. #12
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Get LastRow based on a series of columns ranges?

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] VBA Format Multiple Ranges & LastRow
    By hobbiton73 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-25-2013, 07:45 AM
  2. Email 2 array ranges with LastRow argument
    By scooby99 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-12-2011, 09:25 AM
  3. Replies: 10
    Last Post: 10-18-2010, 06:42 AM
  4. LastRow and Multiple Ranges
    By dagindi in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-21-2010, 09:21 AM
  5. lastrow of 3 columns
    By Directlinq in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-19-2009, 10:35 AM

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