Time and Date Sum w/ auto filter

Newbienew

Active Member
Joined
Mar 17, 2017
Messages
376
Office Version
  1. 2016
Platform
  1. Windows
I have a vacation tracker for work, that always me to see when people start and return from vacation or other time off situations. The issue that I am having is two parts. Main one: I have figured out how to calculate the days between days by using b2-a1, but I have to incorporate the times. So if they start at 0900 then that is a day used but if they start at 1800 that day is not used. This makes a world of difference. Below is my visual example.

The cells in with the "V" are the ones counted just for visual reasons. This is not how the sheet actually looks.

Left before the worday started, this day countsReturned after the work day , this day is counted
900V 24-Aug-18
V 25V 26V 27V 28V 291800V 30-Aug-18
7
Left after the work day, this day does not countReturned before the word day started, day not counted
1800 V 24-Aug-18
V 25V 26V 27V 28V 2990030-Aug-185
Left before the work day started, this day counts
Returned before the work day started, day not counted
900
V 24-Aug-18
V 25V 26V 27V 28V 2990030-Aug-186
Left after the work day, this day is not countedReturned After the work day, this day is counted
180024-Aug-18V 25V 26V 27V 28V 291800V 30-Aug-18
6

<colgroup><col style="width:50pt" width="67"> <col style="mso-width-source:userset;mso-width-alt:2937; width:65pt" width="87" span="2"> <col style="mso-width-source:userset;mso-width-alt:3651;width:81pt" width="108"> <col style="width:50pt" width="67" span="6"> </colgroup><tbody>
</tbody>
<style>table { }tr { }col { }br { }td { padding-top: 1px; padding-right: 1px; padding-left: 1px; color: black; font-size: 11pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: Calibri, sans-serif; vertical-align: bottom; border: medium none; white-space: nowrap; }.xl65 { border: 0.5pt solid windowtext; background: rgb(146, 208, 80) none repeat scroll 0% 0%; }.xl66 { border: 0.5pt solid windowtext; background: rgb(146, 208, 80) none repeat scroll 0% 0%; }.xl67 { }.xl68 { border: 0.5pt solid windowtext; background: white none repeat scroll 0% 0%; }.xl69 { border: 0.5pt solid windowtext; background: white none repeat scroll 0% 0%; }</style>





Part two as well as what the section of the sheet looks like is, I would like for it to auto shuffle the rows according to who comes back the earliest. There for it makes it easier to delete them from the bottom of the list. If it could be a macro button that would work out if possible



timedatetimedatenumber of days
90024-Aug-18180030-Aug-18formula
180024-Aug-1890031-Aug-18formula
90024-Aug-189001-Sep-18formula
180024-Aug-1818002-Sep-18formula

<tbody>
</tbody>
<style>table { }tr { }col { }br { }td { padding-top: 1px; padding-right: 1px; padding-left: 1px; color: black; font-size: 11pt; font-weight: 400; font-style: normal; text-decoration: none; font-family: Calibri, sans-serif; vertical-align: bottom; border: medium none; white-space: nowrap; }.xl65 { border: 0.5pt solid windowtext; }.xl66 { border: 0.5pt solid windowtext; }.xl67 { border: 0.5pt solid windowtext; background: rgb(255, 192, 0) none repeat scroll 0% 0%; }</style>

I truly hope this is not as confusing or complicated as i am making it. Thank you to any one that can help.
 
Last edited:

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

Forum statistics

Threads
1,215,651
Messages
6,126,023
Members
449,281
Latest member
redwine77

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top