+ Reply to Thread
Results 1 to 8 of 8

Dynamic named range for columns...moving one column over

  1. #1
    Forum Contributor
    Join Date
    12-12-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    448

    Dynamic named range for columns...moving one column over

    Hello. I have a named range. I would like to have this named range automatically update to the right whenever new data is copied into the adjacent column to the right. Let's say I have Data in column A that I named "range". When I add data in the same cells in column B, I would like the range to update to include the cells in A and B (and only the adjacent cells, not the entire column). Is there any way to do this? I've attached a sample spreadsheet. Danks.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Dynamic named range for columns...moving one column over

    Hello amartino44 !!
    See the attached file if this helps


    if answer is satisfactory Click" * " and mark thread as solved.

    name range is Dynamic
    Attached Files Attached Files

  3. #3
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Dynamic named range for columns...moving one column over

    Maybe use a formula like

    =OFFSET(Sheet1!$B$2,0,0,1,COUNTA(Sheet1!$2:12)-5), OFFSET(Sheet1!$B$6,0,0,1,COUNTA(Sheet1!$2:12)-5), OFFSET(Sheet1!$B$10,0,0,1,COUNTA(Sheet1!$2:12)-5)

    to define the range
    Martin

  4. #4
    Forum Contributor
    Join Date
    12-12-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    448

    Re: Dynamic named range for columns...moving one column over

    Hey Hemesh. That worked. Can you explain what you did? How would I adjust the formula to include more cells in the initial range.
    Last edited by amartino44; 09-12-2013 at 04:35 PM.

  5. #5
    Forum Contributor
    Join Date
    12-12-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    448

    Re: Dynamic named range for columns...moving one column over

    @mrice. That formula didn't work. It automatically selects all the way to column E even there is no data in there.

  6. #6
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Dynamic named range for columns...moving one column over

    Hello amartino ! I just given a name in name manager and defined a formula for that name. for example i used $B$2:INDEX($B$2:$G$2,0,COUNTA($B$2:$G$2))
    where B2 starting point will become a range with C2, D2 or E2 which ever is filled. Index function is providing the column number(E2,C2 etc...) with the help of counta which count how many cells are filled with data. finally it will become a range like B2:C2 etc..
    The value error in the sheet is for you to check how formula is working with formula evaluation.
    To include more cells in range you just need to change column G2 or G6 or G10 to till you want like z2, Z6, Z10.

    If this solves your query, click " * " and mark thread as solved

  7. #7
    Forum Contributor
    Join Date
    12-12-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    448

    Re: Dynamic named range for columns...moving one column over

    Ok. This is a good formula but the problem is that I have a range that has 100 cells (down the column), so the formula would enormous if I have to write a section for each cell

  8. #8
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Dynamic named range for columns...moving one column over

    can you please upload a sample workbook with enough data to work (sensitive data removed).
    I think that also can be done.

    Regards
    -----------------
    if answer satisfiy your requirement, click " * " and 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)

Similar Threads

  1. Dynamic named range for a column
    By amartino44 in forum Excel General
    Replies: 10
    Last Post: 08-28-2013, 04:49 PM
  2. dynamic named range across columns
    By amartino44 in forum Excel General
    Replies: 2
    Last Post: 08-19-2013, 03:02 PM
  3. [SOLVED] Need a Dynamic Named Range; Offset/Match using 2 Columns
    By Kalithro in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-18-2013, 06:54 AM
  4. Named Dynamic Range to count across columns not rows
    By talexander in forum Excel General
    Replies: 4
    Last Post: 01-04-2011, 11:07 AM
  5. Dynamic Named Range - Moving
    By jamesryan in forum Excel General
    Replies: 3
    Last Post: 05-01-2008, 08:53 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