+ Reply to Thread
Results 1 to 9 of 9

Time Formula - Modification

  1. #1
    Forum Contributor
    Join Date
    06-04-2013
    Location
    Suffolk, England
    MS-Off Ver
    Office 365
    Posts
    110

    Time Formula - Modification

    Good Afternoon,

    Happy Wednesday!!

    I am need of assistance as my heads about to fall off....

    Some time back some of you lovely people assisted me with a formula for a quandary i was having, which worked perfectly - until i decided to have a play and copy the formula to a similar spreadsheet....

    In a nutshell, the idea of the spreadsheet is:
    - Column A: Machine Name
    - Column B: Order Priority
    - Column C: Order No
    - Column D: Availability
    - Column E: If it is running
    - Column F: How Long it runs for
    - Column G: The time it started running
    - Column H: The time it started / should start based on the job above on the same Machine
    - Column I: The time the job should end based on Columns F+H

    Now for some reason, row 8 on my example does not have any information in Columns G:I which is correct as the job is not running.
    But then in Row 9, it has picked up the End time from Row 7 and calculated based on that....

    Rows 8-15 should have no start / end times in them as the job is not running.

    But then row 16 is back to running as required.

    Can somebody please assist as i am pulling my hair out on this one.

    Thanks
    Ross
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,524

    Re: Time Formula - Modification

    Are you still using Excel 2016?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,224

    Re: Time Formula - Modification

    You said:

    Rows 8-15 should have no start / end times in them as the job is not running

    How can you tell that it's not running??
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    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
    28,370

    Re: Time Formula - Modification

    A quick glance sugeests having a "1" in column E for any row which is running is required as having a blank entry in G:I cannot be used as the determinant of "Not running".
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  5. #5
    Forum Contributor
    Join Date
    06-04-2013
    Location
    Suffolk, England
    MS-Off Ver
    Office 365
    Posts
    110

    Re: Time Formula - Modification

    Hi Ali, Yes - unfortunately so.

  6. #6
    Forum Contributor
    Join Date
    06-04-2013
    Location
    Suffolk, England
    MS-Off Ver
    Office 365
    Posts
    110

    Re: Time Formula - Modification

    Hi Glenn,

    If there is a 1 in column E this shows that the job is running.

    Edit:: Only one job can run on one machine at a time.

    Thanks
    Ross

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,224

    Re: Time Formula - Modification

    if the formula in col H is copied down

    =IFERROR(IF([@Live]=0,WORKDAY.INTL(TODAY(),1,11)+TIMEVALUE("08:00"),[@SFDC]),"")

    does that give you the expected result? What IS/ARE the expected results?

  8. #8
    Forum Contributor
    Join Date
    06-04-2013
    Location
    Suffolk, England
    MS-Off Ver
    Office 365
    Posts
    110

    Re: Time Formula - Modification

    Hi Glenn,

    If i copy that formula down it gives me the correct information but for that row only.

    On my example sheet the first 5 rows are 'VMC No3'
    The first line is in progress and started at 20/09 08:07 and finishes at 22/09 14:36
    The second line starts on 22/09 14:36 (the time the first finished) and finishes at 25/09 15:11
    and so on until the machine name changes to 'VMC No4' where the formula starts again.

    For some reason on 'VMC No8' even though there is not a 1 in Column E, it is producing dates based off VMC No4 finish time.

    What i am looking for is that if a job has not started on a machine that no start / end times show against that machine.

    Hope that makes sense.

    Thanks
    Ross

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,676

    Re: Time Formula - Modification

    Try this modification to the formula that was in cells H3 and down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Require Reduction in Macro Running time and small modification
    By Ravi_Kadu in forum Excel Programming / VBA / Macros
    Replies: 40
    Last Post: 07-27-2017, 03:37 AM
  2. [SOLVED] Formula Modification
    By hammer2 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 09-20-2015, 09:25 PM
  3. as per modification time stamp
    By johncena in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-31-2013, 12:35 PM
  4. If Formula Modification
    By nathanB in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-17-2013, 05:38 AM
  5. Microsoft Date and Time Picker Control modification
    By cabinetguy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-05-2011, 11:53 AM
  6. Time of modification without VB
    By banana-pumpkin in forum Excel General
    Replies: 3
    Last Post: 09-13-2010, 06:38 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