+ Reply to Thread
Results 1 to 8 of 8

How can I filter a column with more than 2 words present

  1. #1
    Registered User
    Join Date
    09-23-2012
    Location
    Mumbai
    MS-Off Ver
    Excel 2010
    Posts
    61

    How can I filter a column with more than 2 words present

    Hello Friends!

    Hope you can help me with this

    Eg. In Column a I have product descriptions

    Column A

    1 - SMZ610 Super Bass Stereo In - ear Earphone with 3.5mm Plug
    2 - buy leather iphone case for cheap
    3 - PortableDB In - ear Stereo Ear Hook Earphone Sports Headset 3.5mm Plug with Carrying Bag
    4 - High Fidelity Effect Noodle Cable In - ear Earphone for Various Phones
    5 - iphone case made with genuine leather - exclusive gift for your loved ones
    6 - Portable Mini LCD Screen 8GB USB MP3 Player with FM Radio / REC / MIC
    7 - Portable 4.3 inch TFT 4GB MP5 Player Game Console FM Radio with TV - OUT and 3.0MP Camera


    From the above column I want cells which include all 3 words iphone, leather and case

    Thanks for your support!
    Last edited by faizzsheikh; 02-22-2018 at 08:08 AM.

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: How can I filter a column with more than 2 words present

    If your data starts in A1, put this in B1 and drag down. It will give you what's in column A if that contains all three of your search terms, or return 'n/a' if not.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Edit: sorry, somehow or other I missed the essential AND:
    =IF(AND(NOT(ISERROR(SEARCH({"iphone","leather","case"},A1)))),A1,"n/a")
    But you got a better solution from Glenn anyway.
    Last edited by Aardigspook; 02-22-2018 at 09:04 AM. Reason: Corrected formula and acknowledgement of later, better solution
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  3. #3
    Registered User
    Join Date
    09-23-2012
    Location
    Mumbai
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: How can I filter a column with more than 2 words present

    Thanks for your response.

    Not worked, I tried your formula but its returning cells that have only iphone mentioned in it. I want to get cells that has all 3 words present in it.

    For instant I want "Order case built with leather for your iphone"
    I dont want "buy case cover for iphone as a gift for your loved ones"
    Last edited by jeffreybrown; 02-22-2018 at 08:06 AM. Reason: Removed full quote!

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: How can I filter a column with more than 2 words present

    Assuming data in A2:

    =IFERROR(INDEX(A:A,AGGREGATE(15,6,ROW($A$2:$A$8)/(ISNUMBER(SEARCH("leather",$A$2:$A$8))*ISNUMBER(SEARCH("iphone",$A$2:$A$8))*ISNUMBER(SEARCH("case",$A$2:$A$8))),ROWS($1:1))),"")
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: How can I filter a column with more than 2 words present

    Apologies. I mis-read your profile. You don't have Excel 2010+, so don't have aggregate. Use this array formula:

    =IFERROR(INDEX(A:A,SMALL(IF(ISNUMBER(SEARCH("leather",$A$2:$A$8)),IF(ISNUMBER(SEARCH("iphone",$A$2:$A$8)),IF(ISNUMBER(SEARCH("case",$A$2:$A$8)),ROW($A$2:$A$8)))),ROWS($1:1))),"")

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    09-23-2012
    Location
    Mumbai
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: How can I filter a column with more than 2 words present

    Quote Originally Posted by Glenn Kennedy View Post
    Apologies. I mis-read your profile. You don't have Excel 2010+, so don't have aggregate. Use this array formula:

    =IFERROR(INDEX(A:A,SMALL(IF(ISNUMBER(SEARCH("leather",$A$2:$A$8)),IF(ISNUMBER(SEARCH("iphone",$A$2:$A$8)),IF(ISNUMBER(SEARCH("case",$A$2:$A$8)),ROW($A$2:$A$8)))),ROWS($1:1))),"")

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Hello Glenn,

    Thanks a lot for your support, your formula worked perfectly!

    I was assuming it could get solved by an 'advanced filter' or something, but it is way difficult. Thanks again, you are a savior!

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: How can I filter a column with more than 2 words present

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

  8. #8
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: How can I filter a column with more than 2 words present

    If you want to go with advance filters
    In the attached file do the following
    Data > Advanced (Filter)
    select A10:A17 under listrange
    select A1:A7 under Criteria Range
    Click OK
    Attached Files Attached Files
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

+ 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. filter column visibility with either of 2 values present
    By jitterbug888 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-16-2016, 10:06 PM
  2. Replies: 5
    Last Post: 04-07-2015, 07:46 PM
  3. Replies: 2
    Last Post: 09-03-2014, 03:37 AM
  4. [SOLVED] Column if words as filter
    By [email protected] in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-27-2014, 05:33 AM
  5. Replies: 1
    Last Post: 01-20-2014, 04:03 PM
  6. Replies: 6
    Last Post: 01-17-2014, 10:41 AM
  7. Replies: 18
    Last Post: 11-29-2012, 07:43 AM

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