+ Reply to Thread
Results 1 to 6 of 6

Count Base Hours for Attendance Report

  1. #1
    Registered User
    Join Date
    06-21-2019
    Location
    Indonesia
    MS-Off Ver
    2013
    Posts
    18

    Count Base Hours for Attendance Report

    Hi Excel experts!

    I have come once again to seek for your invaluable help.

    I'm in need to count for base work hours for my colleagues attendance record. The thing is, our work space uses shift as the basis for work hours count. However, some days are different with another days. To make it clearer, here is the schedule for our work space:

    Monday – Thursday
    1st Shift 09:00 – 15:30 = 6.5 hours
    Mid Shift 12:00 – 18:00 = 6 hours
    2nd Shift 15:00 – 20:30 = 5 hours

    Friday – Sunday
    1st Shift 09:00 – 15:30 = 6.5 hours
    Mid Shift 13:00 – 19:00 = 6 hours
    2nd Shift 15:00 – 21:30 = 6.5 hours

    I use 24 hours format, because that's the format we use here.

    I have attached a sample file where I think what I need help the most is in the Base Hours column. I have put some effort to cover the conditions, but I haven't figured out how to include several criteria to determine the base hours.
    When formulas & functions are getting longer, I get so much confused. So I come here to seek for help in that matter. Lol.

    I hope someone has time to help me in this. Thank you very much!
    Attached Files Attached Files
    Last edited by naveron; 07-10-2020 at 01:40 PM. Reason: update file to better explain

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: Count Base Hours for Attendance Report

    Its not entirely clear what you are asking but putting the days in as date makes things easier. A lookup of some sort to get the time makes it a bit more generic

    perhaps g4 =MIN(IF(OR(B4="Minggu",B4="Senin",B4="Selasa"),VLOOKUP(E4,$J$6:$L$8,3,FALSE),VLOOKUP(E4,$J$11:$L$13,3,FALSE)),MROUND(F4*24,0.5))
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    06-21-2019
    Location
    Indonesia
    MS-Off Ver
    2013
    Posts
    18

    Re: Count Base Hours for Attendance Report

    Sorry, I thought the day's name would change to English name when opened in Laptop/PC with Western regional settings.

    But just fyi
    Minggu = Sunday
    Senin = Monday
    Selasa = Tuesday
    Rabu = Wednesday
    Kamis = Thursday
    Jumat = Friday
    Sabtu = Saturday

    Ok, I uploaded a file with better explanation. I hope.
    Attached Files Attached Files
    Last edited by naveron; 07-10-2020 at 10:47 AM.

  4. #4
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: Count Base Hours for Attendance Report

    =MIN(IF(OR(B4="Minggu",B4="Sabtu",B4="Jumat"),VLOOKUP(E4,$J$6:$L$8,3,FALSE),VLOOKUP(E4,$J$11:$L$13,3,FALSE)),MROUND(F4*24,0.5))

    the days were text, if they had been dates formatted at the day eg =today() formatted as a custom, format of DDDD will give Friday as it will adjust to the region
    Last edited by davsth; 07-10-2020 at 10:48 AM.

  5. #5
    Registered User
    Join Date
    06-21-2019
    Location
    Indonesia
    MS-Off Ver
    2013
    Posts
    18

    Re: Count Base Hours for Attendance Report

    Ah, I see. I've fixed it.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    06-21-2019
    Location
    Indonesia
    MS-Off Ver
    2013
    Posts
    18

    Re: Count Base Hours for Attendance Report

    Quote Originally Posted by davsth View Post
    =MIN(IF(OR(B4="Minggu",B4="Sabtu",B4="Jumat"),VLOOKUP(E4,$J$6:$L$8,3,FALSE),VLOOKUP(E4,$J$11:$L$13,3,FALSE)),MROUND(F4*24,0.5))

    the days were text, if they had been dates formatted at the day eg =today() formatted as a custom, format of DDDD will give Friday as it will adjust to the region
    But now that I've changed the day's name using date formatted as DDDD, how should I input the day's name into the formula? Because I used the formula you provided, it doesn't seem to work, because now it showed up as #NAME?

    Thank you, to have taking the time to help.

    Edit:
    Ah, no matter. It seems to work now, I don't know why it shows up as #NAME? before. Maybe I missed something. But thank you very much for your help!
    Last edited by naveron; 07-10-2020 at 01:24 PM.

+ 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. Need to create attendance for base sheet
    By vinod2802 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-04-2018, 01:46 PM
  2. Replies: 0
    Last Post: 12-27-2017, 12:21 AM
  3. [SOLVED] Attendance Report Compilation
    By monsterlucifer in forum Excel General
    Replies: 12
    Last Post: 08-02-2015, 05:08 AM
  4. [SOLVED] ATTENDANCE REPORT templete
    By Sundarvlr in forum Excel General
    Replies: 2
    Last Post: 11-25-2013, 05:58 PM
  5. Convert Detailed Time Attendance report from Biometrics to Summary Report
    By firescorpio in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-02-2013, 02:48 AM
  6. Attendance and Hours
    By sexybeast in forum Excel General
    Replies: 5
    Last Post: 06-08-2011, 08:10 AM
  7. Replies: 6
    Last Post: 03-25-2010, 07:50 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