+ Reply to Thread
Results 1 to 11 of 11

Dynamic named range for a column

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

    Dynamic named range for a column

    Hello. I would like to have a named range that automatically updates to the newest data for the column to the right. I've attached a spreadsheet with more details. Thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Dynamic named range for a column

    try this..

    - Identify a cell that will determine the column no. you want as the dynamic named range. Lets say this is cell AA1
    - Use the following in 'refers to' field of the defined name ('first')
    =INDEX(Sheet1!A:Z,,Sheet1!AA1)

    The name will update based on column number inputted in Cell AA1

    Does this work for you?
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010, XL2013, XL2016
    Posts
    608

    Re: Dynamic named range for a column

    Hi

    Take a look at the attached workbook and see if it does what you want.
    I have set up 3 names ranges as follows

    Please Login or Register  to view this content.
    Now, if you type First in the Name box and press Enter, you will see the range A1:A20 selected as per your original
    If you type Second and press return you will see rang A1:A22 selected, to reflect the value of 5 that I entered in B22
    If you type Third, you will see A21:A22 selected, which is the difference between the First and Second ranges, and reflects the "new range" as you requested.
    Attached Files Attached Files
    --
    Regards
    Roger Govier
    Microsoft Excel MVP

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

    Re: Dynamic named range for a column

    To Ace_XL...that doesn't seem to work. I have specific cells in the column and I only want to select those specific cells in the next column. And, in order to select the named range I usually use 'control G' and click on the named range, but when I insert your formula, the named range is no longer in the go to list. Maybe I'm doing it wrong.

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

    Re: Dynamic named range for a column

    Hi Roger. I couldn't open your file. Also, I wanted the new range to be in B (with the same rows of data).

  6. #6
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010, XL2013, XL2016
    Posts
    608

    Re: Dynamic named range for a column

    Hi

    Then change the formulae to

    First =Sheet1!$B$1:INDEX(Sheet1!$B:$B,MATCH(LOOKUP(99^99,Sheet1!$A:$A),Sheet1!$A:$A))
    Second =Sheet1!$B$1:INDEX(Sheet1!$B:$B,MATCH(LOOKUP(99^99,Sheet1!$B:$B),Sheet1!$B:$B))
    Third =INDEX(Sheet1!$B:$B,MATCH(LOOKUP(99^99,Sheet1!$A:$A),Sheet1!$A:$A)+1):INDEX(Sheet1!$B:$B,MATCH(LOOKUP(99^99,Sheet1!$B:$B),Sheet1!$B:$B))


    I have re-attached the file. Hopefully you can read it now.
    Attached Files Attached Files

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

    Re: Dynamic named range for a column

    This doesn't make sense and is very complicated. Thanks though.

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

    Re: Dynamic named range for a column

    Helllooooooooo. UNSOLVED!!!!!

  9. #9
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010, XL2013, XL2016
    Posts
    608

    Re: Dynamic named range for a column

    Gee Thanks!!!
    Have you tried it?
    It works. You don't have any other solutions. Bye.

  10. #10
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Dynamic named range for a column

    When you put numbers into column B, will there be any blank rows? Could you supply an example of how you put stuff in Col B?

    Also - when you say "NEW" numbers, does that imply only the rows that you've recently added numbers to?
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

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

    Re: Dynamic named range for a column

    Sure, there will be blank rows. Just like in column A. New numbers means that the same cells in Column A now have data in column B. I feel like this is pretty easy but I guess I'm not explaining it well. I've attached another spreadsheet. There is data in column A, that was named range "first". Now that I have added data into column B, I would like the named range to update to column B. It's fine if it includes column A as well, but I would prefer it to just include B. And then when I add data into column C, I want it to do the same thing. Keep in mind that there is unrelated data to the right. Thanks
    Attached Files Attached Files

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

    Re: Dynamic named range for a column

    @ Roger Govier. Gee you are welcome Yes, I tried it. That's great that it works, but you didn't understand what I want. You are making the range dynamic DOWN the column. I want it to be dynamic ACROSS columns. The 5 that you put in there is not what is going to happen in my spreadsheet. I am going to have the data in column A. Those specific cells are my named range. Then, I will fill in the same cells in column B. Just those cells. No other cells. I want the range to adjust one column to the right and I want it to include the same cells and just those cells in the next column. Additionally, there is data to the right (about 30 columns over) that is not relevant to this exercise. This is what I explained before.

+ 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] CountIF for dynamic length column using criteria of Named Range
    By saber0091 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-04-2013, 02:04 PM
  2. [SOLVED] Dynamic Named Range Help - Range Based on Values in Column
    By Filibuster in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-03-2012, 11:13 AM
  3. Replies: 1
    Last Post: 12-16-2011, 08:08 PM
  4. Multi-Column Dynamic Named Range...Is there an easier way?
    By Ken Johnson in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-22-2006, 09:00 PM
  5. [SOLVED] Creating a Dynamic Named Range Using Sheet Name and Column Header
    By burl_rfc_h in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-13-2006, 06:55 PM

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