+ Reply to Thread
Results 1 to 5 of 5

Named Ranges Based on Adjacent Column

  1. #1
    Registered User
    Join Date
    01-27-2011
    Location
    Seattle, WA
    MS-Off Ver
    Excel 365
    Posts
    8

    Named Ranges Based on Adjacent Column

    Hello - I've seen similar questions posted here and on other sites but I can't seem to get the answers to work for me. I have a worksheet with a list of values in column R, starting with R2. I need to create named ranges for groups of cells that share the same value on the next column over (column S). For example, cells R2-R12 contain individual values but cells S2-S12 all contain the same value, which is what I want to name the range.

    Is there a way to do this using VBA? There is a lot of data here and will take days to manually create these named ranges.

    Any help would be appreciated! Using Excel 2013

    Example this list would be a named ranged called "DEPT103":

    10, FLATS DEPT103
    20, RUNNING DEPT103
    30, WALKING DEPT103
    40, TRAINING DEPT103
    45, FLIP FLOPS DEPT103
    50, SANDALS DEPT103
    60, SNEAKERS DEPT103
    70, MISC SPORTS DEPT103
    80, BOOTS DEPT103
    85, CLEATED DEPT103
    90, OUTDOOR DEPT103
    Last edited by abba92; 12-28-2015 at 04:07 PM. Reason: clarity.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Named Ranges Based on Adjacent Column

    Any chance you could upload a sample workbook?

    Click on GO ADVANCED and use the paperclip icon to open the upload window.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    01-27-2011
    Location
    Seattle, WA
    MS-Off Ver
    Excel 365
    Posts
    8

    Re: Named Ranges Based on Adjacent Column

    Sure thing. I apologize for not doing that earlier.
    Attached Files Attached Files

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Named Ranges Based on Adjacent Column

    Perhaps.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-27-2011
    Location
    Seattle, WA
    MS-Off Ver
    Excel 365
    Posts
    8

    Re: Named Ranges Based on Adjacent Column

    Norie, thank you so much! Worked like a charm. Now to step through it and figure out how it works. I so appreciate your help.

+ 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. Named references, referencing an adjacent column
    By T86157 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-08-2015, 11:01 PM
  2. Named Ranges to Column
    By RussB in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-04-2014, 05:18 AM
  3. [SOLVED] Loop through named range backwards and populate based on criteria from adjacent cells
    By CDEG in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-17-2013, 05:56 AM
  4. [SOLVED] Return a value in a range based on two conditions in adjacent ranges
    By riceguy in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-13-2013, 09:15 PM
  5. Replies: 2
    Last Post: 10-25-2012, 04:06 PM
  6. [SOLVED] Apply Column Text as Named Range to Each Adjacent Cell
    By AlvaroSiza in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-05-2012, 04:34 PM
  7. Replies: 0
    Last Post: 06-28-2010, 10:23 AM

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