+ Reply to Thread
Results 1 to 7 of 7

Counting Days and Nights in Attendance

  1. #1
    Registered User
    Join Date
    02-19-2021
    Location
    Wicklow
    MS-Off Ver
    O365
    Posts
    54

    Counting Days and Nights in Attendance

    Hi

    I would like to insert a table in my sheet which counts the types of leave taken against the days of the week. I've included the table but I need a bit of help with the formula to insert into Cell B2. All help gratefully accepted.
    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
    82,558

    Re: Counting Days and Nights in Attendance

    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 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
    82,558

    Re: Counting Days and Nights in Attendance

    In B2:

    =SUMPRODUCT((Table25[[Matthew]:[John]]=[@[Leave type]])*($K$8:$K$463=Table5[[#Headers],[Monday]]))

    Change the bit in red when you copy it to C2, D2, etc.
    Attached Files Attached Files
    Last edited by AliGW; 06-23-2023 at 11:55 AM. Reason: Workbook added.

  4. #4
    Registered User
    Join Date
    02-19-2021
    Location
    Wicklow
    MS-Off Ver
    O365
    Posts
    54

    Re: Counting Days and Nights in Attendance

    Thank you so much for your very speedy and very accurate solution. I will do my best to learn from it.

    I've realised that I wanted to capture slightly different data and if you have the time and patience, I would be so grateful for your advice. What I want to is create a table that identifies how often staff e.g. Matthew takes days and nights off and what day of the week they are. I want to establish whether both shift types are being taken proportionally across all days of the week.

    If you can help that would be great but also fine if I have run out of favours or broken a rule by including a new question. Same attachment applies

  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. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,558

    Re: Counting Days and Nights in Attendance

    This is a completely different question.

    Start a new thread with a suitable title and a fully-annotated workbook attached.

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

  6. #6
    Registered User
    Join Date
    02-19-2021
    Location
    Wicklow
    MS-Off Ver
    O365
    Posts
    54

    Re: Counting Days and Nights in Attendance

    Hi AliGW

    I am so sorry I omitted to update the table. As attached
    Last edited by AliGW; 06-24-2023 at 04:20 AM. Reason: New thread required - attachment removed.

  7. #7
    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
    82,558

    Re: Counting Days and Nights in Attendance

    Please start a NEW thread, as advised above.

    This one is solved, and needs marking as such. Thanks.

+ 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. Attendance Tracker: Variables & Counting Consecutive Days Worked with Reset
    By kramerc319 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-28-2021, 02:32 AM
  2. Replies: 2
    Last Post: 09-12-2020, 11:03 AM
  3. Adding days and half days in an Attendance sheet
    By Felix_I in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-10-2018, 12:28 PM
  4. Replies: 0
    Last Post: 07-04-2018, 03:28 PM
  5. Counting Nights Based on a Date Range
    By dfish34 in forum Excel General
    Replies: 4
    Last Post: 03-13-2018, 03:22 PM
  6. Calculating Weeks, Weekday nights and Weekend nights
    By bngguy in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 10-26-2010, 01:41 PM
  7. time:DAYS or NIGHTS
    By whitesidehasdon in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-22-2007, 10:47 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