Need Formula that Calculates Sums of Multiple Cycles Within Column

AJRIGNEY

New Member
Joined
Jun 6, 2012
Messages
3
Hey everyone. I'm currently a student and my studies have nothing to do with excel, but I have am in the middle of an internship where all I do is work with spreadsheets. Currently, I'm working with a paper company in Alabama, where they asked me to create a spreadsheet that measures efficiency. While I've made great progress on the project, I just came up on a little snag and was wondering if you might be able to help.

I was asked to calculate what is known as "cooktime" per every cycle (each cycle culminates in what is known as "blowtime". "Cooktime" refers to the total number of minutes measured from when pressure reaches a certain point until the blowtime.

A simple version of what I'm trying to do looks like this (Same example in .xls attachment):


A B C D
TIME HFACTOR BLOWPT COOKTIME
0:00 0.63457 NOBLOW
0:01 1.23741 NOBLOW
0:02 2.37568 NOBLOW
0:03 4.79514 NOBLOW
0:04 6.12894 NOBLOW
0:05 12.29853 NOBLOW
0:06 39.79284 BLOW
0:07 39.79284 BLOW
0:08 39.79284 BLOW
0:09 0.76581 NOBLOW
0:10 1.45827 NOBLOW
0:11 3.78290 NOBLOW
0:12 11.73659 NOBLOW
0:13 32.48762 NOBLOW
0:14 49.31267 BLOW
0:15 49.31267 BLOW

Essentially, I need a formula that will count "A" when "B" is >5, until C="BLOW" per each cycle, as there will be around 60

If there's any possible way you could help me, or if you think there is an easier way to do this, I'd be incredibly grateful.

Thanks for your time.

Andrew
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Hey everyone. I'm currently a student and my studies have nothing to do with excel, but I have am in the middle of an internship where all I do is work with spreadsheets. Currently, I'm working with a paper company in Alabama, where they asked me to create a spreadsheet that measures efficiency. While I've made great progress on the project, I just came up on a little snag and was wondering if you might be able to help.

I was asked to calculate what is known as "cooktime" per every cycle (each cycle culminates in what is known as "blowtime". "Cooktime" refers to the total number of minutes measured from when pressure reaches a certain point until the blowtime.

A simple version of what I'm trying to do looks like this (Same example in .xls attachment):


A B C D
TIME HFACTOR BLOWPT COOKTIME
0:00 0.63457 NOBLOW
0:01 1.23741 NOBLOW
0:02 2.37568 NOBLOW
0:03 4.79514 NOBLOW
0:04 6.12894 NOBLOW
0:05 12.29853 NOBLOW
0:06 39.79284 BLOW
0:07 39.79284 BLOW
0:08 39.79284 BLOW
0:09 0.76581 NOBLOW
0:10 1.45827 NOBLOW
0:11 3.78290 NOBLOW
0:12 11.73659 NOBLOW
0:13 32.48762 NOBLOW
0:14 49.31267 BLOW
0:15 49.31267 BLOW

Essentially, I need a formula that will count "A" when "B" is >5, until C="BLOW" per each cycle, as there will be around 60

If there's any possible way you could help me, or if you think there is an easier way to do this, I'd be incredibly grateful.

Thanks for your time.

Andrew
Hallo and welcome.
How long is one cycyle?
in this example to result will in each BLOW row in column C?
Could you give an example of your result?
 
Upvote 0
Thanks for responding, Robert. There is actually no standard duration for each cycle, which makes it slightly more challenging.

Let me try to break it down:

CYCLE STARTS:"NOBLOW" HAS AN HFACTOR > 5
CYCLE ENDS: THE "NOBLOW" IMMEDIATELY BEFORE THE SUBSEQUENT "BLOW"

I need the total number of minutes in each cycle, but as I noted earlier, that sum will vary (as it is dependent on the HFactor, or pressure).

In the example, there should be 2 cycles each with a duration of 2 minutes.
 
Upvote 0
Would this work for you?
Excel Workbook
ABCDEFGH
1TIMEHFACTORBLOWPTCOOKTIME**Cycle*
200:000.63457NOBLOW***100:36
300:011.23741NOBLOW***202:00
400:022.37568NOBLOW*****
500:034.79514NOBLOW*****
600:046.12894NOBLOW*****
700:0512.29853NOBLOW*****
800:0639.79284BLOW*****
900:0739.79284BLOW*****
1000:0839.79284BLOW00:36****
1100:090.76581NOBLOW*****
1200:101.45827NOBLOW*****
1300:113.7829NOBLOW*****
1400:1211.73659NOBLOW*****
1500:1332.48762NOBLOW*****
1600:1449.31267BLOW*****
1700:1549.31267BLOW02:00****
Sheet1
 
Upvote 0
Sorry Robert, but that's not quite what I need. I've been working on the formula with one of my programming friends, and we were close to coming up with a solution but then we hit another snag. I wish I could add an attachment, but the formula for D2 is this:

{=IF(AND(C3=$I$3,C4=$J$3),COUNTIF(B3:INDEX(B$2:$B3,IF(ISNA(MATCH(1,1/(C$2:$C3=$J$3))+1),1,MATCH(1,1/(C$2:$C3=$J$3))+1)),$I$2),"")}

Unfortunately, when I plug in this formula to my spreadsheet, it works only for the first cycle. The next 3-4 cycles are off by one, and after that, the sum continues to increase in error (margin of error eventually reaches 1962 when I get around row 10,000.

Unfortunately, I can't show you what I mean without an attachment or a link. I tried uploading through google docs, but that screwed up the data.
 
Upvote 0

Forum statistics

Threads
1,214,429
Messages
6,119,433
Members
448,897
Latest member
ksjohnson1970

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top