+ Reply to Thread
Results 1 to 6 of 6

Calculating Next Delivery Date Based on Conditions

Hybrid View

MollyLou15 Calculating Next Delivery... 11-16-2015, 12:40 PM
JohnTopley Re: Calculating Next Delivery... 11-16-2015, 12:51 PM
MollyLou15 Re: Calculating Next Delivery... 11-16-2015, 03:46 PM
MollyLou15 Re: Calculating Next Delivery... 11-16-2015, 04:10 PM
JohnTopley Re: Calculating Next Delivery... 11-16-2015, 04:38 PM
MollyLou15 Re: Calculating Next Delivery... 12-01-2015, 04:06 PM
  1. #1
    Registered User
    Join Date
    08-06-2015
    Location
    New York, NY
    MS-Off Ver
    2013
    Posts
    4

    Calculating Next Delivery Date Based on Conditions

    I'm looking to create a formula which will populate the next delivery date and time base on a set of conditions.

    Details:
    Worksheet 1 contains a listing of scheduled incoming containers, each with a unique container number, port of entry, delivery date, and time.

    Worksheet 2 is a worksheet used to track containers incoming to the facility. Columns include status, a unique container reference number, and port of entry.

    Need:
    Once the container's status changes to "Complete" on worksheet2, the formula needs to match the completed container with an incoming scheduled container.

    Caveats: Containers must go back to the same port they originated from. Also, the next delivery date should reflect the next date and time based on the current date and time (meaning cannot be in the past), as there can be multiple containers scheduled to come in, the same day/week.

    Attached are images of worksheet 1 & 2 for reference.Worksheet 1.JPG Worksheet 2.JPG

    Thanks in advance for any advice or suggestions you might have!

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,735

    Re: Calculating Next Delivery Date Based on Conditions

    Please post a small file with sample solutions.

  3. #3
    Registered User
    Join Date
    08-06-2015
    Location
    New York, NY
    MS-Off Ver
    2013
    Posts
    4

    Red face Re: Calculating Next Delivery Date Based on Conditions

    Hi John, attached is the file as requested.

  4. #4
    Registered User
    Join Date
    08-06-2015
    Location
    New York, NY
    MS-Off Ver
    2013
    Posts
    4

    Re: Calculating Next Delivery Date Based on Conditions

    Update: I've gotten far enough to get the date and time to populate in a small sampling within the attached. The issue remains of how to trigger it to only pull dates that are beyond the current date and time stamp, as I don't want it to pull past dates from the listing. I'm thinking I need to use the NOW function somehow.

    Thoughts?

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,735

    Re: Calculating Next Delivery Date Based on Conditions

    Something like this ...

    in D2

    =IF(A2="EMPTY",IF(INDEX('Worksheet 1'!C:C,MATCH(C2,'Worksheet 1'!B:B,0),0)>=TODAY(),INDEX('Worksheet 1'!C:C,MATCH(C2,'Worksheet 1'!B:B,0),0),"No container"))

    in E2

    =IFERROR(IF(A2="EMPTY",INDEX('Worksheet 1'!D:D,MATCH(D2,'Worksheet 1'!C:C,0),0)),"")

  6. #6
    Registered User
    Join Date
    08-06-2015
    Location
    New York, NY
    MS-Off Ver
    2013
    Posts
    4

    Re: Calculating Next Delivery Date Based on Conditions

    I've tried the formula above but keep getting the return of "FALSE"

    I've come up with the array formula below but need to add in an additional function to limit the results to match back to $C2. Any thoughts?

    =MIN(IF('Worksheet 1'!C:C>=TODAY(),'Worksheet 1'!C:C,""))

+ 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. Calculating sum based multiple conditions
    By doop4204 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-22-2015, 02:56 PM
  2. Calculating SUM based on certain conditions
    By Katiee in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-17-2014, 07:18 AM
  3. Calculating Percentages Based on Conditions
    By newbieexceldude in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-19-2011, 08:05 PM
  4. Calculating between two date/timestamps for service delivery
    By andrewjend in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-15-2011, 01:28 PM
  5. Calculating averages based on conditions
    By nmitch59 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-05-2009, 04:20 AM
  6. Calculating totals based off of conditions
    By Mindtrap in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-10-2007, 01:41 PM
  7. calculating Averages based upon conditions
    By Kfetterman1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-27-2006, 11:24 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