+ Reply to Thread
Results 1 to 4 of 4

adding 3 rows of multiple drilling wells

  1. #1
    Registered User
    Join Date
    06-14-2010
    Location
    Calgary, alberta
    MS-Off Ver
    Excel 2003
    Posts
    7

    adding 3 rows of multiple drilling wells

    so right now i have a spreadsheet that looks like this:

    well...........monthly production...........column3......column4..........3month prod
    101...........6..........................................-.................. -
    101...........3..........................................-...................-
    101...........4..........................................-.................. -
    101...........5..........................................- ................. -
    102...........11........................................- ..................-
    102...........3..........................................- ..................-
    102...........0..........................................- ................. -


    i want to add only the first 3 months of production for each well. So i would want cell (2,5) to read 13 and cell (6,5) to read 14. My problem lies in the fact that each well may have as many as 100 months of production etc and i only want the first 3 months.

    i'm not too good with macros cause i'm so used to c++. Any help would be greatly appreciated

  2. #2
    Forum Contributor
    Join Date
    08-11-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    149

    Re: adding 3 rows of multiple drilling wells

    First off, let's fix your cell naming so you conform to Excel... Columns have letters, rows have numbers... so what you mean (in Excel-speak) are E2 and E6.

    Try this formula (put it in E2 and copy it down for the rest of the column):=IF(AND(A2<>A1,A2=A3,A2=A4),SUM(B2:B4),"")

    Basically it's saying, if this row is a different well than the last one and is the same as the next two then sum three rows of data. Note this will return a blank for a well w/ less than three rows of data.

  3. #3
    Registered User
    Join Date
    06-14-2010
    Location
    Calgary, alberta
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: adding 3 rows of multiple drilling wells

    thanks so much
    works perfectly...just a question, what does the "<>" mean?
    Does it mean not equal to?

  4. #4
    Forum Contributor
    Join Date
    08-11-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    149

    Re: adding 3 rows of multiple drilling wells

    Correct, not equal to.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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