+ Reply to Thread
Results 1 to 9 of 9

Return true or false if cell contains multple strings of cells

  1. #1
    Registered User
    Join Date
    09-22-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 2010
    Posts
    5

    Return true or false if cell contains multple strings of cells

    I've tried many function, but here's what I need:

    I would like a cell G1, to return yes or no, if A1 contains all of cells B1:F1 in no specific order. Image:

    masterexample.jpg

    Looking forward to hear back!

    I have attached a workbook if that helps.

    [SOLUTION:] Ok so the solution isn't a formula exactly and it's not free. I just downloaded a free trail of ablebits or something and used the "Compare Tables" button. Worked like a charm.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by degromek; 09-24-2015 at 02:47 PM. Reason: SOLVED

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Return true or false if cell contains multple strings of cells

    Here!

    =IF(ISNUMBER(MATCH("*"&C1&" "&D1&" "&E1&" "&F1&" "&G1&"*",$A$1:$A$12,0)),"Yes","No")

    Drag Down as required
    Cheers!
    Deep Dave

  3. #3
    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,929

    Re: Return true or false if cell contains multple strings of cells

    Hi, welcome to the forum

    Your comment...
    in no specific order.
    ...does that mean they could be in any sequence in the row?

    If not, Dave's formula should work. If they can, then it wont always work
    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

  4. #4
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Return true or false if cell contains multple strings of cells

    in no specific order
    I understood this to be - In no specific row number..

    If I understood you wrong, then FDibbins is right..

  5. #5
    Registered User
    Join Date
    09-22-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 2010
    Posts
    5

    Re: Return true or false if cell contains multple strings of cells

    Thank you, I will be coming here often due to the work i need to do with little experience

    The formula works for the example i gave
    FDibbins is right
    .
    I tried to simplify my problem but even with this formula i can't get it to work for the actual file.

    Let me place a small piece of the actual file i need work on. The original file has 7000+ rows of products.
    This one is the first 20 with what should be only one "Yes" return.

    masterexample2.jpg

    Workbook File:
    Attached Files Attached Files

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Return true or false if cell contains multple strings of cells

    @ G8 SHOULD SHOW "YES" SINCE B8:F8 ALL MATCH A4.
    Actually they don't.

    A4 is 1 NEW 145 70 12 SUMMIT DS618 P145/70R12 R12 69T TIRE
    B8:F8 is 145 70 12 SUMMIT DS615

    But here's one way to do it from the first workbook. Array-entered in H1 and filled down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.

    In the second workbook this array-entered in G1 should work filled down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  7. #7
    Registered User
    Join Date
    09-22-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 2010
    Posts
    5

    Re: Return true or false if cell contains multple strings of cells

    Hey Dave, that works but only for that one lookup. What if for example i need to:

    -find all the data in B1:F1
    -and return Yes or No
    -if it exists in range A1:A20

    Modifying the formula you gave me doesn't work if I search through a range "$A$1:$A$20" instead of "$A$4".

    workbook3.jpg

    CORRECTION: "SUMMIT DS615" was mispelled and corrected to match "SUMMIT DS618"

    CORRECTION #2: B19:F19 should now also show yes since A15 has a match. (Just to add some variety)

    Still haven't figured this out even with the smarties i work with
    Attached Files Attached Files

  8. #8
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Return true or false if cell contains multple strings of cells

    how about countif?

    Please Login or Register  to view this content.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

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

    Re: Return true or false if cell contains multple strings of cells

    With new info I got exactly what vlady came up with.

+ 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. What is best to use for helper cells 0 or 1, typed true or false or =true =false
    By Gingermuppet in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-20-2014, 10:41 PM
  2. [SOLVED] Match specific words in cell and return value if true or false
    By jbrooksia in forum Excel General
    Replies: 3
    Last Post: 03-27-2012, 04:15 PM
  3. Replies: 3
    Last Post: 02-11-2012, 03:07 PM
  4. Replies: 2
    Last Post: 02-17-2011, 10:15 PM
  5. Replies: 3
    Last Post: 05-29-2009, 05:42 AM
  6. Replies: 2
    Last Post: 05-29-2009, 04:35 AM
  7. Return True/False if cell contains formula
    By rziegler in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-09-2009, 03:03 PM
  8. Replies: 1
    Last Post: 03-12-2008, 06:35 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