+ Reply to Thread
Results 1 to 4 of 4

Can't quite just use a pivot table for the summary I need...

  1. #1
    Registered User
    Join Date
    03-17-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    2

    Can't quite just use a pivot table for the summary I need...

    Hi, I have about 150,000 rows of lab sample data for a project. Each row contains one sample parameter, and there are 15-25 sample parameters per overall sample. Each sample parameter has a status (Normal, Caution, or Critical) assigned to it.

    Now, the problem is that the overall sample takes on the status of the most severe sample parameter. There is, however, no separate entry for the overall sample. I need a count of the number of Normal, Caution, and Critical overall samples for each month in history. I can easily use a pivot table to summarize the number of sample parameters, but I have no idea how to get excel to analyze the status of each sample parameter within each overall sample, and then only count the most severe one.

    Attached is an example with the data that I have, and what I need to accomplish, along with a few more clarifying comments. Note that I did this example on my computer at home with Excel 2008 for Mac, but I have Excel 2010 on Windows 7 at work. I know my way around Excel's functions very well, but don't know VBA, so I was considering using a CSV with a little C program to do this. The problem is that I don't know if the permissions on my work computer will even let me run a C program.

    Thanks in advance for any help!
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Can't quite just use a pivot table for the summary I need...

    Hi and welcome to the forum

    Try this, copied down and across...
    =COUNTIFS($B:$B,$G15,$E:$E,"Normal")

    You can either then just change "Normal" to the next category, or change each heading to just Normal Caution etc, and then reference the heading
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Can't quite just use a pivot table for the summary I need...

    deleted server-induced duplicate post
    Last edited by FDibbins; 03-17-2013 at 11:59 PM.

  4. #4
    Registered User
    Join Date
    03-17-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Can't quite just use a pivot table for the summary I need...

    Hi FDibbins,

    That solution essentially did the same thing as the pivot table. It didn't group the sample parameters into samples like I needed. But it's fine, I figured out a little bit of a roundabout solution with some helper columns and got it down to the pivot table that I needed to generate.

    Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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