Hello, all! I have a project that seems a little out of my league; so I figured who better to ask than the best!
Okay... Explanation time. I need a formula to determine whether or not a well in my spreadsheet is elegible for compensation - just a TRUE or FALSE. Sounds easy enough, no? Wait for it. These are the rules for compensation eligibility:
The first event (Well ID ends in /00) is drilled after 1 Nov 1998
and the date of the associated mineral lease is after 1 May 1996.
OR (now here's where I'm getting stumped)...
if any subsequent event of a non-compensated well is
Drilled after 1 Nov 1998
Associated mineral lease date is after 1 May 1996
and deepened past a certain formation.
Information:
This is intended to be a working spreadsheet, with new wells being added as they are drilled. Currently there are over 16,000 wells for me to work with.
Well IDs in my spreadsheet look like this: ###/##-##-###-##W4/0#
They are all padded with zeroes. The event is the last two digits. 00 is the first, 02 is the second, 03 the third, and so on. No wells in my jurisdiction have more than 06 events. All Well IDs are located in column B.
Drill date is located in column N.
Associated mineral lease date is located in column U.
Formation name is located in column S, and a list of the formations deep enough to be elegible for compensation are on a seperate worksheet, Formation list, A2:A33.
The column I am entering this formula into is column V.
Thanks a lot for your time; I have tryed for days using complex IF and VLOOKUP statements to no avail. My first attempt was a little over 2500 characters! Also I am running 2003, if that makes a difference.
Good luck! If you have any questions, feel free to ask!
*reminder* Only one event of a well can be eligible for compensation, and it should be the earliest event eligible.
-Skip
Okay... Explanation time. I need a formula to determine whether or not a well in my spreadsheet is elegible for compensation - just a TRUE or FALSE. Sounds easy enough, no? Wait for it. These are the rules for compensation eligibility:
The first event (Well ID ends in /00) is drilled after 1 Nov 1998
and the date of the associated mineral lease is after 1 May 1996.
OR (now here's where I'm getting stumped)...
if any subsequent event of a non-compensated well is
Drilled after 1 Nov 1998
Associated mineral lease date is after 1 May 1996
and deepened past a certain formation.
Information:
This is intended to be a working spreadsheet, with new wells being added as they are drilled. Currently there are over 16,000 wells for me to work with.
Well IDs in my spreadsheet look like this: ###/##-##-###-##W4/0#
They are all padded with zeroes. The event is the last two digits. 00 is the first, 02 is the second, 03 the third, and so on. No wells in my jurisdiction have more than 06 events. All Well IDs are located in column B.
Drill date is located in column N.
Associated mineral lease date is located in column U.
Formation name is located in column S, and a list of the formations deep enough to be elegible for compensation are on a seperate worksheet, Formation list, A2:A33.
The column I am entering this formula into is column V.
Thanks a lot for your time; I have tryed for days using complex IF and VLOOKUP statements to no avail. My first attempt was a little over 2500 characters! Also I am running 2003, if that makes a difference.
Good luck! If you have any questions, feel free to ask!
*reminder* Only one event of a well can be eligible for compensation, and it should be the earliest event eligible.
-Skip