Absences report in Excel - excel

I've got a problem with finding a solution to my report. Purpose is to know how many times and how long employees spend time on breaks. This report is really imperfect to draw a data.
Purpose of my report:
- we need to know how long brakes they had.
The problem is that in this report I have some days and end date is below the start date - not beside. I copied by formula to have them beside to easily count the time but sometimes can happened that they have irregular leaves - eg. number 14 - he has only 5 records and I can't do it automatically because I need to know which record is missing. In my file is 10.000 records...
Any prompts? Suggestions?
Thank you in advance for any tips!

Related

How to get the time intervals and total time from a machine recorded minute to minute timestamps data sheet

This is Nikhil.
Here is where I got struck for days, Please help anyone.
I'm having a data of time stamps for every minute in the month.
And there is a corresponding data as well.
Based on the data, i need the time intervals and total operational time and total non operational time in excel.
in this excel file, input table is what im having and output data table is what im desired for....
Thanks you
Nikhil
Edit:
Thank you so much for the first answer,,,
But actually i asked half of the question only to made it understandable.
Now the real problem is - I want the time intervals which are in between the actual shift timings (That are 7:00, 15:00, 23:00).
So that I can calculate the individual shift working and non working hrs.
Please go though the second image's output format.
Second image with updated output shift timings
Thanks for your valuable time.
Done with formulas:
Identifies locations where "Operational/Non Operational" sections begin, then sorts them into final report with array formulas.
See link: (to note, array formulas do not work correctly in Google Sheets, must be viewed in excel. )
https://docs.google.com/spreadsheets/d/1TnYBaVqoH9GbqSOrJhamOVOeJFy5gmQ0/edit?usp=sharing&ouid=113383321265118626810&rtpof=true&sd=true
Array Formula Images:

Counting the historical view of open files

Good morning,
I'm trying to get an historical count on files going back two years, regardless of their status now. The files have 4 dates that will factor into this (Created, Closed, Reopened and Reclosed) my thought was to find the Monday of the week in relation to dates above, this would give me the last time it could have been Open / Re-Opened. Formula Below -
=IF(A2="open",B2-WEEKDAY(B2,3),IF(A2="reopened",D2-WEEKDAY(D2,3),IF(A2="Closed",C2-WEEKDAY(C2,3),IF(A2="Re-closed",E2-WEEKDAY(E2,3)))))
I figured from this I could find out what the active work in progress was at the start of any given Monday - however I'm struggling to figure out how to calculate this - or if is even possible? my first though was that =Countif( would work but not having any luck.
Does anybody know how or experienced a similar challenge before?
Edit for comment (Example) -
This is a small example with the desired output to the right.

Calculate minutes in specific period

I have a spreadsheet which has employee working times, listed as Sat-In and Sat-Out for a specific date. The employee shift spans several ours and each "In-Out" period is recorded as a separate line which means the time between the Sat-Out and the next Sat-In means the employee is on a break. I also calculate the time, in minutes of each "sitting" period.
What I can't seem to figure out is how to add a formula which takes the data and further refines it in this manner:
1. I have a core period of 1030-1530, as an example, which is the busy time and requires the maximum employee coverage. The shifts of employees generally spans this core, but in some cases their shift may start or end in the core.
2. I want to calculate how many minutes the employee worked within the core only. I can obviously do this manually using the data, but a formula would be preferred, if possible.
3. As an example, if a person sat-in at 1445 and sat-out at 1545, the core time calculation would be 45 minutes (1445-1530).
I've attached a snapshot of the data to help my explanation.
FYI - the information is pulled from a database as JSON data and converted to excel. I'm not very familiar with JavaScript, but if someone knows a way to do it programatically, I'm willing to give it a try and learn.
Thanks!
![excel]: https://photos.app.goo.gl/dRSTE72CXNa18RzP8
In below example I've used: =MAX(0,MIN($O$2,H2)-MAX($O$1,G2)), and formatted like [mm].
In Excel, units are days, so if you want to calculate the amount of minutes between two timestamps, you need to subtract both and multiply the differencee by 24*60 (being the amount of minutes in one day).
E.g. You start working at 09:07 (cell B2), and finish at 18:07 (cell B3), having a 45-minutes break. Then the time you worked in minutes, is:
=(B3-B2)*24*60-45
Make sure the cell formatting is correct (general), you'll get : 495.

Working out number of days between 2 dates based on a specific premise

I'm wondering if anyone can help me. I have a spreadsheet which I use to populate scheduled meetings of various venues (at the moment these dates I enter in manually from a reference sheet as I don’t know how to do it with a formula).
Each week, when staff go to the venue for their meeting I then enter in (again manually) what date they actually went to the venue for the meeting.
What I then have to do, is work out if they went to the meeting within our agreed time-frame, and if not, how many days late were they. However, this calculation part will just take days to do by hand as there are so many meetings to analyse.
To work out if someone is within time frame or is late, it works on this premise:
If your meeting was scheduled to take place in say week 40, you have until the Friday of week 41 to go. Any working day after that is a day late (so if for example you ended up going to the meeting on the Tuesday in week 42 you would be 2 days late). Weekends and holidays should not be included in the calculation as staff don't work on bank holidays.
The link shows an example of how this looks - you can pretty much ignore the first tab as that's just me working out some example dates to put into the main tab and the last tab is the bank holidays for the remainder of this year and next.
https://docs.google.com/spreadsheets/d/1KaEAB59311W8_M1FdAL96753SirqY3dtl4eTzIruzK8/edit?usp=sharing
Thanks so much in advanced for reading this, and if anyone is able to help or has any ideas on how to even get started with this I’d really welcome your thoughts !
Okay, this was my best attempt at this for the time I've got now - This will work if the max amount of time that a scheduled meeting can take place is up to 2 weeks beyond the original limit - anything more than that and it will be off, but you could change that IF formula to account for that:
=IF(D2-(B2+13-WEEKDAY(B2))<0,0,IF(D2-(B2+13-WEEKDAY(B2))>7,D2-(B2+13-WEEKDAY(B2))-4,D2-(B2+13-WEEKDAY(B2))-2))
Screenshot from posted file:

Select pay rate based on day and shift start time

Im creating an excel pay sheet so i can keep tabs on my pay.
I have two pay rates,
£9.30 is paid for hours worked from 6pm to 8am Monday to Thursday
£10.30 is paid for hours worked from 6pm Friday to 8am Monday.
I have a column that displays the pay rate, i want this to populate automatically with excel looking at the day of the week and then the start time and then returning the correct pay rate.
For example,
If the day is a Mon and the start time is 6pm return £9.30
If the day is Fri and the start time is 6pm return £10.30 etc etc
Any one have any ideas on how i can achieve this? Id rather this be formula based instead of VBA if possible but if it cant be formula based then VBA it is.
Thanks in advance
I had to make a few assumptions because your question was unclear about the possible start times for your shifts. Your wording and examples lead me to believe that your shifts always begin at 6 PM regardless of the day. I created a possible solution or start to a solution based on that assumption that does not rely on VBA. I've included links to an excel workbook with my solution and a screen shot. (I'm only allowed 2 links with my current rep.)
As Gowtham Shiva suggested in the comments, a screen shot of what you have so far would be helpful.
I created two tables and a named ranged called “valDays”. To use the workbook, you enter the date and start time for your shift in tblPay. Enter the pay rate for a specific day and time in tblRates. valDays provides a way to convert the text for a day of the week into a number for calculating date/time serial numbers.
Feel free to comment/message me for clarification. I’ll do my best to reply and refine the solution as necessary. I hope you find this answer helpful and appreciate feedback. This is my first time providing an answer on Stack Overflow.
I’m going to assume you know how to name a range, create tables, and rename tables in excel. If you don’t there are plenty of YouTubers and bloggers that cover these topics quite well.
List the days in a column off to the right. (I used column K.) “Sun”, “Mon”, “Tue”, etc. Select all the cells with the days of the week and name the range “valDays”.
Formula in tblRates[Serial]:
“=MATCH(tblRates[[#This Row],[Day]],valDays,0)+tblRates[[#This Row],[Time]]”
Formula in tblPay[Serial]:
“=WEEKDAY([Date])+[StartTime]”
Formula in tblPay[Rate]:
“=INDEX(tblRates[Rate],MATCH([Serial],tblRates[Serial],0))”
You can download the excel document and view these screenshots of a possible solution.
Link to Excel Workbook on Google Drive
Screenshot1

Resources