+ Reply to Thread
Results 1 to 3 of 3

perform a calculation on subsets of data of varying length

  1. #1
    Registered User
    Join Date
    12-15-2009
    Location
    Houston, TX, USA
    MS-Off Ver
    Excel 2007
    Posts
    86

    perform a calculation on subsets of data of varying length

    I have a dataset that is sorted by Part Number (column A). For each part number I have some times listed in days (columns C & E). At each break in part number I would like to perform a set of calculations (columns H through L). The calculation desired is listed in the column header. Column L is the real "magic number" -- columns H through K are means to an end.

    Due to the varying lengths of the subsets (i.e., PN 101853 has 2 rows; PN 104537 has 15 rows) I haven't been able to write a macro to successfully perform the calculations for each subset. Additionally if a line only has one record, the number in column L will be zero (you cannot have a standard deviation of one data point).

    Please help me!
    Attached Files Attached Files
    Last edited by smokebreak; 05-18-2010 at 12:36 PM.

  2. #2
    Registered User
    Join Date
    12-15-2009
    Location
    Houston, TX, USA
    MS-Off Ver
    Excel 2007
    Posts
    86

    Re: perform a calculation on subsets of data of varying length

    Here is what I am using now. It works but it is not very elegant. Can someone help to clean it?

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-15-2009
    Location
    Houston, TX, USA
    MS-Off Ver
    Excel 2007
    Posts
    86

    Re: perform a calculation on subsets of data of varying length

    Bump for a more elegant answer?

+ 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