+ Reply to Thread
Results 1 to 3 of 3

Create Multiple Named Ranges From List

  1. #1
    Registered User
    Join Date
    09-10-2019
    Location
    West Coast
    MS-Off Ver
    Excel 2016
    Posts
    4

    Create Multiple Named Ranges From List

    Hi. I have a list of cell reference ranges and corresponding desired names. I have 100+ of these, but the attached example file only has 10 to simplify. Is there an efficient way to create named ranges based on these two columns, or do I have to create them one by one? Example file attached, and the list I am referencing is pasted below:

    Name ACTUAL RANGE (Sheet & cell range)
    NAME1 Sheet1!F3:H25
    NAME2 Sheet1!A4:A75
    NAME3 Sheet1!L29:L100
    NAME4 Sheet2!Z5:AB100
    NAME5 Sheet2!H15:H27
    NAME6 Sheet2!BB15:BB45
    NAME7 Sheet3!A10:B56
    NAME8 Sheet3!F81:F100
    NAME9 Sheet3!H8:H67
    NAME10 Sheet4!A55:B70


    Thanks for your help!

    MV
    Attached Files Attached Files
    Last edited by MV76; 12-16-2020 at 08:27 PM.

  2. #2
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: Create Multiple Named Ranges From List

    Presumably you want the named ranges to be absolute, so that once defined, e.g., NAME1 would refer to =Sheet1!$F$3:$H$25. Assuming so, make the top-left cell in the table of name-reference pairs the active cell (Sheet1!A2) and run

    Please Login or Register  to view this content.
    No error checking. If you run this with the cell to the right of the active cell not a valid range address, this will throw runtime errors.

    The rng bit is unnecessary except to ensure that each defined name refers to a range.

  3. #3
    Registered User
    Join Date
    09-10-2019
    Location
    West Coast
    MS-Off Ver
    Excel 2016
    Posts
    4

    Re: Create Multiple Named Ranges From List

    Excellent, this did the trick. Thanks so much for your help, you saved me hours of effort and frustration!

+ 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. create list of named ranges with extra column to contain worksheet name
    By Bonnister in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-22-2018, 06:21 PM
  2. [SOLVED] Create multiple named ranges from a 2 column list
    By davsth in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-30-2017, 07:29 AM
  3. Replies: 3
    Last Post: 01-14-2015, 05:22 AM
  4. Use list to create named ranges
    By gerenrich in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-31-2014, 04:29 AM
  5. Replies: 2
    Last Post: 01-27-2014, 08:04 AM
  6. [SOLVED] Create Multiple Dynamic Named Ranges with a Macro
    By bennank in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-09-2012, 12:55 PM
  7. [SOLVED] How to create multiple Dynamic Named Ranges at once? and Limit in excel 2010
    By vishnu01445 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-31-2012, 09:28 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