SaltyDalty
New Member
- Joined
- Jun 17, 2013
- Messages
- 2
<o>Hey everyone! So I am having some issues creating a formula that will add (sum) the first 30 cells, if they meet the criteria, and then stop after 30 cells, that have meet the criteria, have been added (summed). This is what I am trying to do; I am currently working on a daily production chart for the amount of oil each oil rig produces. I have the daily production data but I need to create a table that shows the amount of oil produced in 30 day, 60 day, 90 day, and so on. However, the hard part is that we only want to count the days that the oil rig was producing oil and exclude the days that it was broken/down/not producing. Here is an example of what the chart looks like:[TABLE="width: 500"]
<tbody>[TR]
[TD]Days
[/TD]
[TD]Production (BBL)
[/TD]
[/TR]
[TR]
[TD]1/1/13
[/TD]
[TD]10
[/TD]
[/TR]
[TR]
[TD]1/2/13
[/TD]
[TD]20
[/TD]
[/TR]
[TR]
[TD]1/3/13
[/TD]
[TD]15
[/TD]
[/TR]
[TR]
[TD]1/4/13
[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]1/5/13
[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]1/6/13
[/TD]
[TD]10
[/TD]
[/TR]
[TR]
[TD]1/7/13
[/TD]
[TD]30
[/TD]
[/TR]
</tbody>[/TABLE]
So if this is the data I wanted to create a formula that would sum only if the production was greater then or equal to 10 BBL (barrels) a day and only add the first, in this case, 3 cells (days) that meet the criteria. I know I could do the =sum(B2:B4) and get my answer but the problem is that we have 16 oil rigs and they have over 1095 days (rows) of data for each one. No only that but I need show how much oil was produced (as long as it was no broken) all the way up to 720 days based on 90 day increments. Also, not every oil rig was broken at the same time so I cant just do a sum of the first 30 days and copy and paste that formula into each of the other 16 oil rigs. </o> so the Sosoasdf
So I was trying to create a formula that would Sum the first 30 cells (days) that had a daily production of 10 BBLs or more and would stop after it had added 30 values. I am sorry if this is confusing at all. Its really had to explain in words but if you need clarification just let me know. Thank you so much!!!!! This will make my life a million times easier.
<tbody>[TR]
[TD]Days
[/TD]
[TD]Production (BBL)
[/TD]
[/TR]
[TR]
[TD]1/1/13
[/TD]
[TD]10
[/TD]
[/TR]
[TR]
[TD]1/2/13
[/TD]
[TD]20
[/TD]
[/TR]
[TR]
[TD]1/3/13
[/TD]
[TD]15
[/TD]
[/TR]
[TR]
[TD]1/4/13
[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]1/5/13
[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]1/6/13
[/TD]
[TD]10
[/TD]
[/TR]
[TR]
[TD]1/7/13
[/TD]
[TD]30
[/TD]
[/TR]
</tbody>[/TABLE]
So if this is the data I wanted to create a formula that would sum only if the production was greater then or equal to 10 BBL (barrels) a day and only add the first, in this case, 3 cells (days) that meet the criteria. I know I could do the =sum(B2:B4) and get my answer but the problem is that we have 16 oil rigs and they have over 1095 days (rows) of data for each one. No only that but I need show how much oil was produced (as long as it was no broken) all the way up to 720 days based on 90 day increments. Also, not every oil rig was broken at the same time so I cant just do a sum of the first 30 days and copy and paste that formula into each of the other 16 oil rigs. </o> so the Sosoasdf
So I was trying to create a formula that would Sum the first 30 cells (days) that had a daily production of 10 BBLs or more and would stop after it had added 30 values. I am sorry if this is confusing at all. Its really had to explain in words but if you need clarification just let me know. Thank you so much!!!!! This will make my life a million times easier.