Formula with IF AND

Lukma

Board Regular
Joined
Feb 12, 2020
Messages
240
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
good Day friend

I need a help with a fomula to solve in ( column F ) with IF formula withmultiple criteria

IF Column B = Totes Tanks and column D is greater or equal =>70% subtract Column C from Column E ( 20 hrs)
IF Column B = Totes Tanks and column D is greater or equal <70% subtract Column C from Column E ( 16 hrs)
AND IF column B=Bundle and C is Greater than 12 Hrs subtract column C from Column E
AND IF column B=Bundle and C is LessGreater than 12 Hrs subtract column C from Column E

Appreciate with help with formula in Column F

Regards

A BCDEF ( Formula Answer)
TomTotes Tanks25:0070%20:005:00
JameBundle16:0060%12:004:00
FrankBundle12:0070%12:0000:00
TomasTotes Tanks16:0055%16:0000:00
DanTotes Tanks20:0065%16:004:00
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Hi @Lukma

I have this doubt_
IF Column B = Totes Tanks and column D is greater or equal =>70% subtract Column C from Column E ( 20 hrs)
IF Column B = Totes Tanks and column D is greater or equal <70% subtract Column C from Column E ( 16 hrs)
You could review your rules, in both cases C minus E is subtracted
--------------
I hope to hear from you soon.
Respectfully
Dante Amor

--------------
 
Upvote 0
it looks as though all in all ifs, it ends with subtract column C from Column E
is this correct?
 
Upvote 0
Hi Dante and Exceloki

Please find remark though is KPI for criteria set hours to be subtracted but i dont seem to get the formula in Column J

Appreciate your Support

Regards

Average time spent (Cargo Volume ≥ 70%) on Totes Tanks ≤ 20Hrs.
Average time spent (Cargo Volume < 70%) on Totes Tanks ≤ 14Hrs.
Average time spent in day light operations on Bundle ≤ 12Hrs.

ILSP Vessels Time spent Offshore April-2023 (LPT).xlsx
FGHIJ
1Totes Tanks70%20:00
2Bundles14:00
3NameUnique LocationDeck %Total Hours HrsExceeded Hors
4JameBundles0%32:00FALSE
5FrankTotes Tanks70%16:00FALSE
6PeterBundles100%16:00FALSE
7thomasTotes Tanks0%1:27FALSE
8TomBundles0%0:40FALSE
9JameTotes Tanks0%1:00FALSE
10FrankBundles0%17:00FALSE
11PeterTotes Tanks50%17:00FALSE
12thomasBundles0%8:25FALSE
13TomTotes Tanks0%12:00FALSE
14JameBundles0%12:00FALSE
15FrankTotes Tanks50%9:10FALSE
16PeterBundles10%4:40FALSE
17thomasTotes Tanks100%16:00FALSE
18TomBundles80%14:00FALSE
Sheet1
Cell Formulas
RangeFormula
J4:J18J4=IF(AND(G4=$F$1,G4=$F$2,H4>$G$1),$H$1-I4)
 
Upvote 0
Hi Dante & ExceLoki

I have also try to see if i am getting this right but still i have some doubt in my formula

when i trying my formula in Column J it gives me without error Time in Days, but when i entered same formula in column K in hours i keep having some time Error #####

Appreciate if there is better way.

ILSP Vessels Time spent Offshore April-2023 (LPT).xlsx
FGHIJK
1Totes Tanks70%20:00
2Bundles14:00My Try 1
3NameCargo TpyeCargo %Total Hours HrsExceeded Time In DaysMY Formula Hours
4JameBundles0%32:000.7518:00
5FrankTotes Tanks70%32:000.5012:00
6PeterBundles100%16:000.082:00
7thomasTotes Tanks0%1:27 ###########
8TomBundles0%0:40 0:00
9JameTotes Tanks0%1:00 Met
10FrankBundles0%17:000.133:00
11PeterTotes Tanks50%17:00 Met
12thomasBundles0%8:25 0:00
13TomTotes Tanks0%12:00 Met
14JameBundles0%12:00 0:00
15FrankTotes Tanks50%9:10 Met
16PeterBundles10%4:40 0:00
17thomasTotes Tanks100%16:00-0.17###########
18TomBundles80%14:00 0:00
Sheet1
Cell Formulas
RangeFormula
J4:J18J4=IF(AND(G4=$F$2,I4>$H$2),I4-$H$2,IF(AND(G4=$F$1,H4>=$G$1),I4-$H$1,""))
K4K4=IF(AND(G4=$F$2,I4>$H$2),I4-$H$2,IF(AND(G4=$F$1,H4>=$G$1),I4-$H$1,""))
K5:K6K5=IF(AND(G5=$F$2,I5>$H$2),I5-$H$2,IF(AND(G5=$F$1,H5>=$G$1),I5-$H$1,IF(AND(G5=$F$1,H5<$G$1),I5-$H$1,"")))
K7K7=IF(AND(G7=$F$2,I7>$H$2),I7-$H$2,IF(AND(G7=$F$1,H7>=$G$1),I7-$H$1,IF(AND(G7=$F$1,H7<=$G$1),I7-H1,"Met")))
K8:K16,K18K8=IF(AND(G8=$F$2,I8>$H$2),I8-$H$2,IF(AND(G8=$F$1,H8>=$G$1),I8-$H$1,IF(AND(G8=$F$1,H8<$G$1),"Met",)))
K17K17=IF(AND(G17=$F$2,I17>$H$2),I17-$H$2,IF(AND(G17=$F$1,H17>=$G$1),I17-$H$1,IF(AND(G17=$F$1,H17<$G$1),"Met","")))
 
Upvote 0
Hi @Lukma

I have this doubt_

You could review your rules, in both cases C minus E is subtracted
--------------
I hope to hear from you soon.
Respectfully
Dante Amor

--------------
good day Dante

I have send you for review
appreciate your support if my formula is right

Regards
 
Upvote 0

Forum statistics

Threads
1,215,596
Messages
6,125,726
Members
449,255
Latest member
whatdoido

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