+ Reply to Thread
Results 1 to 18 of 18

If formula for when time is needed for set shifts

  1. #1
    Forum Contributor murray83's Avatar
    Join Date
    05-05-2016
    Location
    Daventry
    MS-Off Ver
    365
    Posts
    146

    If formula for when time is needed for set shifts

    have looked online for answer to question and have tried doing the suggested fixes such as

    Please Login or Register  to view this content.
    as for the shift PM i need to look for when it was reported and if its = or after 15:00 then i want it to calculate if not then ignore the time taken column

    same for NIght shift but for this it will be looking at time reported = or greater then 23:00

    and for AM it will between 07:00 & 15:00

    thanks for any help

    cheers
    Attached Files Attached Files
    Last edited by murray83; 04-09-2017 at 02:57 AM. Reason: incomplete title

  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. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,032

    Re: If formula for when time

    I think you didn't quite complete your thread title - please edit your original post, using the Go Advanced option, to complete it. Thanks!
    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
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: If formula for when time

    1. you should include some sample answers to give us an idea what you want
    2. if you need to zip the file to upload, then it is too big for what we need - we only need a small sample file, showing what you have, and what you want
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Contributor murray83's Avatar
    Join Date
    05-05-2016
    Location
    Daventry
    MS-Off Ver
    365
    Posts
    146

    Re: If formula for when time

    ok have fixed the file size

    and have managed to half fix the night shift but not sure why the top cell is blank
    Attached Files Attached Files
    Last edited by murray83; 04-09-2017 at 03:05 AM.

  5. #5
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,032

    Re: If formula for when time is needed for set shifts

    Can you not zip it up? That's a pretty hefty workbook!

  6. #6
    Forum Contributor murray83's Avatar
    Join Date
    05-05-2016
    Location
    Daventry
    MS-Off Ver
    365
    Posts
    146

    Re: If formula for when time is needed for set shifts

    u serious its 11.3 KB ??

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: If formula for when time is needed for set shifts

    the file uploads fine for me

  8. #8
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,032

    Re: If formula for when time is needed for set shifts

    Quote Originally Posted by murray83 View Post
    u serious its 11.3 KB ??
    Well, before you edited your post, you were quoting 3.4MB ...

  9. #9
    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,217

    Re: If formula for when time is needed for set shifts

    In G2

    =IF(B7>23/24,SUM(G7:G654),"")

  10. #10
    Forum Contributor murray83's Avatar
    Join Date
    05-05-2016
    Location
    Daventry
    MS-Off Ver
    365
    Posts
    146

    Re: If formula for when time is needed for set shifts

    tried that formula doesn't fault which is good but see attached for
    results ( night shift image )

    also look at PM Shift image for what i have done but again just a blank smegging cell
    Attached Images Attached Images

  11. #11
    Valued Forum Contributor
    Join Date
    06-21-2013
    Location
    Bangladesh
    MS-Off Ver
    Excel 2000, Excel XP, Excel 2002, Excel 2007, Excel 2010, Excel 2013
    Posts
    975

    Re: If formula for when time is needed for set shifts

    You can try below formulas :
    On E2 :
    Formula: copy to clipboard
    Please Login or Register  to view this content.

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

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

  12. #12
    Forum Contributor murray83's Avatar
    Join Date
    05-05-2016
    Location
    Daventry
    MS-Off Ver
    365
    Posts
    146

    Re: If formula for when time is needed for set shifts

    you clever clever person works like an absolute charm

    cheers

  13. #13
    Valued Forum Contributor
    Join Date
    06-21-2013
    Location
    Bangladesh
    MS-Off Ver
    Excel 2000, Excel XP, Excel 2002, Excel 2007, Excel 2010, Excel 2013
    Posts
    975

    Re: If formula for when time is needed for set shifts

    Glad to help you and thanks for the rep.

  14. #14
    Forum Contributor murray83's Avatar
    Join Date
    05-05-2016
    Location
    Daventry
    MS-Off Ver
    365
    Posts
    146

    Re: If formula for when time is needed for set shifts

    Quote Originally Posted by sanram View Post
    Glad to help you and thanks for the rep.

    your welcome and thanks for your continued help
    Attached Files Attached Files

  15. #15
    Valued Forum Contributor
    Join Date
    06-21-2013
    Location
    Bangladesh
    MS-Off Ver
    Excel 2000, Excel XP, Excel 2002, Excel 2007, Excel 2010, Excel 2013
    Posts
    975

    Re: If formula for when time is needed for set shifts

    You forgot to adjust the array length. You used C7:C250 where all others are 7:654. The length should be same there.
    On E3 :
    Formula: copy to clipboard
    Please Login or Register  to view this content.

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

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

  16. #16
    Forum Contributor murray83's Avatar
    Join Date
    05-05-2016
    Location
    Daventry
    MS-Off Ver
    365
    Posts
    146

    Re: If formula for when time is needed for set shifts

    stella, thanks works

    shall stop bothering you

  17. #17
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,032

    Re: If formula for when time is needed for set shifts

    Who's Stella?

    We're all here to help, but I'm not quite sure how I helped you this time. Thanks for the rep, though!

  18. #18
    Valued Forum Contributor
    Join Date
    06-21-2013
    Location
    Bangladesh
    MS-Off Ver
    Excel 2000, Excel XP, Excel 2002, Excel 2007, Excel 2010, Excel 2013
    Posts
    975

    Re: If formula for when time is needed for set shifts

    Glad to hear that it worked. Don't hesitate to ask again. Because you were not bothering me. Actually when We help others it helps us for our personal development. So we are always there for ourselves.


+ 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. Formula for Timesheet - Double Time, Time Half and normal Hours
    By Tracs13 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 09-12-2017, 09:40 PM
  2. [SOLVED] time sheet help, format TIME and formula based on the actual time entered.
    By bh mng in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-06-2016, 01:10 PM
  3. [SOLVED] Formula to fill C5 with a time that makes J5 equal 8 hours based on time put into B5
    By possumbarnes in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-26-2015, 10:08 PM
  4. Replies: 3
    Last Post: 12-19-2013, 06:49 AM
  5. Replies: 5
    Last Post: 04-18-2013, 11:31 AM
  6. Formula for Calculating Paid Time Off for fiscal anniversary date real time
    By 168rockwood in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-07-2012, 04:15 PM
  7. [SOLVED] template or formula for start time -finish time -total hours ple
    By cc in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 03-27-2006, 01:10 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