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.
Bookmarks