Can anybody please kindly help me revise the formula I have in cell G4 and I4. For cell G4, I need to get the total of cell B4 and E4 multiplied by 0,1455 if value of cell A4 is equal to “AT SEA” or begins with “EOSP” and value of cell D4 is “HFO”. If value of cell D4 is “MGO” , cell G4 should return a value of 0, even if cell A4 is equal to “AT SEA” or begins with “EOSP”.
The reverse for cell I4. , I need to get the total of cell B4 and E4 multiplied by 0,1455 if value of cell A4 is equal to “AT SEA” or begins with “EOSP” and value of cell D4 is “MGO”. If value of cell D4 is “HFO” , cell I4 should return a value of 0, even if cell A4 is equal to “AT SEA” or begins with “EOSP”.
I hope this can be done because the formulas in cells H2, H3, J2 & J3 are doing these.
Thank you very much in advance for any help.
The reverse for cell I4. , I need to get the total of cell B4 and E4 multiplied by 0,1455 if value of cell A4 is equal to “AT SEA” or begins with “EOSP” and value of cell D4 is “MGO”. If value of cell D4 is “HFO” , cell I4 should return a value of 0, even if cell A4 is equal to “AT SEA” or begins with “EOSP”.
I hope this can be done because the formulas in cells H2, H3, J2 & J3 are doing these.
Thank you very much in advance for any help.
Excel 2010 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | |||
1 | SEA | PORT | FUEL | SEA | PORT | HFO S | HFO P | MGO S | MGO P | |||
2 | AT PLACE | 1 | 2 | HFO | 2 | 2 | 0.58 | 0.00 | ||||
3 | AT PLACE | 1 | 2 | MGO | 2 | 2 | 0.00 | 0.58 | ||||
4 | AT SEA | 1 | 2 | MGO | 2 | 2 | 0.44 | 0.44 | ||||
5 | AT SEA | 1 | 2 | HFO | 2 | 2 | 0.44 | 0.44 | ||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
H2 | =IF(A2="AT SEA",0,IF(LEFT(A2,4)="EOSP",0,IF(D2="MGO",0,(C2+F2)*0.1455))) | |
H3 | =IF(A3="AT SEA",0,IF(LEFT(A3,4)="EOSP",0,IF(D3="MGO",0,(C3+F3)*0.1455))) | |
J2 | =IF(A2="AT SEA",0,IF(LEFT(A2,4)="EOSP",0,IF(D2="HFO",0,(C2+F2)*0.1455))) | |
J3 | =IF(A3="AT SEA",0,IF(LEFT(A3,4)="EOSP",0,IF(D3="HFO",0,(C3+F3)*0.1455))) | |
G4 | =IF(A4="AT SEA",(B4+E4)*0.1455,IF(LEFT(A4,4)="EOSP",(B4+E4)*0.1455,IF(D4="HFO",(B4+E4)*0.1455,0))) | |
G5 | =IF(A5="AT SEA",(B5+E5)*0.1455,IF(LEFT(A5,4)="EOSP",(B5+E5)*0.1455,IF(D5="HFO",(B5+E5)*0.1455,0))) | |
I4 | =IF(A4="AT SEA",(B4+E4)*0.1455,IF(LEFT(A4,4)="EOSP",(B4+E4)*0.1455,IF(D4="MGO",(B4+E4)*0.1455,0))) | |
I5 | =IF(A5="AT SEA",(B5+E5)*0.1455,IF(LEFT(A5,4)="EOSP",(B5+E5)*0.1455,IF(D5="MGO",(B5+E5)*0.1455,0))) |
Last edited: