+ Reply to Thread
Results 1 to 6 of 6

Floating Dynamic named range

Hybrid View

sotiris5000 Floating Dynamic named range 05-26-2010, 02:52 PM
DP978 Re: Help with dynamic named... 05-26-2010, 03:02 PM
sotiris5000 Re: Dynamic named range 05-26-2010, 03:08 PM
NBVC Re: Help with dynamic named... 05-26-2010, 03:08 PM
sotiris5000 Re: Floating Dynamic named... 05-27-2010, 04:13 AM
NBVC Re: Dynamic named range 05-26-2010, 03:05 PM
  1. #1
    Registered User
    Join Date
    05-26-2010
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    9

    Question Floating Dynamic named range

    Hello,

    This is my first post.

    I need some help with a named range and how to make it dynamic.
    I have a series of data in column B and I need the range to capture it all. The problem is, the data series starts on a different row each time. So, sometimes the data will be in rows 25 to 100, another time it will be rows 34 to 75.
    I know I can use offset to count down to the last used row, but for the life of me I can't figure out how to make the range figure out where the range starts (i.e. The first used row).

    Does anyone have any ideas? It seems like there's a wealth of stuff on line about finding the last used cell in a column, but not the first used cell.

    Any help would be greatly appreciated.

    Thanks.

  2. #2
    Forum Contributor
    Join Date
    02-25-2010
    Location
    Boston
    MS-Off Ver
    Excel 2007
    Posts
    174

    Re: Help with dynamic named range

    Use

    =MATCH("",A:A,-1)

    to find the first cell with a non null entry

  3. #3
    Registered User
    Join Date
    05-26-2010
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Dynamic named range

    Wow, thanks mate. That was really quick.
    I should be able to combine that in the named range reference with an offset to find the end of the data series too, right?

    Thanks again for your help.

    Edit - sorry, nbvc, didn't see your post. Will try it out when I get to work tomorrow morning.

    Many thanks.
    Last edited by sotiris5000; 05-26-2010 at 03:11 PM.

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

    Re: Help with dynamic named range

    Quote Originally Posted by DP978 View Post
    Use

    =MATCH("",A:A,-1)

    to find the first cell with a non null entry
    that finds me the last row where text exists...
    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.

  5. #5
    Registered User
    Join Date
    05-26-2010
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Floating Dynamic named range

    Hello,

    Just used NBVC's method and it works an absolute treat.
    Thank you very much, you have saved me so much stress.

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

    Re: Dynamic named range

    Something like:

    =OFFSET(INDEX($L:$L,MATCH(REPT("Z",255),$L:$L)-COUNTA($L:$L)+1),0,0,COUNTA($L:$L),1)

    if your named range is within Column L and the items are text

    or

    =OFFSET(INDEX($L:$L,MATCH(9.999999E+307,$L:$L)-COUNTA($L:$L)+1),0,0,COUNTA($L:$L),1)

    if items are numeric
    Last edited by NBVC; 05-26-2010 at 03:11 PM. Reason: Made L:L absolute

+ 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