+ Reply to Thread
Results 1 to 7 of 7

=IF(ISNUMBER(SEARCH to Exclude Similar Values

  1. #1
    Registered User
    Join Date
    01-24-2017
    Location
    Glasgow
    MS-Off Ver
    365
    Posts
    82

    =IF(ISNUMBER(SEARCH to Exclude Similar Values

    HI all,

    Hopefully this is something that is a quick win.

    I have a an issue where I am using =IF(ISNUMBER(SEARCH to bring back specific values from a long text string into a number of columns, based on sub organisations within a company. Each sub org belongs to a specific dept (vertical).

    I can get most of the names to pull across into the correct columns but I have encountered an issue where similar names or those with the same set of characters are incorrectly pulling through into the wrong columns ie when searching for "UK" it is pulling over for "UKraine", or "Markets" is pulling over "Capital Markets" etc. I need it to only recognise specific names and ignore similar or with some of the same Characters.

    I've attached a sample of dummy data to the post.

    I've been told I need to keep the original spreadsheet in its existing format with the helper columns for each org feeding into a final TEXTJOIN column, which should show all the impacted orgs, so if there are any specific changes that can be made to resolve the issue it would be very much appreciated.

    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: =IF(ISNUMBER(SEARCH to Exclude Similar Values

    This formula seems to work for the most part for me put in B2 and drag down and across:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    A couple of inconsistencies. Column H title on Sheet2 did not have the repeating title "Reporting Org". I have added this to H1 so it now reads "Reporting Org Wealth". As the formula uses the naming convention to find the correct vertical2.
    Next, All the columns match your desired results except for Wealth. This is because the sub org in Sheet2 column A "Private Bank & Wealth" does not match your translation table in Sheet1 "Private Bank & Wealth Group"
    You would need to change your translation table on sheet1 and drop the "space" and "Group" from that definition so that it read "Private Bank & Wealth" in cell A19 of Sheet1.
    Attached Files Attached Files
    <----- If you are happy with your solution please click on the "* Add Reputation" as a way to say thank you.

  3. #3
    Registered User
    Join Date
    01-24-2017
    Location
    Glasgow
    MS-Off Ver
    365
    Posts
    82

    Re: =IF(ISNUMBER(SEARCH to Exclude Similar Values

    Hi dosydos,

    Thanks for the response, it is greatly appreciated. I think I have maybe not explained it clearly enough, so that's on me. Apologies. Sheet 1 was literally just there as reference and is not to be used for lookups etc.

    On the actual worksheet I have to contend with, I need a formula to look into the text string within the sub org column (column A) and trigger the resulting org columns (B:I) so that they populate with the correct vertical 2(Reporting Org) ie 'Boston IC Branch' would trigger the ICB column.

    At the same time I need to avoid things being triggered when not applicable like IM being shown when the text string includes the word 'Markets' because ‘IM’ should only trigger if 'Treasury Markets' or 'Capital Markets' are seen within the text string. ‘Markets’ belong under ‘ICB’ only.

    Basically, if the text string found in the cell within Column A contains a sub org for one of the 7 Reporting Orgs it should populate the relevant column in the same row, and not populating cells incorrectly due to partial word matches like ‘Private Bank & Wealth,Markets’ triggering the CB&D column.

    The CB&D cells/column should only populate where either ‘Private Bank’ or ‘Ukraine Funds’ are specifically seen and not where ‘Private Bank & Wealth Group’ is seen because it is falsely identifying it as CB&D based on the first 2 words of ‘Private Bank & Wealth Group’ matching ‘Private Bank’. Private Bank belongs within CB&D and Private Bank & Wealth Group belongs under Wealth
    Not sure if I have made this a harder request or easier by removing the LOOKUP from the equation?

    Any help is appreciated though.
    Last edited by BigErnKingpin; 03-29-2024 at 04:54 PM.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,848

    Re: =IF(ISNUMBER(SEARCH to Exclude Similar Values

    Try this:

    Please Login or Register  to view this content.

    I've added a comma in front of "Banking" and "Markets". Having a lookup list would be by far the better option here instead of tricky nested IF statements.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    01-24-2017
    Location
    Glasgow
    MS-Off Ver
    365
    Posts
    82

    Re: =IF(ISNUMBER(SEARCH to Exclude Similar Values

    Hey Ali,

    Thanks for the response. I tried something similar myself but where there is a row that contains just "Banking" or "Markets" by themselves it brings back a false positive in some of the columns, as there is no comma at the front of or after the words

    I agree a lookup probably would be better but it's not a model I actually own, it belongs to another team and they don't want to employ more lookups as the overall model is already convoluted with multiple lookup sheets and pretty unstable due to the size.

    I'll just have to say there is no way to have the sheet working using nested IFs because of the false positives.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,848

    Re: =IF(ISNUMBER(SEARCH to Exclude Similar Values

    Yes - just throw it back at them.

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.

    Also, if you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

  7. #7
    Registered User
    Join Date
    01-24-2017
    Location
    Glasgow
    MS-Off Ver
    365
    Posts
    82

    Re: =IF(ISNUMBER(SEARCH to Exclude Similar Values

    They are already manually keying or pasting over certain cells/columns to remove false positives, so I'm sure they'll continue doing the same thing. If they are happy with the risk of manual errors and dont want new lookups that's on them.

    I wasnt holding out much hope re the nested IFs working as I could find nothing online about excluding similar values, that I hadnt already tried, but thanks for the help anyway. Always like to double check with those with skill level is higher than mine.

    Have a good bank holiday weekend.
    Last edited by BigErnKingpin; 03-30-2024 at 09:38 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. [SOLVED] SUMPRODUCT(ISNUMBER(SEARCH has duplicate values
    By NicBKK in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-11-2023, 05:11 AM
  2. Formula to return A ∩ C but exclude similar values of B
    By N0043 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-15-2022, 09:59 AM
  3. Sumproduct Isnumber Search is returning same result for different values
    By labruzzi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-07-2019, 12:36 AM
  4. [SOLVED] Can ISNUMBER + SEARCH function find values NOT in a cell
    By jmbelly in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-27-2019, 06:36 AM
  5. Multiple search terms: (ISNUMBER(SEARCH(". VALUES",1:1))),FALSE)
    By Schultze in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-22-2018, 06:40 AM
  6. Replies: 14
    Last Post: 06-17-2013, 09:43 AM
  7. How many values can be in IF(ISNumber(search
    By aurness in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-25-2013, 11:11 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