+ Reply to Thread
Results 1 to 4 of 4

Determine how many units of a certain type failed within a given time period.

  1. #1
    Registered User
    Join Date
    09-09-2014
    Location
    Portland, OR
    MS-Off Ver
    2010
    Posts
    11

    Post Determine how many units of a certain type failed within a given time period.

    Hi All,

    I have a spreadsheet where I am trying to determine the number of failures per stock code over a period of time.

    Example:

    Stock code 503 had a total of 359 failures within the first 30 days of install.

    I then want to know how many failed between 31 and 60 days of install for the same stock code, then 61 - 90 days, and so forth in the "Summary" tab. I would like to split this up by stock code over the given period of time.

    The table on the right in the "Summary" tab, I filled one in by doing this manually but because I'm going to be getting new data daily or every other day, its cumbersome to have to repeat this tedious exercise when I suspect a simple formula would be able to resolve this automatically.

    Thanks for the help!

    Example.xlsx

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Determine how many units of a certain type failed within a given time period.

    I put the days in row 1 (i.e. 30,60,90, 180, etc)
    In C3 copied down

    =SUMPRODUCT(--(Data!$C$2:$C$300=$B3),--((Data!$B$2:$B$300-Data!$H$2:$H$300)<C$1))

    In D3 copied across and down

    =SUMPRODUCT(--(Data!$C$2:$C$300=$B3),--((Data!$B$2:$B$300-Data!$H$2:$H$300)<D$1))-SUM($C3:C3)
    Does that work for you?
    Is something else factored in to get your 359 failures or is that based on a bigger data set?
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    09-09-2014
    Location
    Portland, OR
    MS-Off Ver
    2010
    Posts
    11

    Re: Determine how many units of a certain type failed within a given time period.

    Hello ChemistB,

    Thanks for your help. The data i attached was only a subset....I've attached all the data.

    I used your formula above while changing the cells/etc. to the master sheet but my numbers show up negative/etc. Believe I've got a mistake in my formula but wanted you to review.

    Update: 10:33am PST

    I was able to get the data to look clean however I believe I am still missing some of the data from the Summary tab as the total sum in the summary table does not equal the total # of rows in the "High_AC_Alarms" tab.

    Also, is the formula correct for the last column where the "Failed >24 Months of Install" ? These are ones that should be greater than 24months.

    Thoughts?

    Example.xlsx
    Last edited by gshafiq; 11-13-2014 at 02:36 PM.

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Determine how many units of a certain type failed within a given time period.

    You're right, that last column should be

    =SUMPRODUCT(--(High_AC_Alarms!$P$2:$P$30000=Summary!B3),--((High_AC_Alarms!$I$2:$I$30000-High_AC_Alarms!$X$2:$X$30000)>=Summary!I1))

    On some of the others, you didn't have the cells anchored properly with your $.

    Your sheet is set to "Manual calculation" so you need to hit F9 to calculate. Attached is the corrected sheet. There are 731 rows of 503 on "High_AC_Alarms and the sum across row 3 in Summary is 731.
    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] Determine if time range falls within the day, evening, or an in between period
    By Jstark1956 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-09-2014, 05:07 PM
  2. [SOLVED] Complicated:Calculate time period based on no. of units sold + fluctuations within period
    By omaha.crab in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2012, 03:04 AM
  3. Replies: 3
    Last Post: 07-26-2011, 12:27 PM
  4. How to determine the number of units?
    By Eric in forum Excel General
    Replies: 8
    Last Post: 03-11-2006, 01:35 PM
  5. How to determine the number of units based on given condition?
    By Eric in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-06-2006, 05:25 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