+ Reply to Thread
Results 1 to 3 of 3

named cell range

  1. #1
    Forum Contributor
    Join Date
    09-09-2014
    Location
    England
    MS-Off Ver
    2013
    Posts
    102

    named cell range

    Is it possible to name a cell range but only include cells that contain specific text i.e.

    My named range would be Dave and the cells in this range would be all the Daves in the list below

    Dave Jones
    Bill Burke
    David Smith

    Is that possible? Many thanks

    Zak

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: named cell range

    There are a few steps you could go through to do this manually as a one-time process, but it would be static--it wouldn't stay up to date when your data changes.

    1. Do a Find All on the string you want to match (in your case you only have one Dave; you wouldn't match David)
    2. Select all from the list of found cells
    3. Go to Formulas, Name Manager and create New
    4. The formula bar will contain the list of cells that are selected
    5. Give it a name and save


    It would be possible to implement a dynamic version using VBA.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor
    Join Date
    09-09-2014
    Location
    England
    MS-Off Ver
    2013
    Posts
    102

    Re: named cell range

    The list will eventually contain hundreds of Dave's and will continue to grow, is it possible to get some help with the VBA code?

    Thanks

    Zak

+ 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] determining if cell is part of named range and what that named range is
    By stnkynts in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-16-2014, 07:56 PM
  2. [SOLVED] Determining if the value of a cell can be a named range, then assigning named ranges after
    By Romulo in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-15-2013, 06:05 PM
  3. [SOLVED] Determine what Named Range the Target Address is and return Named Range Name
    By jordan2322 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-18-2012, 10:49 PM
  4. Replies: 1
    Last Post: 06-03-2006, 10:55 PM
  5. If any cell in named range = 8 then shade named range
    By JJ in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-26-2005, 07:05 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