Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
How did you get this:
>>the result will be 1 IN, 2 OUT, 3 IN, 2 OUT
from your source data?
Hi,
Below is the sample data.
S/N | Date | Time | Period | Car | Status |
1 | 1/1/2018 | 0700H | AM | A | OUT |
2 | 1/1/2018 | 1700H | PM | A | IN |
3 | 2/1/2018 | 0800H | AM | A | OUT |
4 | 2/1/2018 | 1600H | PM | A | IN |
5 | 3/1/2018 | 0600H | AM | A | IN |
6 | 3/1/2018 | 1730H | PM | A | IN |
7 | 4/1/2018 | 0830H | AM | A | IN |
8 | 4/1/2018 | 1800H | PM | A | OUT |
9 | 5/1/2018 | 0930H | AM | A | OUT |
10 | 5/1/2018 | 1400H | PM | A | OUT |
11 | 6/1/2018 | 1000H | AM | A | IN |
So based on the data, i would like to get the something like this
Day(s) | IN | OUT | |
1/1/2018-1/1/2018 | 1 | 1 | 1 |
2/1/2018-2/1/2018 | 1 | 1 | |
2/1/2018-4/1/2018 | 3 | 4 | |
4/1/2018-5/1/2018 | 2 | 3 | |
6/1/2018-6/1/2018 | 1 | 2 |
I need to find out the range between each IN and OUT or vice-versa.
Then get the Average range for IN and OUT.
It's still not clear how you get from the data to the result. Please explain. The examples are useful to illustrate the explanation, but they are not an explanation by themselves.