+ Reply to Thread
Results 1 to 9 of 9

I need add a wildcard to find more than one instance from my table

  1. #1
    Forum Contributor
    Join Date
    02-11-2009
    Location
    Salt Lake City, Utah
    MS-Off Ver
    Excel 365
    Posts
    100

    I need add a wildcard to find more than one instance from my table

    I need to get my formula to recognize a variant of my target cell (through a wildcard most likely), but I haven't figured out what to add in to get that value.

    The formula:
    Please Login or Register  to view this content.
    Done with Ctrl Shift Enter.
    (The reason for the indexing of the indexing to to find coordinates of the table. The table sometimes shifts columns a little.)

    So for example, E5 has the value "Sample1"
    The table that has values for "Sample1 a" through "Sample1 e".
    I want each value. See the spreadsheet for more details.
    https://drive.google.com/open?id=0B7...zNUNDMxQ2FBeFE

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,948

    Re: I need add a wildcard to find more than one instance from my table

    Try

    in A5

    =IFERROR(INDEX($G$21:$L$34,SMALL(IF(LEFT($I$21:$I$34,7)=$E$5,ROW($A$21:$A$34)-ROW($A$21)+1,""),ROWS($A$21:$A21)),MATCH("Mass*",$G$20:$L$20,0)),"")

    Enter Ctrl+Shift+Enter

    copy down

    Added file ....
    Attached Files Attached Files
    Last edited by JohnTopley; 11-09-2016 at 04:21 PM.

  3. #3
    Forum Contributor
    Join Date
    02-11-2009
    Location
    Salt Lake City, Utah
    MS-Off Ver
    Excel 365
    Posts
    100

    Re: I need add a wildcard to find more than one instance from my table

    Unfortunately, that formula is too limiting on characters. It doesn't allow for 8 and 9 (or even 12) character samples.

    Sadly, this is not the complete table. I was simplifying, to make things easy to understand.

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2505
    Posts
    13,752

    Re: I need add a wildcard to find more than one instance from my table

    I need to get my formula to recognize a variant of my target cell (through a wildcard most likely), but I haven't figured out what to add in to get that value.
    Try this variation of JohnTopley's approach.

    To address the variant I made a drop down in A4 that lists the literal headers in the source table.

    Then array enter this in A5 and fill down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,948

    Re: I need add a wildcard to find more than one instance from my table

    It was the principle I was establishing not the complete function: getting over a variable length search parameter is easy.

  6. #6
    Forum Contributor
    Join Date
    02-11-2009
    Location
    Salt Lake City, Utah
    MS-Off Ver
    Excel 365
    Posts
    100

    Re: I need add a wildcard to find more than one instance from my table

    Very close, but not able to adjust to shifting columns (which sometimes happens, see the 1st example).

    I was able to adjust your formula to make it work.
    Please Login or Register  to view this content.
    But that's massive, so set up helper cells to trim this monster down:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by timmtamm; 11-09-2016 at 06:17 PM.

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2505
    Posts
    13,752

    Re: I need add a wildcard to find more than one instance from my table

    It sounds like you may be attempting the attachment icon. It hasn't worked for some time. Try this.


    To attach a file to your post,


    1. click “Go Advanced” (next to Post Quick Reply – bottom right),
    2. scroll down until you see “Manage Attachments”, click that,
    3. click “Browse”.
    4. select your file(s)
    5. click “Upload”
    6. click “Close window”
    7. click “Submit Reply”

    The file name will appear at the bottom of your reply.

  8. #8
    Forum Contributor
    Join Date
    02-11-2009
    Location
    Salt Lake City, Utah
    MS-Off Ver
    Excel 365
    Posts
    100

    Re: I need add a wildcard to find more than one instance from my table

    Thanks for the help with the formula. I don't know quite how this works (my experience is a bit more amateur). What is the "--arrays"? I mean what does the "--" do that you put before the arrays?

    and also thanks for the help with the attachments.

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2505
    Posts
    13,752

    Re: I need add a wildcard to find more than one instance from my table

    Some of the "numbers" in the data are actually text. Any math operator coerces those to their numeric values. "--" called a double-unary also does this.

    "--" also coerces TRUE / FALSE into their underlying numeric values 1/0.

    If this is not a concern in the first argument of INDEX you can use

    =IFERROR(INDEX(INDEX($G$21:$L$34,,MATCH($A$4,$G$20:$L$20,0)),SMALL(IF(--ISNUMBER(FIND($E$5,$I$21:$I$34)),ROW($J$21:$J$34)-MIN(ROW($J$21:$J$34))+1),ROWS($5:5))),"")

    The ISNUMBER part returns TRUE / FALSE from the FIND function. The "--" isn't necessary there either. It's become a habit.
    Last edited by FlameRetired; 11-09-2016 at 06:26 PM.

+ 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. Find and add every instance of a value
    By tapsmiled in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-11-2015, 10:08 AM
  2. Find Wildcard, return that Wildcard value?
    By help_me_im_lost in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-08-2014, 01:20 PM
  3. [SOLVED] Find: Using wildcard, but don't replace with wildcard
    By JimDandy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-06-2013, 05:39 PM
  4. [SOLVED] To Find every instance of TEXT copy, repeat until no Find found
    By DadaaP in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-25-2013, 02:15 PM
  5. [SOLVED] Lookup Table to Find/Replace Every Instance of a String (2/2)
    By Baghel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-04-2013, 05:49 AM
  6. Replies: 12
    Last Post: 12-31-2012, 04:13 AM
  7. Find first and last instance
    By Gixxer_J_97 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-07-2005, 03:35 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