ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Proper syntex to use (https://www.excelbanter.com/excel-discussion-misc-queries/255922-proper-syntex-use.html)

Jannie

Proper syntex to use
 
I have a column of dates of wells that are drilling on given dates throughout
the year. There are also some dates that are in the same column that are rig
mob dates that I don't want to count those.
Example:
Date Drilled
1/1/2010
2/12/2010
3/10/2010
4/1/2010 Rig Mob
5/10/2010
6/12/2011
7/10/2012
8/5/2012 Rig Mob and so on for like 10 years

The wells are broken into groups by pads 8-10 wells a pad. Then the rig
moves to the next pad. I want to count how many wells drill on that pad in a
given year and ignore the date of the rig mob that's in the same column.
Let me know if you can help by giving me a formula to write this.

Luke M

Proper syntex to use
 
Perhaps something like this?

=SUMPRODUCT(--(B2:B100<"Rig Mob"),--(YEAR(A2:A100)=2010))

to count how many drillings occured in 2010.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"jannie" wrote:

I have a column of dates of wells that are drilling on given dates throughout
the year. There are also some dates that are in the same column that are rig
mob dates that I don't want to count those.
Example:
Date Drilled
1/1/2010
2/12/2010
3/10/2010
4/1/2010 Rig Mob
5/10/2010
6/12/2011
7/10/2012
8/5/2012 Rig Mob and so on for like 10 years

The wells are broken into groups by pads 8-10 wells a pad. Then the rig
moves to the next pad. I want to count how many wells drill on that pad in a
given year and ignore the date of the rig mob that's in the same column.
Let me know if you can help by giving me a formula to write this.



All times are GMT +1. The time now is 05:39 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com