+ Reply to Thread
Results 1 to 7 of 7

Dynamic named range based on two criteria

  1. #1
    Registered User
    Join Date
    08-10-2010
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    45

    Dynamic named range based on two criteria

    I'm trying to create a dynamic named range based on two criteria in different columns. My data set is A4:AQ5000 in a sheet called "CS". Column C is "Description", column V is called "Family" and column W is called "Product". I want to create a named range called "Smith" of the descriptions in column C where column V is "Smith" and column W is "Accessory".
    Please Login or Register  to view this content.
    Every row has data but I have purposely tried to show the family and product can be in any row from 4 to 5000.

    Thanks in advance.

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Dynamic named range based on two criteria

    Maybe attach a sample workbook with a mock-up of what you expect to see.

  3. #3
    Registered User
    Join Date
    08-10-2010
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Dynamic named range based on two criteria

    Attached is an example file. I have created a named range called "Smith" but linked the cells manually meeting the criteria ie Family - Smith and Product - Accessory.
    Ideally the named range will be dynamic. On the second worksheet called "Family" is a list of the family names that a named range will need to be created for.
    Attached Files Attached Files

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

    Re: Dynamic named range based on two criteria

    What do you want to DO with these named ranges? What are you trying to achieve as ab end result? I think you may be over-complicating things...

    There is no second worksheet.


    Also, please amend your profile to give a general indication of your national location - as regional settings often influence the required solution.
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

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

    Re: Dynamic named range based on two criteria

    I have made a WILD guess as to what you ACTUALLY want. take a look.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    08-10-2010
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Dynamic named range based on two criteria

    Thanks for your assistance. I've updated the example hopefully to explain more clearly what I'm wanting to do. In the example file there is two sets of data on the CS sheet. Top set is what I have and do now - manual process. 2nd set is the same set of data but as described below, this is what I'm looking to solve to.

    What I'm wanting to do is create a dynamic Name Range whereby Name is based on "Family" in col V, Product in col W = "Accessory", Value is "Description" in col C. The Name Range I then use in other formula's in my workbook.

    Current state:
    In the top set of data, it is sorted by "Family" (col V) and "Product" col W, so when I create a Name Range for "Description" col C for each "Family in in col V and Product col W = "Accessory", I select $C$2:$C$13. Name of range I have given is "Smith". This is very manual when I want to add more data because I have to re-sort the data and re-adjust the "Refers to" range, to increase it by the number of new rows added that have Family name "Smith" and are an "Accessory" in col W.

    Ideal end state:
    2nd set of data. Instead of the data being sorted, I'm looking for a to create a dynamic name range by putting a formula in the "Refer to" field of the Name Manager dialogue box which will mean the data doesn't have to be sorted. As more data is added, which is very regularly, the Name Range which automatically pick up the new data that meets the criteria. In the data set I've created a name range called Smith. This Value is column C (description), based on column V = "Smith" and column W = "Accessory". I ultimately will create a Name Range which refers to col C, for each Family (col V) where col W = "Accessory".
    On the second sheet in the example file called "Form", I have showed a simple example of what I will ultimately use the Name Range for.

    Apologies for the detail description to paint of picture of what I'm trying to do.

    Thanks.
    Attached Files Attached Files

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

    Re: Dynamic named range based on two criteria

    Yes. You are over complicating things. This sheet replicates what you had, from unsorted data. It's probably not what you want... yet. So in your next post focus on the FINAL outcome rather than your proposed way of getting there...
    Attached Files Attached Files

+ 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] Dynamic Named Range based on Pivot Table
    By Pho6 in forum Excel Charting & Pivots
    Replies: 11
    Last Post: 08-27-2014, 01:53 PM
  2. Dependent, Dynamic Named Range with Multiple Criteria
    By JustinCredibLee in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-11-2014, 12:46 PM
  3. [SOLVED] Dynamic Named Range to Auto-Populate another range based on criteria
    By BeachRock in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-24-2014, 06:46 PM
  4. [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
  5. Build a Dynamic Named Range from criteria.
    By sinspawn56 in forum Excel General
    Replies: 8
    Last Post: 01-15-2013, 04:40 AM
  6. [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
  7. Count of Dynamic Named Range with more criteria
    By Wermeael in forum Excel General
    Replies: 3
    Last Post: 08-29-2010, 02:42 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