+ Reply to Thread
Results 1 to 7 of 7

Range with blanks, count the string then automatically sorted by prequency

  1. #1
    Registered User
    Join Date
    10-02-2014
    Location
    indonesia
    MS-Off Ver
    2007
    Posts
    5

    Range with blanks, count the string then automatically sorted by prequency

    Hi all..
    I have single column and multiple columns contain numeric data's with blank cells... I need to count the single string and sort them by occurances (frequency)..
    for easy to understand here within this massage the attached. thanks for your help.
    Attached Files Attached Files

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

    Re: Range with blanks, count the string then automatically sorted by prequency

    IF THE NUMBER IS 789717 then the Frequency of 7 is 3 OR 1 in this case
    Samba

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

  3. #3
    Registered User
    Join Date
    10-02-2014
    Location
    indonesia
    MS-Off Ver
    2007
    Posts
    5

    Re: Range with blanks, count the string then automatically sorted by prequency

    @nflsales, thanks for your spot respon,,,considering the frequency of 7 in 789717 is 3. there is no dupli inside the cells in my data..
    I'll be waiting for your reply then..thanks

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

    Re: Range with blanks, count the string then automatically sorted by prequency

    E17=LARGE(INDEX(COUNTIF($A$17:$C$25,{"*0*";"*1*";"*2*";"*3*";"*4*";"*5*";"*6*";"*7*";"*8*";"*9*"}),0),ROW($A1))
    Please Login or Register  to view this content.

    F17=MATCH(LARGE(INDEX(COUNTIF($A$17:$C$25,{"*0*";"*1*";"*2*";"*3*";"*4*";"*5*";"*6*";"*7*";"*8*";"*9*"})+1/ROW(A$1:A$10),0),ROW($A1)),INDEX(COUNTIF($A$17:$C$25,{"*0*";"*1*";"*2*";"*3*";"*4*";"*5*";"*6*";"*7*";"*8*";"*9*"})+1/ROW(A$1:A$10),0),0)-1
    Please Login or Register  to view this content.
    Note: It will work only if there is no duplicates numbers with in the number

  5. #5
    Registered User
    Join Date
    10-02-2014
    Location
    indonesia
    MS-Off Ver
    2007
    Posts
    5

    Re: Range with blanks, count the string then automatically sorted by prequency

    well thanks again for your reply, but formula in E17=LARGE(INDEX(COUNTIF($A$17:$C$25,{"*0*";"*1*";"*2*";"*3*";"*4*";"*5*";"*6*";"*7*";"*8*";"*9*"}),0),ROW($A1)), almost same with formula =SUM(LEN(A$17:C$25)-LEN(SUBSTITUTE(A$17:C$25;F17;""))) (+CSE) then klick the short button.
    I think you are close for what I'm looking for..Simply, can you change the result,,return the value that I want to count start from largest value in this case 7,0,6,8,9,1,5,2,3,4 in F17 down to F26. Not the number of number. The rsult will be counted using =SUM(LEN(A$17:C$25)-LEN(SUBSTITUTE(A$17:C$25;F17;""))) (+CSE) in E17 down to E26. Thankyou
    Last edited by Siahaan; 09-22-2015 at 06:55 AM. Reason: something forgot to type

  6. #6
    Registered User
    Join Date
    10-02-2014
    Location
    indonesia
    MS-Off Ver
    2007
    Posts
    5

    Re: Range with blanks, count the string then automatically sorted by prequency

    self sorting.JPG
    some like this

  7. #7
    Registered User
    Join Date
    10-02-2014
    Location
    indonesia
    MS-Off Ver
    2007
    Posts
    5

    Re: Range with blanks, count the string then automatically sorted by prequency

    I've tried to post something but not sure what was wrong always failed, I just to try tell the forum that my problem is "solved" of course helped by nfsales formula..thank you.

+ 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. [SOLVED] Drop down list sorted with no blanks no dups
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 01-17-2015, 07:56 PM
  2. Replies: 2
    Last Post: 01-30-2014, 06:21 PM
  3. [SOLVED] How to Automatically Copy New Data into the next sheet and have it automatically sorted??
    By ReedDOT in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-24-2013, 10:50 AM
  4. Automatically and continuously removing blanks in data range
    By joshnathan in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-05-2012, 02:25 AM
  5. Replies: 3
    Last Post: 05-14-2012, 04:26 PM
  6. Replies: 8
    Last Post: 03-16-2011, 11:26 AM
  7. [SOLVED] Count Duplicates in a range - skip blanks
    By jhahes in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-08-2006, 04:50 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