+ Reply to Thread
Results 1 to 8 of 8

Dynamic Named Ranges

Hybrid View

  1. #1
    Registered User
    Join Date
    12-17-2017
    Location
    Auckland
    MS-Off Ver
    windows 7
    Posts
    3

    Dynamic Named Ranges

    I am using a named range for a data validation in a configurator.
    i have a range defined as:
    =OFFSET(Limitations!$AN$9,0,0,COUNT(Limitations!$AN$9:$AN$99),1) this defines the end point of the range dynamically.

    This works very well, however, now i want to make the starting cell dynamic. that means using a formula that returns a reference rather than the direct reference Limitations$an$9
    one example of those i have tried is
    "'Lists'!"&ADDRESS(P5,P6) where p5 and p6 are the col and row numbers of the first cell in the range i want to use (the first cell changes with user input)
    i have tried every combination of ' and " to set the text as i think excel wants it but the only one that works and only on a one off basis (ie highlight and hit F9) is
    this evaluates to
    "'Lists'!$J$11"
    but the formula still does not work.
    although editing it to lists!$j$11 does work.

    any assistance would be apreciated....

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Dynamic Named Ranges

    Are you changing the starting row in a single column, or changing both column and row?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    12-17-2017
    Location
    Auckland
    MS-Off Ver
    windows 7
    Posts
    3

    Re: Dynamic Named Ranges

    Just the starting row

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,936

    Re: Dynamic Named Ranges

    Specify what makes any particular cell the starting cell:...
    I.e., what do you see that lets you know.
    Ben Van Johnson

  5. #5
    Registered User
    Join Date
    12-17-2017
    Location
    Auckland
    MS-Off Ver
    windows 7
    Posts
    3

    Re: Dynamic Named Ranges

    ok a bit more explanation of the problem:
    Its a dynamically specified range based on user input;
    Definitions:
    The range A1 to A10 is a set of numbers that are generally valid.
    The user inputs a number which defines the start cell of that range and the end cell.
    This specifies the specific validation number set (the sequence A1 to A10 is in order) and so we are specifying the start and the end points.
    That range is then defined as a list and used for data validation in a subsequent data input process.

    there might be better ways of doing this using index or similar.

    Any suggestions would be appreciated.

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Dynamic Named Ranges

    Not sure I completely understand. This is a guess.

    =OFFSET(INDEX(Limitations!$AN$9:$AN$99,MATCH(A1,Limitations!$AN$9:$AN$99,0)),0,0,COUNT(Limitations!$AN$9:$AN$99),1)

    and fill down for each value A1:A10.

    The INDEX\MATCH part will set the first argument of OFFSET dynamically.

    Does that do what you want?
    Dave

  7. #7
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Dynamic Named Ranges

    Hi all! @Qullion, perhaps you could upload a sample workbook to clarify where everything is and how it's used. In particular, you need to show where and how the user inputs a single value that defines both start and end points for the range. Be sure to include examples of both the underlying validation entries and a validated cell so we can see exactly how the range is used.

    To attach a workbook:
    Click Edit Post (or just start a new reply.)
    Click Go Advanced
    Scroll down to Manage Attachments and click.
    Now click Browse, find your file, then click Upload to finish.
    Last edited by leelnich; 01-01-2018 at 04:08 AM.
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

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

    Re: Dynamic Named Ranges

    Try this

    Your inputs are StartNumber and EndNumber

    =OFFSET(INDIRECT("Limitations!$AN$"&StartNumber,0,0,EndNumber-StartNumber+1,1) this defines the end point of the range dynamically.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

+ 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 Ranges?
    By Dinosaurmapman in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-12-2015, 01:10 AM
  2. [SOLVED] Dynamic Named Ranges
    By BadlySpelledBuoy in forum Excel General
    Replies: 2
    Last Post: 06-14-2013, 05:31 AM
  3. Dynamic named ranges
    By Hilton1982 in forum Excel General
    Replies: 1
    Last Post: 01-08-2013, 08:37 AM
  4. Named ranges-Should I use a dynamic named range
    By foseco in forum Excel General
    Replies: 4
    Last Post: 06-11-2009, 03:56 PM
  5. [SOLVED] using Dynamic Named Ranges
    By SJT in forum Excel General
    Replies: 4
    Last Post: 06-09-2006, 06:15 PM
  6. [SOLVED] Dynamic named ranges
    By SFoley in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-10-2006, 11:30 PM
  7. [SOLVED] dynamic named ranges
    By peter in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-09-2005, 09:06 PM

Tags for this Thread

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