+ Reply to Thread
Results 1 to 4 of 4

Find last row in range using INDEX

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    05-24-2006
    Location
    Los Angeles
    MS-Off Ver
    2019
    Posts
    328

    Find last row in range using INDEX

    Hi,

    How do I modify the following array formula to read a range that starts in cell C18 and extends down rows and across columns that are numbers referenced in two cells?

    Here's the formula now (which returns the last row containing any type of data in a specified range):

    ={(MAX((C$18:L28<>"")*ROW(C$18:L28)))-ROW(C$18:L28)+1}

    What I need is to have L28 replaced by INDEX (I think) that references cell A1 containing the last row number and cell A2 containing the last column number in the range to be searched.

    Thanks,

    Lawrence
    Last edited by skysurfer; 09-03-2010 at 02:09 PM.

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

    Re: Find last row in range using INDEX

    Not clear which version you're running but in essence references to L28 become:

    INDEX($1:$65536,$A$1,$A$2)

  3. #3
    Forum Contributor
    Join Date
    05-24-2006
    Location
    Los Angeles
    MS-Off Ver
    2019
    Posts
    328

    Re: Find last row in range using INDEX

    DonkeyOte,

    I'm using XL2003 and 2010. Is there issue between these version using this formula, or does that only apply to version prior 2003?

    Thanks for the help! Works beautifully.

    Lawrence



    Quote Originally Posted by DonkeyOte View Post
    Not clear which version you're running but in essence references to L28 become:

    INDEX($1:$65536,$A$1,$A$2)

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

    Re: Find last row in range using INDEX

    The number of ROWS varies between the versions (XL2007 onwards has in excess of 1m rows) though if you're unlikely to use greater than 65536 rows it shouldn't be an issue.

+ 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