+ Reply to Thread
Results 1 to 4 of 4

Count frequency from multiple columns, pivot table

  1. #1
    Registered User
    Join Date
    07-29-2014
    Location
    Israel
    MS-Off Ver
    2011
    Posts
    2

    Count frequency from multiple columns, pivot table

    The data looks something like this:

    wk2 wk3
    1 1
    2 1
    2 3
    2 3
    2 4
    4 4

    I want to count the frequency each number appears in both rows, but count them separately, as such

    num. wk2.. wk3
    1...... 1.... 2..
    2...... 4.... 0..
    3...... 0.... 2..
    4...... 1.... 2..

    How do we do that on a single pivot table?

    Thanks!
    Last edited by puay; 07-29-2014 at 07:31 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Count frequency from multiple columns, pivot table

    Maybe like this?
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    07-29-2014
    Location
    Israel
    MS-Off Ver
    2011
    Posts
    2

    Re: Count frequency from multiple columns, pivot table

    Hmm alright, that works fine. Thank You Glenn.

    What if the numbers are changed to words instead? And there are several columns and thousands of rows, with dozens of distinct words in each column. (Hypothetical scenario)
    And I do not know in advance what words there are.

    Given table:
    wk2 wk3
    as as
    as as
    ad as
    ap al
    al al
    al aq

    Table I hope to get:
    num. wk2.. wk3
    ad... 1.... 0..
    al... 2.... 2..
    ap... 1.... 0..
    aq... 0.... 1..
    as... 2.... 3..

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Count frequency from multiple columns, pivot table

    The question you asked is easy. Yes countif will do the job perfectly. You will see that you need a unique list of all combinations. That's easy enough if all your values are in a single column. The question you didn't ask "How do I assemble a unique list when my values are in multiple rows?" took longer to sort out.

    So... how is this?

    The two sorting columns are arrayformulas and need to be set using CTRL + SHIFT + ENTER and NOT just Enter

+ 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: 1
    Last Post: 07-16-2013, 01:54 AM
  2. Combining value count from multiple columns in pivot table
    By AFsimRA in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 02-05-2013, 11:29 AM
  3. Pivot Table - Count data From Multiple Columns
    By Ashraf1 in forum Excel General
    Replies: 21
    Last Post: 02-23-2011, 08:13 AM
  4. Replies: 5
    Last Post: 06-22-2010, 03:17 AM
  5. Replies: 0
    Last Post: 01-29-2010, 06:40 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