+ Reply to Thread
Results 1 to 11 of 11

Filtering out the most used sentence

  1. #1
    Registered User
    Join Date
    08-14-2013
    Location
    taPortaFor
    MS-Off Ver
    Excel 2007
    Posts
    5

    Filtering out the most used sentence

    Hi,

    I have an excel which has 399878 rows and 1 column. In here i want to highlight the top 100 most used sentences. The real problem in here is several rows contains special characters mixed up with the sentences. For eg.

    Row1: I have a problem in excel and need to resolve.
    Row2: ##I have a problem in excel and need to resolve.
    Row3: I have a problem in excel and need to <48><89>resolve.
    Row4: <77??>I have a problem in excel ** and need to ??? resolve.


    in above the special characters should not be considered and only the sentence "I have a problem in excel and need to resolve." should only be considered while filtering. So from 399878 rows, not taking the special characters i need the top 100 sentence used. Can any one pleaseeeee help?

    Manoj

  2. #2
    Forum Contributor
    Join Date
    05-24-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    291

    Re: Filtering out the most used sentence

    Hi

    Considered your data is in A1 hence below formula should be in B1

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


    may be formula looks raw but it works
    Click on * below if you find this helpful

    Thanks,
    A

  3. #3
    Registered User
    Join Date
    08-14-2013
    Location
    taPortaFor
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Filtering out the most used sentence

    Thanks Amy, now i see the B1 column without the special characters. but how can i filter out the top most 100 used sentences from that. if the formula gets too complicated please dont bother about the special characters. the main task is to filter out the top 100 sentences available. can you please help me

  4. #4
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Filtering out the most used sentence

    use a pivot table

  5. #5
    Forum Contributor
    Join Date
    05-24-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    291

    Re: Filtering out the most used sentence

    Hi

    put below formula in C1, drag down till end (i presume your old data is in column A starts with row 1, my substitute formula is in column b, & hence this formula to be in column C)

    =COUNTIF(B:B,B1)

    then put filter to column C & in filter go to - number filter - then top 10 - in there instead of ten make it 100

    i hope this will suffice .....

  6. #6
    Registered User
    Join Date
    08-14-2013
    Location
    taPortaFor
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Filtering out the most used sentence

    Thanks a lot Amy!!! This is really working in a good way. I faced another problem. is see a sentence 28 times and another 32 times repeating. so in there i need only one 28 and one 32 to appear in the final result. Can you please help on how to filter this.

  7. #7
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Filtering out the most used sentence

    It'd be easier to use a pivot table

  8. #8
    Forum Contributor
    Join Date
    05-24-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    291

    Re: Filtering out the most used sentence

    Quote Originally Posted by kmanojkannan View Post
    Thanks a lot Amy!!! This is really working in a good way. I faced another problem. is see a sentence 28 times and another 32 times repeating. so in there i need only one 28 and one 32 to appear in the final result. Can you please help on how to filter this.
    follow this step

    then put filter to column C & in filter go to - number filter - then top 10 - in there instead of 10 make it 2

    pivot table suggested by kyle is also appropriate , after substitute function
    Last edited by amy_d2; 08-20-2013 at 06:52 AM.

  9. #9
    Registered User
    Join Date
    08-14-2013
    Location
    taPortaFor
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Filtering out the most used sentence

    Pivot table: i Saw it and was confusing me, can you tell me the procedure to do on what i am asking for?

  10. #10
    Registered User
    Join Date
    08-14-2013
    Location
    taPortaFor
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Filtering out the most used sentence

    Sorry Amy, it isnt working!! an example on what i am getting:

    Text1: amy (it gets repeated 90 times, so in column B 90 is appearing 90 times)

    Text2: kyle (it repeats 50 times, in column B 50 is appearing 50 times)

    Text3: Manoj (it repeats 10 times, so 10 is appearing 10 times)

    If i give number filter in column B as top 2 90&50 should appear, what in real life happens is only 90 is appearing, and another problem is 90 is not appearing in a single row instead it is showing 90 as 90 times, it should actually appear only once and so the next 50 and 10.

  11. #11
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Filtering out the most used sentence

    Select your data, insert pivottable, drag the sentences column into rows and count of sentences into values, you can then rank descending by count of sentences

+ 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. 3 value if sentence
    By piiska in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-31-2013, 02:55 PM
  2. Replies: 1
    Last Post: 11-07-2012, 02:00 AM
  3. Using NOW in a sentence
    By PhilSM in forum Excel General
    Replies: 3
    Last Post: 06-22-2009, 08:59 AM
  4. [SOLVED] trouble filtering a list. Why isn't column filtering?-number of criteria
    By Pat in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-18-2005, 11:05 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