+ Reply to Thread
Results 1 to 19 of 19

How to filter cell containing only 1 in between words but not 10 or 11 or 12 in a column?

  1. #1
    Registered User
    Join Date
    11-21-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    33

    How to filter cell containing only 1 in between words but not 10 or 11 or 12 in a column?

    Hi,
    Here is the data for a column below:
    class 1
    class 10
    class 12
    class 11
    class 1
    class 1

    So I want to filter the cells containing only class 1. so when I am using custom filter it is pulling all above data because in every cell it contains 1.
    So kindly suggest me how to filter or any other technique to solve this problem.

    Any suggestion highly appreciated?

    Thanks in advance

  2. #2
    Forum Contributor
    Join Date
    09-27-2012
    Location
    London, England
    MS-Off Ver
    2003, 2010
    Posts
    344

    Re: How to filter cell containing only 1 in between words but not 10 or 11 or 12 in a colu

    Hi - Did you try using Text Filters "Equals" Class 1?

    That should give you just class 1 eliminating class 10 / 11 etc.
    If solved kindly remember to mark Thread as solved.
    Click the small star icon at the bottom left of my post if this was useful.

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: How to filter cell containing only 1 in between words but not 10 or 11 or 12 in a colu

    hi kalucharan. welcome to the forum. shouldn't have any problems if you filter "equals" "class 1". do not use "contains"

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Registered User
    Join Date
    11-21-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: How to filter cell containing only 1 in between words but not 10 or 11 or 12 in a colu

    Quote Originally Posted by kbkumar View Post
    Hi - Did you try using Text Filters "Equals" Class 1?

    That should give you just class 1 eliminating class 10 / 11 etc.
    Quote Originally Posted by kbkumar View Post
    Hi - Did you try using Text Filters "Equals" Class 1?

    That should give you just class 1 eliminating class 10 / 11 etc.
    Thanks for replying, I have already tried with "equals".... I know for above data that I have mentioned equals will work. Please have a look into below data. I am very sorry I have given less data.... Please look below to see data

    class 1 question paper
    class 10 sample paper
    question paper class 12
    best book class 11
    cbse class 1
    class 1 icse

    So now please tell me how to filter data containing only class 1. I want result to be like below
    class 1 question paper
    cbse class 1
    class 1 icse

    Any suggestion greatly appreciated.

    Thanks a lot.

  5. #5
    Registered User
    Join Date
    11-21-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: How to filter cell containing only 1 in between words but not 10 or 11 or 12 in a colu

    Quote Originally Posted by benishiryo View Post
    hi kalucharan. welcome to the forum. shouldn't have any problems if you filter "equals" "class 1". do not use "contains"
    Quote Originally Posted by kbkumar View Post
    Hi - Did you try using Text Filters "Equals" Class 1?

    That should give you just class 1 eliminating class 10 / 11 etc.
    Thanks for replying, I have already tried with "equals".... I know for above data that I have mentioned equals will work. Please have a look into below data. I am very sorry I have given less data.... Please look below to see data

    class 1 question paper
    class 10 sample paper
    question paper class 12
    best book class 11
    cbse class 1
    class 1 icse

    So now please tell me how to filter data containing only class 1. I want result to be like below
    class 1 question paper
    cbse class 1
    class 1 icse

    Any suggestion greatly appreciated.

    Thanks a lot.

  6. #6
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: How to filter cell containing only 1 in between words but not 10 or 11 or 12 in a colu

    use a helper column then:
    =ISNUMBER(SEARCH("class 1 ",A2&" "))

    this is assuming data is in column A. then filter all the TRUEs

  7. #7
    Registered User
    Join Date
    11-21-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: How to filter cell containing only 1 in between words but not 10 or 11 or 12 in a colu

    Quote Originally Posted by benishiryo View Post
    use a helper column then:
    =ISNUMBER(SEARCH("class 1 ",A2&" "))

    this is assuming data is in column A. then filter all the TRUEs
    Hi,
    I am using like below but result comes FALSE
    ISNUMBER(SEARCH("class 1",A2:A6124&" "))

  8. #8
    Forum Contributor
    Join Date
    09-27-2012
    Location
    London, England
    MS-Off Ver
    2003, 2010
    Posts
    344

    Re: How to filter cell containing only 1 in between words but not 10 or 11 or 12 in a colu

    Hi Kalucharan,

    You need to use the formula given by Benishiryo in cell B2 and drag it down till B6124 to get True and False results. The one you are using in post #7 will not work.

  9. #9
    Registered User
    Join Date
    11-21-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: How to filter cell containing only 1 in between words but not 10 or 11 or 12 in a colu

    Quote Originally Posted by kbkumar View Post
    Hi Kalucharan,

    You need to use the formula given by Benishiryo in cell B2 and drag it down till B6124 to get True and False results. The one you are using in post #7 will not work.
    Hi kbkumar,
    I did the same as you suggested but I am getting all results like the cells containing 11 or 12 or 10.
    Please suggest any other idea to solve this.
    Thanks for your suggestion and any suggestion highly appreciated.

  10. #10
    Forum Contributor
    Join Date
    09-27-2012
    Location
    London, England
    MS-Off Ver
    2003, 2010
    Posts
    344

    Re: How to filter cell containing only 1 in between words but not 10 or 11 or 12 in a colu

    Can you upload sample workbook with the results you are getting?

  11. #11
    Forum Contributor
    Join Date
    09-27-2012
    Location
    London, England
    MS-Off Ver
    2003, 2010
    Posts
    344

    Re: How to filter cell containing only 1 in between words but not 10 or 11 or 12 in a colu

    In case you need steps to upload:

    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.

  12. #12
    Registered User
    Join Date
    11-21-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: How to filter cell containing only 1 in between words but not 10 or 11 or 12 in a colu

    Hi kbkumar,
    I have attached the spreadsheet, Please find and let me know if I am doing right or not.

    Thanks
    Kalu
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    11-21-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: How to filter cell containing only 1 in between words but not 10 or 11 or 12 in a colu

    Hi kbkumar,
    I have uploaded the spreadsheet with the formula and let me know if this is right?

    Thanks
    Kalu
    Attached Files Attached Files

  14. #14
    Forum Contributor
    Join Date
    09-27-2012
    Location
    London, England
    MS-Off Ver
    2003, 2010
    Posts
    344

    Re: How to filter cell containing only 1 in between words but not 10 or 11 or 12 in a colu

    You are missing a space. Use this:

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

  15. #15
    Forum Contributor
    Join Date
    11-05-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    229

    Re: How to filter cell containing only 1 in between words but not 10 or 11 or 12 in a colu

    There you go, kalucharan.

    Don't forget to click on the little star to the left of this post if you feel I helped!
    Attached Files Attached Files
    Taming the Excel dragon... www.TheExcelphile.com

  16. #16
    Registered User
    Join Date
    11-21-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: How to filter cell containing only 1 in between words but not 10 or 11 or 12 in a colu

    Quote Originally Posted by kbkumar View Post
    You are missing a space. Use this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Hi kbkumar,
    Thanks a lot for solving my previous problem by taking your valuable time. Here I have come with a new problem,Please read below:

    Suppose I have 1000 data in column A and I want to categorize the column A data in column B. These 1000 data I want make into 4 categories in column B. So what I was thinking if I could have write single formula in column B and drag till the end, the each data cell of column A will fall respective category in column B. Please find the attachment to understand better.
    In this sheet I have two columns Keyword and Category.
    Condition:
    If any cell containing "paper" or "question paper" or "sample papers" will come under category called Sample Paper in column B.
    If any cell containing "syllabus" will come under category called Syllabus in column B.
    If any cell containing "book" or "books" will come under category called Book in column B
    I can solve this by using Filter in Column A but I want a formula which can be written in column B and drag till the end to get result.

    Any suggestion or help highly appreciated.

    Thanks in advance.
    Attached Files Attached Files

  17. #17
    Forum Contributor
    Join Date
    09-27-2012
    Location
    London, England
    MS-Off Ver
    2003, 2010
    Posts
    344

    Re: How to filter cell containing only 1 in between words but not 10 or 11 or 12 in a colu

    Thanks for the feedback Kalucharan.

    Regarding your new problem, Am afraid to say but as per the forum rules you would have to create a new thread and then it would be picked up / answered accordingly...

  18. #18
    Registered User
    Join Date
    11-21-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: How to filter cell containing only 1 in between words but not 10 or 11 or 12 in a colu

    Quote Originally Posted by kbkumar View Post
    Thanks for the feedback Kalucharan.

    Regarding your new problem, Am afraid to say but as per the forum rules you would have to create a new thread and then it would be picked up / answered accordingly...
    Hi kbkumar
    I have already started a new thread but to remind you only I have replied in this thread because I was really happy when you solved my first thread problem. If it is as per forum rule then I respect it and from next time I will not commit such mistake. Thanks for reminding the forum rule.

    Regards
    Kalucharan

  19. #19
    Forum Contributor
    Join Date
    09-27-2012
    Location
    London, England
    MS-Off Ver
    2003, 2010
    Posts
    344

    Re: How to filter cell containing only 1 in between words but not 10 or 11 or 12 in a colu

    Hi Mate, Sorry I thought that you did not create a new thread hence requested you to start a new one. But, I just saw your other thread at:

    http://www.excelforum.com/excel-form...html?p=3026667

    and seems that is resolved now by other valuable members

    Cheers!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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