+ Reply to Thread
Results 1 to 9 of 9

Matrix Lookup Issue with ISNUMBER & SEARCH

  1. #1
    Registered User
    Join Date
    05-26-2022
    Location
    Devon, England
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel (Windows 11 64-bit)
    Posts
    3

    Matrix Lookup Issue with ISNUMBER & SEARCH

    Hi,

    I work in a laboratory, and we have various freezers named: Fz1, Fz2, ..... Fz9, Fz10, Fz11, Fz12

    We keep various samples in these freezers such as blood.

    I have created a large spreadsheet which links each sample type to the freezers which store them. (The table also has more columns with more information I have kept out)
    See below a very basic example

    Saliva Fr2; Fr6
    Urine Fr1
    Plasma Fr1; Fr12
    Serum Fr8; Fr11; Fr12

    I have created another tab with a table of sample types going down the page and freezers going across.
    I want the cells to link back to the tab described above, highlighting the cells which show which freezers contain which samples, as shown in the image.
    The cells have a formula =ISNUMBER(SEARCH(B$1,Freezer!$A$1)) where Freezer is the other tab containing the table
    Freezer example.PNG


    However the issue is this says Freezer Fr1 contains Serum which isn't the case.
    I understand this is because Fr11 and Fr12 contain "Fr1" in them.
    I have tried ways of editing this, however, any solution I have found doesn't work as there are other freezer names in the original cell it's pulling from. I also want to keep the Substring as the cell rather than the text, as we have many freezers.
    Attached Images Attached Images
    Last edited by AliGW; 05-26-2022 at 07:26 AM. Reason: Title changed - please think more carefully about your thread titles in future!

  2. #2
    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,398

    Re: Matrix Lookup Issue with ISNUMBER & SEARCH

    Administrative Note:

    Welcome to the forum.

    Members will tailor the solutions they offer to the version (NOT release number) of Office (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this. Thanks.

    There are instructions at the top of the page explaining how to attach your sample workbook.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.

    Administrative Note:

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. As yo uare new here, I have done it for you this time.)
    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.

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,072

    Re: Matrix Lookup Issue with ISNUMBER & SEARCH

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    05-26-2022
    Location
    Devon, England
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel (Windows 11 64-bit)
    Posts
    3

    Re: Matrix Lookup Issue with ISNUMBER & SEARCH

    Unfortunately, this does not work. There is not always a semicolon after the freezer name

  5. #5
    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,398

    Re: Matrix Lookup Issue with ISNUMBER & SEARCH

    @SAMS

    I asked you to update your forum profile and to provide a sample workbook. Please would you do both now. Thanks.

  6. #6
    Registered User
    Join Date
    05-26-2022
    Location
    Devon, England
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel (Windows 11 64-bit)
    Posts
    3

    Re: Matrix Lookup Issue with ISNUMBER & SEARCH

    See document attached
    Attached Files Attached Files

  7. #7
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,072

    Re: Matrix Lookup Issue with ISNUMBER & SEARCH

    Thanks for that. How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  8. #8
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: Matrix Lookup Issue with ISNUMBER & SEARCH

    I think if the freezers were in sperate columns for each freezer or had leading zeros it would be much simpler. I think the above fails if it is the last entry in a cell

    Perhaps in b2
    =IF(IFERROR(SEARCH(B$1&";",INDEX(Freezer!$B$1:$B$4,MATCH(Sheet1!$A2,Freezer!$A$1:$A$4,0)),1)>0,0)+(RIGHT(INDEX(Freezer!$B$1:$B$4,MATCH(Sheet1!$A2,Freezer!$A$1:$A$4,0)),LEN(B$1))=B$1),TRUE,"")

  9. #9
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Taiwan
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,380

    Re: Matrix Lookup Issue with ISNUMBER & SEARCH

    worksheet or tab name : Sheet1

    Cell B2 formula , Drag down and across

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. Using the IF(ISNUMBER(SEARCH) function
    By smbyrnecarey in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-20-2022, 07:22 AM
  2. [SOLVED] IF(AND(ISNUMBER(SEARCH())) Function
    By joshuarobbins in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-30-2015, 12:57 PM
  3. [SOLVED] Countifs & Search (ISNumber) Function together
    By MeritaH in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-11-2014, 11:01 PM
  4. Combine IF THEN Function with ISNUMBER SEARCH?
    By alexa_raye in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-26-2014, 11:44 AM
  5. [SOLVED] IF(ISNUMBER(SEARCH function
    By NickT83 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-16-2014, 10:18 AM
  6. ISNUMBER(SEARCH Function
    By somesoldiers in forum Excel General
    Replies: 2
    Last Post: 07-14-2009, 10:49 AM
  7. SUMPRODUCT((ISNUMBER(SEARCH() function
    By redneck joe in forum Excel General
    Replies: 13
    Last Post: 12-08-2006, 06:19 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