+ Reply to Thread
Results 1 to 3 of 3

Finding final (I.e. where the field stops producing oil/gas) production date

  1. #1
    Registered User
    Join Date
    07-23-2014
    Location
    London
    MS-Off Ver
    Windows 7 enterprise
    Posts
    1

    Finding final (I.e. where the field stops producing oil/gas) production date

    Hi guys,

    Bit of a newbie here;

    Basically, I have a bunch of oil production data for an oil company's fields, with the years these fields produce in (if they produce any oil over the years forecasted)

    Basically, I need to find some sort of way of creating a formulae that allows me to show which date these oil/gas fields stop producing on.

    So the dates are from 2014 until 2033, but say the fields didn't produce anything over this time period then it's irrelevant, and the same goes for if the field continues to produce in the year 2033.
    Last edited by osmosis786; 07-23-2014 at 12:15 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Finding final (I.e. where the field stops producing oil/gas) production date

    =INDEX($E$1:$AR$1,1,MAX(IF(E3:AR3<>0,COLUMN(E3:AR3)))-COLUMN(D3))

    Its an array formula so CTRL SHIFT & ENTER
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Finding final (I.e. where the field stops producing oil/gas) production date

    In X2 and copy down,

    =IF(COUNTIF(D2:W2, ">0")=0, "Never produced", IF(W2>0, "Still producing", LOOKUP(2, 1/(D2:W2>0), $D$1:$W$1)))

    T
    U
    V
    W
    X
    1
    2030
    2031
    2032
    2033
    2
    0
    0
    0
    0
    Never produced
    3
    0.219
    0.164
    0
    0
    2031
    4
    0
    0
    0
    0
    Never produced
    5
    0
    0
    0
    0
    2026
    6
    0
    0
    0
    0
    Never produced
    7
    0
    0
    0
    0
    2022
    8
    0
    0
    0
    0
    Never produced
    9
    0
    0
    0
    0
    Never produced
    10
    0
    0
    0
    0
    Never produced
    11
    0
    0
    0
    0
    Never produced
    12
    0
    0
    0
    0
    Never produced
    13
    0
    0
    0
    0
    2027
    14
    0.398
    0.32
    0.221
    0
    2032
    15
    0.281
    0.223
    0.152
    0
    2032
    16
    2.313
    2.097
    1.881
    1.665
    Still producing
    17
    0.987
    0.895
    0.803
    0.71
    Still producing
    Last edited by shg; 07-23-2014 at 11:40 AM.
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Adding one TextBox with weeks to text box with date to give final Date
    By davidloops in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-21-2013, 08:25 PM
  2. replacing lowest test grade with final if final is higher formula help
    By colbyclay in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-16-2012, 02:48 AM
  3. Finding the final occurence of a space in a string
    By barts185 in forum Excel General
    Replies: 2
    Last Post: 01-12-2012, 09:06 PM
  4. Finding the highest producing combination within a budget.
    By jimmy_fowler in forum Excel General
    Replies: 13
    Last Post: 09-22-2011, 01:05 PM
  5. Finding the final word in a string
    By IainT in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-01-2007, 08:12 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1