Results 1 to 7 of 7

complex SUMPRODUCT statements

Threaded View

  1. #1
    Registered User
    Join Date
    02-23-2008
    Posts
    3

    complex SUMPRODUCT statements

    This is my first post here and I was hoping to get some advice on solving a problem. I have in column A a series of short time intervals, then column B is simply a running total of those time intervals that adds up to 5min of data. Basically, I want to find the # of time intervals (#0f cells) in each minute. I wrote the following SUMPRODUCT functions to do this:

    =SUMPRODUCT(N(B1:B400>0),N(B3:B400<60))
    =SUMPRODUCT(N(B1:B400>60),N(B3:B400<120))
    =SUMPRODUCT(N(B1:B400>120),N(B3:B400<180)) ...etc until 300 seconds

    This function works well for the first 5min of data, but here is the problem. I have several 5min time chunks in the dataset which total 1 hour. What I would like to do is have the final 2 columns be a list of minutes (1-60) and the SUMPRODUCT statements I wrote above.


    Columns C-X will be more 5 min pairs similar in format to above
    Columns Y and Z will be the final columns and contain 1-60min and the SUMPRODUCT statements for each 5min block respectively.
    For example, minutes 6-10 would look like this
    =SUMPRODUCT(N(D1:D400>0),N(D1:D400<60))
    =SUMPRODUCT(N(D1:D400>60),N(D1:D400<120))
    =SUMPRODUCT(N(D1:D400>120),N(D1:D400<180)) ... etc until 300 sec

    So my question: Is there anyway to change my SUMPRODUCT statement so that I don't have to manually change the column in the formula for each 5min block? Thanks for any help you guys can provide.
    Last edited by cvillemtnman; 02-23-2008 at 05:17 PM.

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