+ Reply to Thread
Results 1 to 6 of 6

Generating list of common values and corresponding frequencies

  1. #1
    Registered User
    Join Date
    09-15-2014
    Location
    Kansas
    MS-Off Ver
    2011 (Mac)
    Posts
    14

    Generating list of common values and corresponding frequencies

    I need some help getting a list of common values between multiple columns and then how many times they show up. Basically I'd like to have Excel scan two or more columns at the same time and generate a list of common entries and their frequencies. I've included an example of the original excel file and the output that I would like. Any help is greatly appreciated. Thanks!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: Generating list of common values and corresponding frequencies

    I'd just combine all your columns into one column and then either remove duplicates or add subtotals based on count. Then you can do a simple =COUNTIF to get the totals for each value.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: Generating list of common values and corresponding frequencies

    In the attached file I've shown how you can do this with formulae - for convenience, I've done it in a second sheet of the same workbook. Columns A to D could be hidden if required.

    Hope this helps.

    Pete
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    09-15-2014
    Location
    Kansas
    MS-Off Ver
    2011 (Mac)
    Posts
    14

    Re: Generating list of common values and corresponding frequencies

    This is incredible! Thanks! One more question..can a column be added to list the columns that the frequencies are derived from? Thanks again.

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: Generating list of common values and corresponding frequencies

    Put the word "Columns" in G1 (without the quotes), and put this formula in G2:

    =TRIM(IF(COUNTIF(Sheet1!A:A,E2)>0,"A ","")&IF(COUNTIF(Sheet1!B:B,E2)>0,"B ","")&IF(COUNTIF(Sheet1!C:C,E2)>0,"C ","")&IF(COUNTIF(Sheet1!D:D,E2)>0,"D",""))

    Then copy down to G8.

    Hope this helps.

    Pete

    EDIT: if you want the names of the columns instead of the column letters, use "Certificate " instead of "A " in the first IF function, and similarly for the other IF functions - note the space at the end.

    Pete
    Last edited by Pete_UK; 11-05-2014 at 08:07 PM.

  6. #6
    Registered User
    Join Date
    09-15-2014
    Location
    Kansas
    MS-Off Ver
    2011 (Mac)
    Posts
    14

    Re: Generating list of common values and corresponding frequencies

    This is great. Thanks!

+ 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. Assigning numerical values to items in a list and generating a sum
    By talrico in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-03-2013, 06:08 AM
  2. Counting Unique Values and Generating an Ordered List
    By amerain in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-13-2013, 08:08 PM
  3. [SOLVED] List most common text values from a two-dimensional array
    By alienss in forum Excel General
    Replies: 2
    Last Post: 10-11-2012, 09:53 AM
  4. Generating a list of unique values based on specific conditions
    By Gobaith in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-05-2012, 11:35 AM
  5. Replies: 5
    Last Post: 01-27-2012, 02:37 PM

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