PS_Richard
New Member
- Joined
- Nov 22, 2022
- Messages
- 13
- Office Version
- 365
- 2016
- Platform
- Windows
Hi all,
I'm hoping someone might be able to give me a hand here in working out a way to get this data out. I've tried with MINIFS and MAXIFS setting to a month time frame but this only picks up the first instance and the last instance within the month where I need to work it out per day.
Here is an export of data that I need some help with.
Based on this, as soon as a 0 (zero) appears in column O (Oscar) I need it to look at column H for the date/time the event started and also split this out by whichever Pool Name (column F) the battery is. For the first instance of Here it is 03/10/2022 06:00:27 and then on that day when column O is not a 0 happens at 03/10/2022 07:41:59 so a time difference of 1 hour 41 minutes and 32 seconds. This can happen numerous times within the day and other the month.
In the example above the next instance starts 27/10/2022 03:03:14 and ends at 27/10/2022 03:50:01 but then another occasion that day is at 27/10/2022 19:03:33 to 27/10/2022 21:44:03. Respectively this is 46 minutes and 47 seconds then 2 hours 40 minutes and 30 seconds giving a total for that day of 3 hours 27 minutes and 17 seconds.
These figures I then want to appear into a table like this.
With the duration round up to the next full minute. This is to then allow me to present in either a bar / line graph the data for the month broken down by day. I'd rather this be worked out using a formula as such as I'm not great/used Power Query and currently that training is on the back burner.
Thanks in advance for any help anyone can give.
I'm hoping someone might be able to give me a hand here in working out a way to get this data out. I've tried with MINIFS and MAXIFS setting to a month time frame but this only picks up the first instance and the last instance within the month where I need to work it out per day.
Here is an export of data that I need some help with.
Example.xlsx | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | |||
1 | Site ID | Site Name | Equipment ID | Serial Number | Pool ID | Pool Name | Event Time | Event Time Local | Event Start Time Local | Charger ID | Event Code | Duration | EventVPC | Event Type | Available | ||
2 | 1234 | Warehouse A | 4321 | 123789 | 9999 | BAL | 03/10/2022 04:52 | 03/10/2022 05:52 | 02/10/2022 19:13 | 6 | Pick | 639.5 | 2.18 | 1 | |||
3 | 1234 | Warehouse A | 4321 | 123789 | 9999 | BAL | 03/10/2022 05:00 | 03/10/2022 06:00 | 03/10/2022 05:42 | 1 | Pick | 18.4 | 02/01/1900 04:48 | 0 | |||
4 | 1234 | Warehouse A | 4321 | 123789 | 9999 | BAL | 03/10/2022 05:01 | 03/10/2022 06:01 | 03/10/2022 05:52 | 6 | Battery connect | 9.3 | 1.93 | High Voltaqe | 0 | ||
5 | 1234 | Warehouse A | 4321 | 123789 | 9999 | BAL | 03/10/2022 05:02 | 03/10/2022 06:02 | 03/10/2022 06:01 | 6 | Charge Started | 0.3 | 2.01 | 0 | |||
6 | 1234 | Warehouse A | 4321 | 123789 | 9999 | BAL | 03/10/2022 05:46 | 03/10/2022 06:46 | 03/10/2022 01:17 | 8 | Battery connect | 329.3 | 1.93 | High Voltaqe | 0 | ||
7 | 1234 | Warehouse A | 4321 | 123789 | 9999 | BAL | 03/10/2022 05:46 | 03/10/2022 06:46 | 03/10/2022 06:46 | 8 | Charge Started | 0.3 | 2.01 | 0 | |||
8 | 1234 | Warehouse A | 4321 | 123789 | 9999 | BAL | 03/10/2022 05:50 | 03/10/2022 06:50 | 03/10/2022 06:00 | 1 | Battery connect | 50.1 | 1.96 | High Voltaqe | 0 | ||
9 | 1234 | Warehouse A | 4321 | 123789 | 9999 | BAL | 03/10/2022 05:51 | 03/10/2022 06:51 | 03/10/2022 06:50 | 1 | Charge Started | 0.8 | 2.04 | 0 | |||
10 | 1234 | Warehouse A | 4321 | 123789 | 9999 | BAL | 03/10/2022 05:53 | 03/10/2022 06:53 | 02/10/2022 19:33 | 9 | On-charge mispick during maintenance | 679.4 | 2.57 | 0 | |||
11 | 1234 | Warehouse A | 4321 | 123789 | 9999 | BAL | 03/10/2022 05:53 | 03/10/2022 06:53 | 02/10/2022 15:58 | 2 | Quarantine Exit | 895.3 | 2.1 | Battery Selected | 0 | ||
12 | 1234 | Warehouse A | 4321 | 123789 | 9999 | BAL | 03/10/2022 05:53 | 03/10/2022 06:53 | 02/10/2022 23:30 | 4 | On-charge mispick during maintenance | 443.7 | 1.96 | 0 | |||
13 | 1234 | Warehouse A | 4321 | 123789 | 9999 | BAL | 03/10/2022 05:55 | 03/10/2022 06:55 | 03/10/2022 06:53 | 2 | Battery connect | 1.8 | 2.1 | False Pick | 0 | ||
14 | 1234 | Warehouse A | 4321 | 123789 | 9999 | BAL | 03/10/2022 05:55 | 03/10/2022 06:55 | 03/10/2022 06:53 | 4 | Battery connect | 1.8 | 1.96 | False Pick | 0 | ||
15 | 1234 | Warehouse A | 4321 | 123789 | 9999 | BAL | 03/10/2022 05:56 | 03/10/2022 06:56 | 03/10/2022 06:55 | 2 | Charge Started | 0.8 | 2.19 | 0 | |||
16 | 1234 | Warehouse A | 4321 | 123789 | 9999 | BAL | 03/10/2022 05:56 | 03/10/2022 06:56 | 03/10/2022 06:55 | 4 | Charge Started | 0.7 | 2.04 | 0 | |||
17 | 1234 | Warehouse A | 4321 | 123789 | 9999 | BAL | 03/10/2022 06:21 | 03/10/2022 07:21 | 02/10/2022 23:23 | 7 | Gassing voltage | 478.7 | 1.97 | 0 | |||
18 | 1234 | Warehouse A | 4321 | 123789 | 9999 | BAL | 03/10/2022 06:41 | 03/10/2022 07:41 | 02/10/2022 21:29 | 5 | Charge Complete | 612 | 2.24 | 1 | |||
19 | 1234 | Warehouse A | 4321 | 123789 | 9999 | BAL | 03/10/2022 06:51 | 03/10/2022 07:51 | 03/10/2022 07:51 | Status update | 0 | 0 | 1 | ||||
20 | 1234 | Warehouse A | 4321 | 123789 | 9999 | BAL | 03/10/2022 06:56 | 03/10/2022 07:56 | 03/10/2022 06:56 | 2 | Gassing voltage | 60.7 | 2.1 | 1 | |||
21 | 1234 | Warehouse A | 4321 | 123789 | 9999 | BAL | 03/10/2022 08:52 | 03/10/2022 09:52 | 03/10/2022 01:17 | 10 | Gassing voltage | 515 | 1.95 | 1 | |||
22 | 1234 | Warehouse A | 4321 | 123789 | 9999 | BAL | 03/10/2022 08:57 | 03/10/2022 09:57 | 03/10/2022 05:17 | 3 | Gassing voltage | 279.3 | 1.98 | 1 | |||
23 | 1234 | Warehouse A | 4321 | 123789 | 9999 | BAL | 03/10/2022 09:56 | 03/10/2022 10:56 | 02/10/2022 23:23 | 7 | Charge Complete | 693 | 2.23 | 2 | |||
24 | 1234 | Warehouse A | 4321 | 987321 | 9999 | VNA | 27/10/2022 02:03 | 27/10/2022 03:03 | 26/10/2022 23:49 | 11 | Pick | 193.4 | 2.17 | 0 | |||
25 | 1234 | Warehouse A | 4321 | 987321 | 9999 | VNA | 27/10/2022 02:04 | 27/10/2022 03:04 | 27/10/2022 00:17 | 6 | Battery connect | 166.7 | 1.95 | High Voltaqe | 0 | ||
26 | 1234 | Warehouse A | 4321 | 987321 | 9999 | VNA | 27/10/2022 02:04 | 27/10/2022 03:04 | 26/10/2022 18:25 | 5 | Battery connect | 518.9 | 1.96 | High Voltaqe | 0 | ||
27 | 1234 | Warehouse A | 4321 | 987321 | 9999 | VNA | 27/10/2022 02:04 | 27/10/2022 03:04 | 27/10/2022 03:04 | 6 | Charge Started | 0.3 | 2.02 | 0 | |||
28 | 1234 | Warehouse A | 4321 | 987321 | 9999 | VNA | 27/10/2022 02:05 | 27/10/2022 03:05 | 27/10/2022 03:04 | 5 | Charge Started | 0.7 | 2.04 | 0 | |||
29 | 1234 | Warehouse A | 4321 | 987321 | 9999 | VNA | 27/10/2022 02:12 | 27/10/2022 03:12 | 26/10/2022 19:36 | 7 | Gassing voltage | 455.7 | 1.97 | 0 | |||
30 | 1234 | Warehouse A | 4321 | 987321 | 9999 | VNA | 27/10/2022 02:50 | 27/10/2022 03:50 | 26/10/2022 18:30 | 3 | Charge Complete | 559.2 | 2.24 | 1 | |||
31 | 1234 | Warehouse A | 4321 | 987321 | 9999 | VNA | 27/10/2022 18:03 | 27/10/2022 19:03 | 27/10/2022 08:30 | 1 | Pick | 193.4 | 2.17 | 0 | |||
32 | 1234 | Warehouse A | 4321 | 987321 | 9999 | VNA | 27/10/2022 18:10 | 27/10/2022 19:10 | 27/10/2022 10:56 | 2 | Battery connect | 166.7 | 1.95 | High Voltaqe | 0 | ||
33 | 1234 | Warehouse A | 4321 | 987321 | 9999 | VNA | 27/10/2022 18:18 | 27/10/2022 19:18 | 27/10/2022 18:42 | 13 | Battery connect | 518.9 | 1.96 | High Voltaqe | 0 | ||
34 | 1234 | Warehouse A | 4321 | 987321 | 9999 | VNA | 27/10/2022 18:19 | 27/10/2022 19:19 | 27/10/2022 19:18 | 2 | Charge Started | 0.3 | 2.02 | 0 | |||
35 | 1234 | Warehouse A | 4321 | 987321 | 9999 | VNA | 27/10/2022 18:31 | 27/10/2022 19:31 | 27/10/2022 14:18 | 13 | Charge Started | 0.7 | 2.04 | 0 | |||
36 | 1234 | Warehouse A | 4321 | 987321 | 9999 | VNA | 27/10/2022 20:44 | 27/10/2022 21:44 | 27/10/2022 11:32 | 4 | Gassing voltage | 455.7 | 1.97 | 0 | |||
37 | 1234 | Warehouse A | 4321 | 987321 | 9999 | VNA | 27/10/2022 21:05 | 27/10/2022 22:05 | 27/10/2022 11:50 | 9 | Charge Complete | 559.2 | 2.24 | 1 | |||
Sheet1 |
Based on this, as soon as a 0 (zero) appears in column O (Oscar) I need it to look at column H for the date/time the event started and also split this out by whichever Pool Name (column F) the battery is. For the first instance of Here it is 03/10/2022 06:00:27 and then on that day when column O is not a 0 happens at 03/10/2022 07:41:59 so a time difference of 1 hour 41 minutes and 32 seconds. This can happen numerous times within the day and other the month.
In the example above the next instance starts 27/10/2022 03:03:14 and ends at 27/10/2022 03:50:01 but then another occasion that day is at 27/10/2022 19:03:33 to 27/10/2022 21:44:03. Respectively this is 46 minutes and 47 seconds then 2 hours 40 minutes and 30 seconds giving a total for that day of 3 hours 27 minutes and 17 seconds.
These figures I then want to appear into a table like this.
Example.xlsx | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | AA | AB | AC | AD | AE | AF | AG | AH | AI | AJ | |||
2 | Date | 01/10/2022 | 02/10/2022 | 03/10/2022 | 04/10/2022 | 05/10/2022 | 06/10/2022 | 07/10/2022 | 08/10/2022 | 09/10/2022 | 10/10/2022 | 11/10/2022 | 12/10/2022 | 13/10/2022 | 14/10/2022 | 15/10/2022 | 16/10/2022 | 17/10/2022 | 18/10/2022 | 19/10/2022 | 20/10/2022 | 21/10/2022 | 22/10/2022 | 23/10/2022 | 24/10/2022 | 25/10/2022 | 26/10/2022 | 27/10/2022 | 28/10/2022 | 29/10/2022 | 30/10/2022 | 31/10/2022 | ||
3 | BAL | 102 | ||||||||||||||||||||||||||||||||
4 | VNA | 208 | ||||||||||||||||||||||||||||||||
Sheet2 |
With the duration round up to the next full minute. This is to then allow me to present in either a bar / line graph the data for the month broken down by day. I'd rather this be worked out using a formula as such as I'm not great/used Power Query and currently that training is on the back burner.
Thanks in advance for any help anyone can give.