+ Reply to Thread
Results 1 to 4 of 4

Data Analysis Problem

Hybrid View

  1. #1
    Registered User
    Join Date
    05-23-2012
    Location
    Leicester, England
    MS-Off Ver
    Excel 2007
    Posts
    1

    Data Analysis Problem

    Good morning everybody,

    I have been wrestling with this issue for a while and joined this forum to see if anybody can help - I would be very grateful.

    I have attached a sample spreadsheet with the type of problem that I am trying to analyse. I have data associated with specific days and the spreadsheet that I am trying to analyse can have any number of days with each day having any number of entries. What I would like to do is to find for each individual day the number of occurences of say "-8".

    What I would like to be able to create is a report with Day, Number of Entries in Day, Number of Occurences of "-8".

    As a bonus I would like to know if the occurnces of -8 are sequential and if so how long is the sequence.

    I have had a complete blank as far as Excel being able to anlyse this and have thought that I will need to use, say, Python for it. I would appreciate any help that can be provided.

    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Data Analysis Problem

    hi GapWolf, welcome to the forum. see if the 2 pivot tables help u. i have no idea how to find if the number of sequential occurrences though
    Attached Files Attached Files

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Data Analysis Problem

    1) Highlight column A
    2) Apply a Data > Sort & Filter: Advanced filter with these settings:

    Copy to another location
    Copy to: F1
    [x] Unique Values only


    Now you have the unique dates in column F.

    2) Add the titles in G1:I1

    Count
    -8
    Seq

    3) Formulas:

    G2: =COUNTIF(A:A, F2)
    H2: =COUNTIFS(A:A, F2,B:B, $H$1)
    I2: =SUMPRODUCT(--($A$2:$A$59=F2), --($B$2:$B$59=$H$1), --($B$2:$B$59=$B$1:$B$58))

    Notice that last formula, the last range is offset by one row for the sequential comparisons.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Data Analysis Problem

    Thanks for the feedback. If that takes care of your need, please select Thread Tools from menu above and set this topic to SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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