+ Reply to Thread
Results 1 to 4 of 4

Using a Pivot Table to Analyze Frequency Distrubution

  1. #1
    Registered User
    Join Date
    05-15-2020
    Location
    North America
    MS-Off Ver
    Office365 (v2209)
    Posts
    29

    Using a Pivot Table to Analyze Frequency Distrubution

    I'm trying to figure out how to use a pivot table to generate a list of frequency distributions. This seems so simple but I can't figure it out. I'm analyzing eye disease data. Each row is a patient. There are columns of disease pathology. For each patient, there's one or more diseases.

    I then want to show how many times each disease mentioned shows up in the data. I attached a sample file. Of course I can do this with countif() but can it be done with a pivot table? The disease data is dynamic. To do this with countif(), I'd always have to have the list of unique diseases. Attached is a simplified file. The actual one has over 50,000 rows and a lot more diseases.

    Thanksl!
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Using a Pivot Table to Analyze Frequency Distrubution

    If you are willing to use Power Query then here is the Mcode

    Please Login or Register  to view this content.
    Excel 2016 (Windows) 32 bit
    F
    G
    H
    21
    Value
    Count
    Custom
    22
    Diabetic Retinopathy
    6
    0.375
    23
    AMD - Intermediate
    2
    0.125
    24
    Macular Edema
    2
    0.125
    25
    Hyp. Retinopathy
    2
    0.125
    26
    Chordial Nevus
    2
    0.125
    27
    AMD-DRY
    1
    0.0625
    28
    AMD - Early
    1
    0.0625
    Sheet: Sheet1

    Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").

    It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.

    - Follow this link to learn how to install Power Query in Excel 2010 / 2013.

    - Follow this link for an introduction to Power Query functionality.

    - Follow this link for a video which demonstrates how to use Power Query code provided.
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    05-15-2020
    Location
    North America
    MS-Off Ver
    Office365 (v2209)
    Posts
    29

    Re: Using a Pivot Table to Analyze Frequency Distrubution

    Thanks! I was thinking about doing this in a PowerQuery but thougth that it was possible in a Pivot. I guess not.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Using a Pivot Table to Analyze Frequency Distrubution

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. Using Pivot Table to analyze Purchasing Data
    By Trade*1 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-06-2021, 08:27 PM
  2. Replies: 0
    Last Post: 04-27-2021, 06:49 PM
  3. Selecting Item to analyze with a pivot table
    By kfs in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-25-2021, 12:32 PM
  4. analyze in pivot table
    By chubbychub in forum Excel Charting & Pivots
    Replies: 15
    Last Post: 02-15-2018, 02:36 AM
  5. Analyze production, if produced last year, in pivot-table
    By Simonius in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-27-2015, 09:56 AM
  6. Replies: 1
    Last Post: 06-08-2006, 09:45 PM
  7. Using Pivot Table to analyze multiple answers
    By wengyee in forum Excel General
    Replies: 1
    Last Post: 03-09-2005, 09:06 AM

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