+ Reply to Thread
Results 1 to 10 of 10

Search function with multiple dynamic named ranges

  1. #1
    Forum Contributor
    Join Date
    05-17-2012
    Location
    CA, USA
    MS-Off Ver
    Microsoft Excel for Microsoft 365
    Posts
    163

    Search function with multiple dynamic named ranges

    How can I write up a formula that utilizes search referencing two named dynamic ranges.


    Here are the base formulas I found from another site:
    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.
    The dynamic named range formula I use are:
    Please Login or Register  to view this content.
    as named range "range_list1"
    and
    Please Login or Register  to view this content.
    as named range "range_list2"


    I thought I could replace the range in the base formulas with just one named range for test purposes but I get a zero.
    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Search function with multiple dynamic named ranges

    You get better help on your question if you add a small excel file, without confidential information.

    Please also add manualy the expected result in your file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Contributor
    Join Date
    05-17-2012
    Location
    CA, USA
    MS-Off Ver
    Microsoft Excel for Microsoft 365
    Posts
    163

    Re: Search function with multiple dynamic named ranges

    Hi oeldere,

    I attached a sheet with examples. Hope this helps.
    SearchWithDynamiceRange.xlsx

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Search function with multiple dynamic named ranges

    why is the result in all question 1 (and not e.g. 2 or 3 ?)

  5. #5
    Forum Contributor
    Join Date
    05-17-2012
    Location
    CA, USA
    MS-Off Ver
    Microsoft Excel for Microsoft 365
    Posts
    163

    Re: Search function with multiple dynamic named ranges

    That's what I want to do, but was working on the basics first. I want to first find the text within a string from multiple criteria in a range. Once that formula can find that the statement is true, I would like to index/match the search result with a letter-number code.
    Last edited by T86157; 09-14-2015 at 10:21 AM.

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Search function with multiple dynamic named ranges

    Then explain why the result is 1, so we can see the logic behind your file, (since that is what is missing for me).

  7. #7
    Forum Contributor
    Join Date
    05-17-2012
    Location
    CA, USA
    MS-Off Ver
    Microsoft Excel for Microsoft 365
    Posts
    163

    Re: Search function with multiple dynamic named ranges

    The result is 1 because it determines if the criteria is found in the range. If it counts any of this greater than 0, the criteria exists in the range. If it is 0, it leaves the cell blank. I am first trying to figure out how to use criteria 1 or criteria 2 for one range. If criteria 1 or criteria 2 exists in range 1, then the result is 1. Later I would like for this to index match the criteria to a letter-number code in a column adjacent to the criteria columns. But before I can come to this approach, I am trying to figure out how to use criteria 1 or criteria two for one range.

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Search function with multiple dynamic named ranges

    I don't understand the explaination, I leave this one to other forummembers.

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Search function with multiple dynamic named ranges

    I am also totally confused by what you are trying to do?

    It looks like you are searching for *something* that actually does not exist in the search range, unless you manipulate it somehow?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  10. #10
    Forum Contributor
    Join Date
    05-17-2012
    Location
    CA, USA
    MS-Off Ver
    Microsoft Excel for Microsoft 365
    Posts
    163

    Re: Search function with multiple dynamic named ranges

    Instead of searching
    Please Login or Register  to view this content.
    where the range is $A$1:$A$3, I would like to replace this with two named dynamic ranges within the same formula.

    I'm trying to find criteria that composes of two dynamic named ranges, that if any of those criteria are found within a string of text in a cell, it returns a 1. Otherwise a blank. Not sure if it's the lack of sleep that I'm not making sense Hope this helps.

+ 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. Index Function array across multiple sheets using named ranges
    By jerrongreen in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-23-2013, 07:30 PM
  2. [SOLVED] How Can I Build A Dynamic List From Multiple Named Ranges
    By GEANZ in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-02-2013, 01:56 AM
  3. Function to sort multiple named ranges using variables
    By Mad_Doktor in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-28-2013, 02:53 PM
  4. [SOLVED] Cascading Comboboxes With Multiple Dynamic Named Ranges?
    By spamad in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-20-2013, 10:52 AM
  5. [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
  6. [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
  7. 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
  8. Dynamic Named Ranges
    By [email protected] in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 03-09-2006, 11:15 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