+ Reply to Thread
Results 1 to 3 of 3

Count only distinct observation based in ID - data in long format

  1. #1
    Registered User
    Join Date
    07-24-2013
    Location
    new york
    MS-Off Ver
    Excel 2003
    Posts
    62

    Count only distinct observation based in ID - data in long format

    I have a dataset of a company events. An event can have many participants, that is why my data is a long format. There can be many rows for a single event. I just would like to create a frequency table of event types (outdoors vs indoor). I create a pivot table but since my data in a long format it is over-counting the event types. Please see the attach excel spreadsheet for more information.

    Thank you very much in advance!
    Marvin
    Attached Files Attached Files

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Count only distinct observation based in ID - data in long format

    Add a helper column to the data (needs to be sorted first)
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor
    Join Date
    09-25-2015
    Location
    Nowy Tomysl, Poland
    MS-Off Ver
    2019, O365
    Posts
    398

    Re: Count only distinct observation based in ID - data in long format

    In ex 2007 and younger are simple (formula - COUNTIFS) or create a table based on the data model. But for your release, you can do this by using columns of the auxiliary, which count uniques (unsorted source data).
    Attached Files Attached Files

+ 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] about restructure repeated measure data into long format from wide format
    By sohel_for in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-18-2015, 01:10 AM
  2. Replies: 7
    Last Post: 01-29-2015, 10:14 AM
  3. Sum column and count distinct values in another based on multiple criteria
    By mike.greene in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 01-12-2015, 11:50 AM
  4. [SOLVED] Count distinct values where data changes everyday
    By jonathan.haynes in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-24-2013, 02:56 PM
  5. Monthly observation as observation per weekday?
    By Lv27 in forum Excel General
    Replies: 1
    Last Post: 04-10-2013, 02:49 PM
  6. Distinct count based on multiple criteria - am I on the right track?
    By thedunnyman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-26-2012, 07:36 AM
  7. Function to count based on date data format
    By nickelcell1 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-07-2010, 06:38 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