Formula to check number of days productive and non Productive

Lukma

Board Regular
Joined
Feb 12, 2020
Messages
240
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Hi Friends

Am Having trouble with sum subtraction formula to get the numbers of days a vessel have works on my report

In Column C17 i Have all the Productive Time Sum In Days
In Column C34 i Have all the Non-Productive Time Sum In Days
In Column C37 I Have the both my Maintenance and Port crew Sum time in Days
In Column C38 I Have my Off-Hire

Now my Problem is In Column C39 for my Result and solution i need is to get the numbers of Days Each vessels have work in a month
IF C17 plus C34 = 30 days or 31 days then Subtract C37 and C38 to Get the Days Vessels Work in a Month in Column C39

That means i need to sum C17 and C34 and subtract C37 and C38 and my result should be in Column C39 for the numbers of Days vessel worked in a Full Month

Appreciate any help with the solution

Supply Vessels Utilization Reports 2021.xlsx
BCDEFGHIJKLMNOP
7Supply Vessels Productive TimeADNOC-1010ADNOC-1011ADNOC-221ADNOC-222ADNOC-223ADNOC-224ADNOC-225ADNOC-226ADNOC-227ADNOC-228ADNOC-229ADNOC-230A-CHLOEAMS-RUBY
8Loading/ Offload ( Adnoc L&S Base )4.32.05.33.75.54.70.91.42.01.24.23.83.33.4
9Loading/ Offload (Free-Port) 0.1            
10Loading/ Offload Drilling / Artificial Islands5.24.26.40.43.34.00.2 0.11.00.2 1.5 
11Loading/ Offload Jackup Rigs  3.815.05.36.323.52.619.216.718.212.96.56.3
12Loading/ Offload Barges    0.1       1.01.2
13Loading/ Offload ( Complexes )              
14Loading/ Offload Prd-Island (DAS / Arzanah/ ZIRKU)0.1    0.0       0.0
15Others / Marine/Rig Move              
16In Transit / Steaming to Location 12.812.49.96.69.38.74.02.48.38.65.39.210.210.9
17Sub Total 22.418.725.525.823.523.828.66.429.627.527.925.922.521.8
18Supply Vessel's Non-Productive Time
19Waiting Drilling Supply Material 0.1            0.1
20Waiting For Adnoc L&S Base Operations Readines0.51.5 0.00.30.60.50.30.20.30.90.81.90.9
21Waiting For Free-Port/Mus-Port Readines 1.0       0.1    
22Waiting On VTS Permission 0.3  0.1 0.8 0.10.00.70.7  
23Waiting On Channel Closure              
24Waiting Berthing Adnoc L&S0.80.50.40.31.50.7  0.10.1  0.10.1
25Waiting On DayLight Complexes              
26Waiting On Prd-Island (DAS / Arzanah/ ZIRKU)     1.2        
27Waiting Instruction Rigs/Island  1.81.11.80.9      1.82.9
28Waiting On Jackup Rigs      0.1 2.6   2.5 0.4
29Waiting on Barges & Field Vessels              
30Waiting On DayLight / Artificial Islands/ Prd-Island1.31.81.1 2.21.80.2     0.5 
31Waiting Instruction Artifical Island3.35.6  0.51.0   1.1  0.1 
32Waiting On Weather ( Wind Speed / Sea Condition ) 1.60.51.30.00.3    0.80.3 0.23.4
33Waiting on Weather (Fog / poor visibility)            0.1 
34Sub Total 7.611.24.61.46.56.21.52.90.42.52.04.14.77.8
35Maintenance    2.8   20.6    2.8 
36Port Crew Change / Supply       0.1      
37Sub- TOTAL   2.8   20.8    2.8 
38Off-Hire             0.4
39TOTAL Days303030273030309303030302730
40   2.8   20.8    2.80.4
41Vessel Availability100%100%100%100%100%100%100%100%100%100%100%100%100%100%
42   On Mnt's   On Mnt's    On Mnt's 
43Productive Time75%63%85%95%78%79%95%69%99%92%93%86%83%74%
Supply_Vessels_Utilization
Cell Formulas
RangeFormula
C38:P38,C35:P36,C8:P16C8=IFERROR(1/(1/SUMIFS(INDEX($BC$8:$BZ$1574,0,MATCH($B$6,$BC$7:$BZ$7,0)),$BA$8:$BA$1574,C$7,$BB$8:$BB$1574,$B8)),"")
C17:P17C17=IFERROR(1/(1/SUM(C8:C16)),"")
C19:P33C19=IFERROR(1/(1/SUMIFS(INDEX($BC$8:$BZ$1547,0,MATCH($B$6,$BC$7:$BZ$7,0)),$BA$8:$BA$1547,C$7,$BB$8:$BB$1547,$B19)),"")
C34:P34C34=IFERROR(1/(1/SUM(C19:C33)),"")
C37:P37C37=IFERROR(1/(1/SUM(C35:C36)),"")
C39:P39C39=SUM(C17,C34)
C40:P40C40=IFERROR(1/(1/SUM(C37:C38)),"")
C41:P41C41=IFERROR(SUM(C17,C34)/C39,"")
C42:P42C42=IF(C35="",C35,IF(C35>=0.1,"On Mnt's",IF(C35="","")))
C43:P43C43=IFERROR(SUM(C17)/C39,"")
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
How about this? It adds C17 and C34, and only subtracts C37 and C38 if the total days is 30 or more
=C17+C34 -(C17+ C34>=30)*(C37+ C38)
 
Upvote 0
IF C17 plus C34 = 30 days or 31 days , thats your desire condition, but what you want if this ans did not come? I mean if C17+ C34 <30, which result you want?
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,198
Members
449,072
Latest member
DW Draft

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