+ Reply to Thread
Results 1 to 4 of 4

Re position ranges based on criteria (group number and date)

  1. #1
    Registered User
    Join Date
    06-26-2018
    Location
    Perth
    MS-Off Ver
    2016
    Posts
    18

    Re position ranges based on criteria (group number and date)

    Hi all,

    I am trying solve what I though was a straightforward problem.... hoping someone out there in the community knows this.

    In Sheet 1, I have production data by group that is normalised back to day 0. i.e. all groups' production rate start from the same day 0.

    In Sheet 2, I have rows by date and columns that represent different wells which are associated with a group (row 2) and also a first date of production (row 4). These are my two criteria (group and first date).

    What am I trying to achieve? Using "Downer_1" well in sheet two as an example, it is in group 1 and a first production date of 24/11/2018. Therefore, I would like to take the corresponding data from Sheet one in Column B, and output in Sheet 2 starting at the date 24/11/2018.

    I would then like to do this for every well in Sheet 2's output cells. Basically a case choosing which data is appropriate for the well column based on which group it is in, then shifting this data vertically based on the date of first production.

    Please let me know if I am not being clear enough.

    Thank you in advance!

    Jackson
    Attached Files Attached Files
    Last edited by Jackson2806; 12-17-2019 at 12:37 AM. Reason: Solved

  2. #2
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,823

    Re: Re position ranges based on criteria (group number and date)

    Try this in cell C8, and the copy down and across:
    =IF(C$4>$B8,"",INDEX(OFFSET('Sheet 1'!$B$3:$B$481,0,MATCH(C$2,'Sheet 1'!$B$2:$H$2,0)-1),MATCH($B8-C$4,'Sheet 1'!$A$3:$A$481,0)))

    File attached.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    06-26-2018
    Location
    Perth
    MS-Off Ver
    2016
    Posts
    18

    Re: Re position ranges based on criteria (group number and date)

    GregB11.... excellent! Thanking you very much - this does exactly what I need on a much larger scale.

  4. #4
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,823

    Re: Re position ranges based on criteria (group number and date)

    You're welcome. Glad it worked.

+ 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. HELP! Counting number of items based on criteria and date
    By shredraldz in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-04-2019, 08:36 PM
  2. Inputting a number based on position and skipping to next date
    By maym in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-25-2017, 02:42 AM
  3. Identify the dates or date ranges applicable based on a criteria
    By tiggi in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-28-2016, 05:45 AM
  4. formula to identify week number based on date ranges and add values
    By Lmendez in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 02-18-2014, 12:55 PM
  5. Replies: 6
    Last Post: 11-26-2013, 05:21 PM
  6. [SOLVED] Count number of dates between two date ranges, with two criteria
    By steve@stanley in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-30-2013, 10:44 AM
  7. [SOLVED] find missing date on every group date list based on range and criteria
    By k1dr0ck in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-25-2013, 01:26 AM

Tags for this Thread

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