+ Reply to Thread
Results 1 to 5 of 5

Attempting to create a formula for work that contains specific criteria for the day-to-day

  1. #1
    Registered User
    Join Date
    01-14-2020
    Location
    Texas
    MS-Off Ver
    Excel for Office 365
    Posts
    19

    Attempting to create a formula for work that contains specific criteria for the day-to-day

    Hello All,

    First post, but been reading a lot of threads in the past years to get help on certain functions and how to use them properly. I have a formula that I'm trying to create but am unable to link it correctly with all the formulas I am aware of.

    Here is the issue. For a day to day schedule, the day starts at 0500 and ends at 1500 (3:00 PM). In my work there are many several steps in the process, some short and some long. My end goal is this:

    An employee puts the Start time of the process to begin. This start time can be anytime between 0500 - 1500, the employee selects the Step they are starting at (from a drop menu), and the Sum of the times of the steps plus the Starting time will generate an end time before or at 1500 which will be displayed as the last step possible from the list A-Z.

    For example: The day begins at 0500, but I begin STEP F at 1045. I would be able to get to STEP H before my shift was complete.

    If this seems possible, this would be sooooooooooooooo helpful.

    I thank anyone and everyone who has any input. This may seem so easy to the experts, but the time addition with the end time constraint is what is making it difficult for me.

    Thank y'all!

    **please excuse the fact that I typed 1130 in the start time. It should be 1045.
    Attached Files Attached Files
    Last edited by bcastle; 01-17-2020 at 05:12 AM. Reason: Typo

  2. #2
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Attempting to create a formula for work that contains specific criteria for the day-to

    =TEXT(MIN(REPLACE(RIGHT("00"&F4;4);3;;":")+VLOOKUP(F5;E13:F38;2;)/24;--"15:00");"hhmm")

    If you use time format 10:45 then it could be easy
    =MIN(F4+VLOOKUP(F5;E13:F38;2;)/24;--"15:00") and time format for the cell. See Sheet1 (2)
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    01-14-2020
    Location
    Texas
    MS-Off Ver
    Excel for Office 365
    Posts
    19

    Re: Attempting to create a formula for work that contains specific criteria for the day-to

    BMV,

    THANK YOU!! This is a great formula but not quite what I was seeking. So, the end goal (F6) should also be displayed as a step (A-Z). In my example, I say "The day begins at 0500, but I begin STEP F at 1045. I would be able to get to STEP H before my shift was complete". So it doesn't have to be step F, but any step from the drop down (A-Z) and the formula should calculate the times associated with each step but End Goal should display the step that I could get to before my shift is done.

    Another example: I begin my shift very late. I start at 1200 PM, but I will be starting with STEP B. Step B takes 0.7 Hr. So now, I'm at 1242. Step C takes 0.9 Hr, so now I'm at 1:35PM. Step D takes 0.8 Hr, taking me to 2:25PM. Step E takes 0.6 Hr to complete, taking me to 3:00PM. This is the end of my shift. So the excel sheet would only display, F4 (1200), F5 (B) and F6 (E).

    This way, I could put in anytime the employee comes in, they could designate the step they will begin with, but given the time their shift ends, they could complete their work up to a specific step (designated as end goal).

    Thank you again,
    I know I will be able to use the formula you created as well. Hopefully, you can respond back. I do hope I clarified my initial question. YOU'RE THE BEST!!!

  4. #4
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Attempting to create a formula for work that contains specific criteria for the day-to

    So you would like to see last step which could be finished before 1500. Let me 10 minutes
    It is array formula (CTRL+SHIFT+ENTER)
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by BMV; 01-14-2020 at 05:11 AM.

  5. #5
    Registered User
    Join Date
    01-14-2020
    Location
    Texas
    MS-Off Ver
    Excel for Office 365
    Posts
    19

    Re: Attempting to create a formula for work that contains specific criteria for the day-to

    AMAZING!!!!!

    Thank YOU!!!!!
    Last edited by bcastle; 01-17-2020 at 03:31 AM. Reason: SOLVED

+ 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] first time attempting to create a macro with a variable formula
    By Sunjester in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-19-2019, 12:49 PM
  2. Replies: 3
    Last Post: 11-04-2018, 04:44 PM
  3. Index and match formula, attempting to return results with multiple criteria.
    By mahalek1976 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-02-2017, 12:43 AM
  4. Attempting to find a formula that allows for counting with complex criteria
    By The.Weazel in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-26-2016, 06:20 PM
  5. [SOLVED] Attempting to update current formula with additional required criteria
    By Webbers in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-27-2012, 10:17 AM
  6. Replies: 16
    Last Post: 06-25-2011, 05:14 PM
  7. Replies: 8
    Last Post: 03-21-2008, 12:09 PM

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