+ Reply to Thread
Results 1 to 5 of 5

Fill End Date with Start date of the next Matching Entry

  1. #1
    Registered User
    Join Date
    11-19-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    5

    Fill End Date with Start date of the next Matching Entry

    Hello,
    New to posting to the forums, I have come here for assistance with other Excel issues and have had good luck in searching to find the results. I cannot find a way to do what I need with the attached worksheet (and it may be due to me searching for the wrong wording for what I need)

    In the attached workbook I need a formula that will auto fill the END Date (E) based on the next start date that matches Name (A) AND Region (B).

    ExcelDateHelpWorkbook.xlsx

    If the wording I am using is incorrect please let me know what I need to search by to figure this out.

    Thanks for any assistance given.
    Last edited by Whraith; 11-20-2013 at 12:07 AM.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Fill End Date with Start date of the next Matching Entry

    welcome to the forum, Whraith. so a combination of John & France would only appear twice & you want the end date of the 1st instance to be filled with the start date of the 2nd instance? try this in E2:
    =IF(COUNTIFS(A$2:A2,A2,B$2:B2,B2)=1,LOOKUP(2,1/(($A$2:$A$10=A2)*($B$2:$B$10=B2)),$D$2:$D$10),"")

    format to date

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    11-19-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Fill End Date with Start date of the next Matching Entry

    Thank you for the welcome and fast response.

    Quote Originally Posted by benishiryo View Post
    so a combination of John & France would only appear twice & you want the end date of the 1st instance to be filled with the start date of the 2nd instance?
    John & France can appear multiple times I only put two in the example I should have included more. Essentially after every job is finished and a new one is entered and I would need it to fill in the date (end date of the older one) with the start date of the new entry.

    The formula you gave only updates the first instance of the Match of John & France.

    Name Region Start End
    John France 11/1/2013 11/11/2013
    John France 11/11/2013 11/15/2013

    John England 11/6/2013 11/7/2013
    John England 11/7/2013
    Frank Germany 11/7/2013
    John France 11/15/2013
    Last edited by Whraith; 11-19-2013 at 09:54 PM.

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Fill End Date with Start date of the next Matching Entry

    maybe any of these array formulas:
    =IFERROR(INDEX(D3:D$10,MATCH(A2&B2,A3:A$10&B3:B$10,0)),"")

    or:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

  5. #5
    Registered User
    Join Date
    11-19-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Fill End Date with Start date of the next Matching Entry

    The second worked for what I needed. Thank you for your assistance!

+ 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. [SOLVED] Fill Cell Color based on start & end date.
    By hecgroups in forum Excel General
    Replies: 2
    Last Post: 10-04-2013, 10:14 AM
  2. Fill Range based on Start/End Date
    By Regenbui in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-20-2013, 08:02 AM
  3. Replies: 1
    Last Post: 10-02-2012, 02:42 PM
  4. Auto-fill adjacent cells based on start/stop date?
    By jeffreyray in forum Excel General
    Replies: 3
    Last Post: 10-03-2011, 06:49 PM
  5. Using VBA to fill col with dates based on start and end date
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-22-2011, 11:58 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