+ Reply to Thread
Results 1 to 3 of 3

Finding the duplicate occurrences and displaying their frequency in descending order

  1. #1
    Forum Contributor
    Join Date
    12-02-2013
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    112

    Lightbulb Finding the duplicate occurrences and displaying their frequency in descending order

    Hi,

    i have a set of data in excel as followes:

    A B
    16 12
    14 1
    5 3
    16 43
    1 14
    3 5
    5 3
    the desired solution that i am looking to get in c and d and e is as followes:
    C D E
    3 5 3
    14 1 2


    in the above example at the top there is 3 in c1 and 5 in d1 because it has occurred 3 times in the data also their frequency is displayed in e1 as 3 because it has occurred three times and c2 is 14 and d2 is 1 because it has occurred 2 times also their frequency is displayed in e2 as 2 as it has occurred 2 times in the data.

    I have also attached a workbook to receive some solutions , so hoping to receive genuine response from serious contributors.

    Thanks
    Attached Files Attached Files
    Last edited by LAVA2; 01-24-2021 at 03:19 PM.

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Finding the duplicate occurrences and displaying their frequency in descending order

    C2:D2
    =INDEX(A$1:A$7,SMALL(IF(COUNTIFS($A$1:$A$7,$A$1:$A$7,$B$1:$B$7,$B$1:$B$7)+COUNTIFS($A$1:$A$7,$B$1:$B$7,$B$1:$B$7,$A$1:$A$7)=$E2,ROW($A$1:$A$7)),COUNTIFS($E$2:$E2,$E2)))

    E2
    =LARGE(COUNTIFS($A$1:$A$7,$A$1:$A$7,$B$1:$B$7,$B$1:$B$7)+COUNTIFS($A$1:$A$7,$B$1:$B$7,$B$1:$B$7,$A$1:$A$7),IF(ROW(E2)=1,1,1+SUM($E1:E1)))

    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
    Attached Files Attached Files
    Last edited by Bo_Ry; 01-24-2021 at 04:26 PM. Reason: corection

  3. #3
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Finding the duplicate occurrences and displaying their frequency in descending order

    Hi
    With helper columns:

    C1 and down
    Please Login or Register  to view this content.
    D1 and down:
    Please Login or Register  to view this content.
    E1 and down:
    Please Login or Register  to view this content.
    G1 and down:
    Please Login or Register  to view this content.
    H1 and down:
    Please Login or Register  to view this content.
    I1 and down:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Limor_OP; 01-24-2021 at 04:21 PM.

+ 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. Replies: 5
    Last Post: 11-12-2019, 10:58 AM
  2. [SOLVED] How do I determine Frequency of occurrences per each Calendar Date?
    By Zenmusicman in forum Excel General
    Replies: 18
    Last Post: 07-24-2019, 01:36 PM
  3. [SOLVED] Finding and arranging rows then displaying their frequency in descending order:
    By LAVA2 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-19-2018, 05:44 AM
  4. Sorting in descending order and show duplicate values
    By cceze in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-19-2012, 09:33 AM
  5. Sort in descending order
    By shahcu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-28-2008, 03:01 AM
  6. displaying data in descending order (automatically)
    By mrmiddleman in forum Excel General
    Replies: 5
    Last Post: 10-30-2007, 05:47 PM
  7. autofill in descending order
    By suzzmenn in forum Excel General
    Replies: 1
    Last Post: 09-15-2007, 01:11 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