+ Reply to Thread
Results 1 to 5 of 5

if or iferror or other formula help needed to count idle hours.

  1. #1
    Registered User
    Join Date
    04-10-2015
    Location
    Bangladesh
    MS-Off Ver
    Windows 2013
    Posts
    39

    if or iferror or other formula help needed to count idle hours.

    Hello,

    I am maintaining a worksheet that has multiple workers' login data and working time. To save time and fast calculation, I have used some formulas.
    But I am unable to maintain it perfectly and need your help to solve it.
    If formula.png

    Attached image the sample of one of my team members daily summary. I am using this formula in M87 but this is not perfect.
    =if(((K87+L87)<0.375),(0.375-(K87+L87)))+if(((K87+L87)>0.375),0)

    I need,
    1. if the shift (B column) is "day off" or "Sick leave" then "M" will be 0 or if the sum of work and Training (column k87 and L87) is "0" than M will be counted "0:00:00"
    2. if the shift (B column) is "Evening" or "Morning" or if the sum of work and Training (column k87 and L87) is more than 9 hours than M will be counted "0:00:00"
    3. if the shift (B column) is "Evening" or "Morning" or if the sum of work and Training (column k87 and L87) is less than 9 hours than M will be counted "9-(K87+L87)"

    above formula only fulfill the 2nd and 3rd condition, but not the 1st condition.

    Thanks in advance,
    Best,
    Rinko

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: if or iferror or other formula help needed to count idle hours.

    =if(((K87+L87)<0.375),(0.375-(K87+L87)))+if(((K87+L87)>0.375),0)

    What happens if K87+L87 = 0.375
    also you dont need the 2nd if
    =if((K87+L87)<0.375,0.375-(K87+L87),0)
    does that WORK ?
    if so
    change to
    =if((K87+L87)>0.375,0, 0.375-(K87+L87))
    so now we can add the other conditions as they will also return a zero

    1. if the shift (B column) is "day off" or "Sick leave" then "M" will be 0 or if the sum of work and Training (column k87 and L87) is "0" than M will be counted "0:00:00"


    =if( OR ((K87+L87)>0.375 , B87="day off", B87 = "sick leave" , K87+L87 =0),0, 0.375-(K87+L87))


    Otherwise - if thats incorrect
    Please upload a small clean sample of your data / workbook (not a picture) to the forum, Make sure you have removed any private information, remember this is a public forum and so available to anyone
    We would like to see an example of your data and also a manual mock up of the expected results you want to achieve.

    To attach a file to your post,
    click "Go advanced" (next to quick post),
    scroll down until you see "manage Attachments",
    click that and select "Choose File" (top Left corner).
    Find your file, click "Open" click "upload" click 'close windows" Top Right. click "Submit Reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    04-10-2015
    Location
    Bangladesh
    MS-Off Ver
    Windows 2013
    Posts
    39

    Re: if or iferror or other formula help needed to count idle hours.

    Hi,

    Sorry for late response and incomplete forum posting. I have attached an excel work. Please take a look.

    Best,
    Rinko.
    Attached Files Attached Files

  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,211

    Re: if or iferror or other formula help needed to count idle hours.

    K87 & L87 are blank cells???

  5. #5
    Registered User
    Join Date
    04-10-2015
    Location
    Bangladesh
    MS-Off Ver
    Windows 2013
    Posts
    39

    Re: if or iferror or other formula help needed to count idle hours.

    Oh, I just removed those data from the bottom as I include 2 sample. K87 was same of k9 or k48.
    Formula will be - =if(((K9+L9)<0.375),(0.375-(K9+L9)))+if(((K9+L9)>0.375),0).

    Best,
    Rinko.

+ 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] =sum / =ISBlank / =iferror formula needed (or some alternative)
    By KClem in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-02-2016, 08:21 AM
  2. [SOLVED] Formula needed to total daily work hours and hours per week
    By amkampbell in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-24-2016, 07:33 PM
  3. [SOLVED] IFERROR(MATCH & IFERROR(SMALL Help Needed
    By chad328 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 01-17-2016, 06:34 AM
  4. [SOLVED] Iferror formula help needed
    By bigband1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-02-2015, 10:42 AM
  5. Extension of IFERROR/VLOOKUP formula help needed.
    By conwayroger25 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-30-2014, 12:55 PM
  6. [SOLVED] Count and average formula needed to not count text field
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-07-2013, 05:30 PM
  7. Replies: 6
    Last Post: 03-25-2010, 07:50 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