Hi friends
I came across some articles, but am not too sure about it, not until I have my own data with a negative sign.
So I really don't know if I can get the average of the negative sign in Column E in my data, based on monthly criteria
appreciate someone giving me a solution, I tried all I could but still can't seem to get it right. In Column B2 where I need the formula to be
Thanks
I came across some articles, but am not too sure about it, not until I have my own data with a negative sign.
So I really don't know if I can get the average of the negative sign in Column E in my data, based on monthly criteria
appreciate someone giving me a solution, I tried all I could but still can't seem to get it right. In Column B2 where I need the formula to be
Thanks
OSMS-Onshore Jetty Operations vessels Tracking.xlsx | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | May 23 | Average of Negative | Average of Positive | ||||
2 | #DIV/0! | 0.31 | |||||
3 | |||||||
4 | Mus Num | Supply Vessel | Arrival time FWB | Permission Granted | Total Time in Days Spent Return | ||
5 | May | CECILIE-K | 01/05/23 10:00 | 01/05/23 13:40 | 0.15 | ||
6 | May | Z-OCEAN | 01/05/23 14:30 | 01/05/23 21:57 | 0.31 | ||
7 | May | SWISSCO RUBY | 02/05/23 06:00 | 01/05/23 15:00 | -15:00 | ||
8 | May | LCT-SHEWELEH | 01/05/23 16:00 | 01/05/23 16:57 | 0.04 | ||
9 | May | A-RANGER | 01/05/23 20:00 | 01/05/23 20:14 | 0.01 | ||
10 | May | ADNOC-S02 | 01/05/23 21:10 | 01/05/23 19:30 | -1:40 | ||
11 | May | ADNOC-810 | 01/05/23 01:50 | 01/05/23 19:30 | 0.74 | ||
12 | May | ADNOC-511 | 01/05/23 22:10 | 02/05/23 01:59 | 0.16 | ||
13 | May | SK MAINSTAY | 02/05/23 06:05 | 02/05/23 01:32 | -4:33 | ||
14 | May | MUTAWA-402 | 01/05/23 10:00 | 02/05/23 05:20 | 0.81 | ||
15 | May | ADNOC-512 | 02/05/23 08:10 | 02/05/23 09:00 | 0.03 | ||
16 | May | CECILIE-K | 02/05/23 09:40 | 02/05/23 00:00 | -9:40 | ||
17 | May | Z-POWER | 02/05/23 04:20 | 02/05/23 11:00 | 0.28 | ||
18 | May | ADNOC-811 | 02/05/23 09:55 | 02/05/23 00:00 | -9:55 | ||
19 | May | ADNOC-222 | 02/05/23 08:20 | 02/05/23 00:00 | -8:20 | ||
20 | May | SMIT LUMUT | 02/05/23 18:00 | 02/05/23 13:00 | -5:00 | ||
21 | May | A-RADIANT-7 | 02/05/23 09:00 | 02/05/23 14:00 | 0.21 | ||
22 | May | LCT MARWAH-1 | 02/05/23 06:00 | 02/05/23 15:00 | 0.38 | ||
23 | May | ADNOC-851 | 02/05/23 17:00 | 02/05/23 15:00 | -2:00 | ||
24 | May | AMS-ONYX | 02/05/23 10:50 | 02/05/23 15:20 | 0.19 | ||
25 | May | ATLAS-SAPPHIRE | 02/05/23 02:00 | 02/05/23 16:55 | 0.62 | ||
26 | May | M-SUPPORTER | 02/05/23 14:00 | 02/05/23 17:35 | 0.15 | ||
27 | May | Z-OCEAN | 02/05/23 10:30 | 02/05/23 18:59 | 0.35 | ||
28 | May | LCT-SHEWELEH | 02/05/23 11:10 | 02/05/23 22:14 | 0.46 | ||
Sheet2 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B2 | B2 | =AVERAGEIFS(E5:E28,E5:E28,"<0",A5:A28,A1) |
C2 | C2 | =AVERAGEIFS(E5:E28,E5:E28,">0",A5:A28,A1) |
A5:A28 | A5 | =IFERROR(EOMONTH(C5,-1)+1,"") |
E5:E28 | E5 | =IFERROR(IF((D5-C5)>0,(D5-C5),TEXT(ABS(D5-C5),"-h:mm")),"") |