+ Reply to Thread
Results 1 to 14 of 14

Using Index Match with Wildcard on similar names

  1. #1
    Registered User
    Join Date
    05-05-2014
    Location
    Voorheesville, NY
    MS-Off Ver
    Excel 2007
    Posts
    77

    Using Index Match with Wildcard on similar names

    Hello,

    I am using INDEX MATCH with WILDCARD to pull the total of each individual securities from a separate excel worksheet. The INDEX MATCH function works great except for those securities with similar names such as ABC Fund, ABC Fund II, Venture Fund I, Venture Fund II, so on and so forth.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Thank you very much for any help!

    Cheryl

  2. #2
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: Using Index Match with Wildcard on similar names

    Quote Originally Posted by dache416 View Post
    The INDEX MATCH function works great except for those securities with similar names such as ABC Fund, ABC Fund II, Venture Fund I, Venture Fund II, so on and so forth.
    You didnt explain how it doesnt work and we have no context in which to discover on our own how its not working. To best help you we need details, clearly explained issues and desired outcomes, sample file(s), etc.
    Ways to get help: Post clear questions, explain your overall goal, supply as much background as possible, respond to questions asked of you by those trying to help and post sample(s) files.

    "I am here to help, not do it for people" -Me

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,735

    Re: Using Index Match with Wildcard on similar names

    The INDEX/MATCH formula you have quoted will return one value (actually, the first value where the MATCH occurs). I think you want to return multiple values which meet the criteria, and to SUM those values, which implies using a SUMIFS function (which also supports wildcards). You can also think about using SUMPRODUCT.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    05-05-2014
    Location
    Voorheesville, NY
    MS-Off Ver
    Excel 2007
    Posts
    77

    Re: Using Index Match with Wildcard on similar names

    Hi Zer0Cool,

    The formula is working correctly properly. For example the Banana Corp has $1,000. When I use the formula, I get the right total for Banana Corp. The problem happens when there are securities with similar names like Apple I and Apple II. If Apple I has $2,000, and Apple II has $3,000. When I use the formula to pull the Apple I total, I get the right total for Apple I but not for Apple II. Apple II return is the Apple I's total.

  5. #5
    Registered User
    Join Date
    05-05-2014
    Location
    Voorheesville, NY
    MS-Off Ver
    Excel 2007
    Posts
    77

    Re: Using Index Match with Wildcard on similar names

    Hi Pete_UK,

    Thank you for responding to my post. SUMPRODUCT won't work for what I need. I need to INDEX and Match each security accounts to a separate excel spreadsheet. The formula I am currently using is working fine on security account name without similarity to another security name. When there are two security accounts with similar names like Apple Fund I and Apple Fund II. The formula only return the first one it finds on both, instead of return it's respective total.

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Using Index Match with Wildcard on similar names

    What lookup text are you feeding into the lookup function? I don't see much help with wildcards for a lookup that must distinguish between something like "Apple I" and "Apple II". The only way I can see for the lookup function to correctly distinguish between those two entries is to give the lookup the full text string. This seems like it might be less about this particular function and what value/formula is in BQ1.

    Or, reading between the lines, do you really need the function to return something like "there are several possible matches for that input text, user needs to enter a more specific lookup string."
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  7. #7
    Registered User
    Join Date
    05-05-2014
    Location
    Voorheesville, NY
    MS-Off Ver
    Excel 2007
    Posts
    77

    Re: Using Index Match with Wildcard on similar names

    Hi MrShorty,

    You are right! That's means I have to name the securities in my spreadsheet exactly what's in the other spreadsheet who is manage by other person. My though process was, by using the WILDCARD, it will help differences between the name on my sheet and the other person's sheet - like, the other person's sheet might have LP while mine has no LP after the name.

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,735

    Re: Using Index Match with Wildcard on similar names

    It would help if you attached a sample Excel workbook, so we can see exactly what you are trying to do.

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.

    Please note that the Paperclip icon (Attachments button) does not work on this forum, so don't try to use that.

    Hope this helps.

    Pete

  9. #9
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Using Index Match with Wildcard on similar names

    That's means I have to name the securities in my spreadsheet exactly what's in the other spreadsheet who is manage by other person.
    Is this a bad or impractical idea? I do not do databases like this, but it sometimes seems to me that the easiest way to avoid this kind of ambiguity and difficulty is to collaborate with the other person so that we are both using the exact same text identifiers for each item. I am optimistic that, once we understand all of the possible variations between your text and your colleague's text, we can come up with a way of "cross-referencing" identifiers, but it seems like that would be unnecessary if you both agree to a common list of identifiers at the start.

    I guess what I am saying -- if this were my project, I would find out from my colleague what identifiers he/she is using and use the same identifiers.

  10. #10
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: Using Index Match with Wildcard on similar names

    Quote Originally Posted by dache416 View Post
    Hi Zer0Cool,

    The formula is working correctly properly. For example the Banana Corp has $1,000. When I use the formula, I get the right total for Banana Corp. The problem happens when there are securities with similar names like Apple I and Apple II. If Apple I has $2,000, and Apple II has $3,000. When I use the formula to pull the Apple I total, I get the right total for Apple I but not for Apple II. Apple II return is the Apple I's total.
    Ok I understand a little more of what you are doing here. The problem is you are using a wildcard, which leaves a margin of error.

    If your term is "Apple*" and you have "Apple I" and "Apple II" as far as your formula/logic are concerned they are the same thing. You cant later (at least feasibly) tell it to be exact and differentiate between the 2.

    So you find yourself in a position where you either have to narrow your scope (by being more specific in your search term) and/or normalize your data (put things in like terms).

    When people share workbooks you can avoid difference in data entry by using data validation. If the possible entries could be gotten from a list of possible entries you can use a drop down list to have people type or pick according to only whats on the list. Otherwise you may be able to create a rule or provide them a key with the syntax for how to enter specific values.

    Without seeing the structure of your data its hard to give you good advice. You say you want the total for x, y or z but unless I have missed something like your formulas being array entered INDEX/MATCH will stop at the first match it finds. It isnt doing any addition. So if you had Apple I = 2,000 and Apple I = 3,000 the given formulas would be expected to return 1 or the other, not the sum of both.

  11. #11
    Registered User
    Join Date
    05-05-2014
    Location
    Voorheesville, NY
    MS-Off Ver
    Excel 2007
    Posts
    77

    Re: Using Index Match with Wildcard on similar names

    Hi Pete_UK,

    Please see attached spreadsheet (similar to what I am working). As you will notice, the Bridgepoint Europe II is listed before the Bridgepoint Europe, as well as the Performance Venture Capital II is listed before the Performance Venture Capital in "Rollforward" sheet. The formula is picking up the first security listed and return the amount on first for both.

    Thank you very much for your help,

    Cheryl
    Attached Files Attached Files

  12. #12
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: Using Index Match with Wildcard on similar names

    Quote Originally Posted by Zer0Cool View Post
    If your term is "Apple*" and you have "Apple I" and "Apple II" as far as your formula/logic are concerned they are the same thing. You cant later (at least feasibly) tell it to be exact and differentiate between the 2.

    So you find yourself in a position where you either have to narrow your scope (by being more specific in your search term)
    After seeing your sample the above applies. You need to narrow the scope.

    If you need to differentiate between "Bridgepoint Europe" and "Bridgepoint Europe II" then you need search for them specifically.

    It appears in your sample as if you are attempting to be able to match despite the "Rollforward" sheet having "LP" or ", LP" on the end of both respectively. Depending on how much variation there is between the 2 sheets in how these entries are made it may simply be easier to clean up your other sheet (normalizing your data) and not using a wildcard at all.

    In your sample for instance non of your headers on "FMV" have a comma "," in the header. So on "Rollforward" we could use a helper column and simply truncate the entries if they have a comma to chop off everything from the comma over to the right. That leaves us just with strings that have LP on the end, so you could then check if the 2 characters on the right end of the string are "LP" and if so chop them off. Then either replace the original column A with the cleaned up entries or adjust your formulas to use the helper column instead of column A.

    From what I can tell MATCH isnt able to use "NOT" operands in the lookup value, ie: "Bridgeport " & "<>*II*" as something like a COUNTIF should be able.

    If you dont normalize your data you can do the opposite and normalize the formulas to include the extra portion of the entries on the other sheet (ex: BQ1&" LP"). If its only 1 part appended on the end this would be feasible, otherwise its not.

  13. #13
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: Using Index Match with Wildcard on similar names

    This should get you closer to what you are looking to do. It will also make it easier to notice when its not pulling the right value (at least in the small sample).

    I am presuming given your previous formula that you are not actually summing values, thus there should only be 1 matching row from which you get the value on the rollforward sheet.

    Since SUMIFS can use the "NOT" logic and since the sum of a single number is the same number the formula I used will give the same results as what you had but allow you to adjust for irregularities.

    Note that the formula isnt the same all the way across row 78. This is because the things you need to exclude from your search are not consistent in each column. This formula basically allows you to adjust the formula to account for the differences between something like "Bridgepoint Europe" and "Bridgepoint Europe II" while still wild carding but excluding the "II" from the search using "Bridgepoint Europe".

    I left your formula in so you may compare results.

    See attached.
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    05-05-2014
    Location
    Voorheesville, NY
    MS-Off Ver
    Excel 2007
    Posts
    77

    Re: Using Index Match with Wildcard on similar names

    Hi Zer0Cool,

    Thank you very much for your help. If I list my securities exactly in the rollforward (list the bridgeport II first), then the formula works. I believe the INDEX MATCH WILDCARD function only return the result on first match. Since the Bridgeport II is listed first before the Bridgeport in Roolforward, the formula return the result on the first match.

    Cheryl

+ 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] Index and Match formula with Wildcard
    By Perk1961 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-08-2016, 07:10 PM
  2. [SOLVED] Index and match using wildcard
    By Eustace07 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-09-2016, 01:30 PM
  3. [SOLVED] Using Index & Match (or similar) to check two columns for a match
    By dvs in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-30-2015, 07:07 PM
  4. 2 variable index match with wildcard
    By izk630 in forum Excel General
    Replies: 4
    Last Post: 10-26-2015, 02:42 PM
  5. [SOLVED] INDEX - MATCH on two Criteria with wildcard
    By SrDurham in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-19-2015, 09:04 AM
  6. [SOLVED] Index,Offest, Match, Wildcard?
    By fgruhlke in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-18-2014, 11:27 PM
  7. [SOLVED] Wildcard text match using INDEX and MATCH
    By mmayna03 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-12-2012, 03:02 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