IF with multiple condition

Lukma

Active Member
Joined
Feb 12, 2020
Messages
259
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
HI Friends

i need an Assistance with a formula am little confused In, i have tried with but am getting just one result.
Appreciate good friends to help with formula and how to go about it.

IF column A=Rigs&Barge and Column B is Greater >= 70% Then Result should be Cargo Valume >70%
IF Column A=Rigs&Barges and Column B is Less than <70% Then Result should be Cargo Valume <70%
IF Column A=Complex and Column C is Greater Than 12:00 Then Result should be " Day light Complexes 12Hrs"

Appreciate any help on how to get the formula done

Thanks & Regards :)
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Hello,

This should work:

Excel Formula:
=IF(AND(A2="Complex",C2>0.5),"Day light Complexes 12Hrs",IF(AND(A2="Rigs&Barge",B2>=0.7),"Cargo Valume >70%",IF(AND(A2="Rigs&Barge",B2<0.7),"Cargo Valume <70%")))
 
Upvote 0
IF Column A=Complex and Column C is Greater Than 12:00 Then Result should be " Day light Complexes 12Hrs"
What should happen if Col A=Complex and Col C is less than or equal to 12:00?

What should happen if Col A is not Complex and not Riggs&Barges? Or is that not possible with your data?
 
Upvote 0
What should happen if Col A=Complex and Col C is less than or equal to 12:00?

What should happen if Col A is not Complex and not Riggs&Barges? Or is that not possible with your data?
Hi Peter_SS

Its Nice hearing from you Hope all is well and family

if Col A=Complex and Col C is less than or equal to 12:00? Day light Complexes <12Hrs

Regards
 
Upvote 0
What should happen if Col A is not Complex and not Riggs&Barges?
No answer was given to that question but see if this does what you want.

23 11 23.xlsm
ABCD
1
2Rigs&Barge80%Cargo Valume >=70%
3Rigs&Barge55%Cargo Valume <70%
4 
5Other text 
6Complex13:00Day light Complexes 12Hrs
7Complex8:00Day light Complexes <12Hrs
Lukma
Cell Formulas
RangeFormula
D2:D7D2=IF(A2="Rigs&Barge","Cargo Valume "&IF(B2>=0.7,">=70%","<70%"),IF(A2="Complex","Day light Complexes "&IF(C2>0.5,"12Hrs","<12Hrs"),""))
 
Upvote 0
No answer was given to that question but see if this does what you want.

23 11 23.xlsm
ABCD
1
2Rigs&Barge80%Cargo Valume >=70%
3Rigs&Barge55%Cargo Valume <70%
4 
5Other text 
6Complex13:00Day light Complexes 12Hrs
7Complex8:00Day light Complexes <12Hrs
Lukma
Cell Formulas
RangeFormula
D2:D7D2=IF(A2="Rigs&Barge","Cargo Valume "&IF(B2>=0.7,">=70%","<70%"),IF(A2="Complex","Day light Complexes "&IF(C2>0.5,"12Hrs","<12Hrs"),""))
Hi Peter

Good day it nice hearing from you and i hope all family are doing just great, so sorry for late reply i was out from office before getting your response question

Please here is my data and example of what i need formula to get for me though it little complex for me to get around the formula any way hearing from you i believe it will definitely be resolved :)

Appreciate you to look into it for me anyway i will always try that you have provided.

Thanks and Regards

Book2
ABCDEFG
2LocationKPI CriteriaDeck % Loaded Per VoyageAccumulated Hours Per VoyageKPI Exceeded Hrs per voyageIF FormulaExample of what I need
3Rig MehzemRigs&Barges60%15:01:0FALSECargo Volume < 70% (Not Met)
4Rig Al NoofRigs&Barges70%12:00:0Cargo Volume ≥ 70%(Met)
5Rig SMS EssaRigs&Barges40%13:00:0Cargo Volume <70%( Met)
6Rig YemillahRigs&Barges25%21:07:0Cargo Volume ≥ 70%(Not Met)
7Umm Lulu ComplexComplex70%8:380:0Day Light Hrs. @Complexes ≤ 12Hrs. (Met)
8USSCComplex60%0:240:0Day Light Hrs. @Complexes ≤ 12Hrs. (Met)
9NPCC Al Maryah 0%0:00:0
10Nasr ComplexComplex60%16:04:0Day Light Hrs. @Complexes ≥ 12Hrs. (Not Met)
11WOW Rig Diyina00%0:00:0
Sheet4
Cell Formulas
RangeFormula
B3:B11B3=VLOOKUP(A3,$M$3:$P$17,2,0)
C3:C10C3=VLOOKUP(A3,$M$3:$O$17,3,0)
D3:D11D3=SUMIFS($P$3:$P$17,$M$3:$M$17,A3)
E3:E11E3=IF(B3="Rigs&Barges", IF(C3="*>=0.7*",IF(D3>TIME(20,0,0), D3-TIME(20,0,0),0),IF(D3>TIME(14,0,0), D3-TIME(14,0,0),0)),IF(AND(B3="Complex",D3>TIME(12,0,0)),D3-TIME(12,0,0),0))
C11C11=VLOOKUP(A11,$M$3:$O$17,2,0)
 
Upvote 0
1700717561077.png


This is still unclear. If the time is exactly 12:00 should it be "Met" or "Not Met"?

Thanks for the XL2BB sample data though. That makes things much clearer and easier to copy for testing. (y)
 
Upvote 0
View attachment 102352

This is still unclear. If the time is exactly 12:00 should it be "Met" or "Not Met"?

Thanks for the XL2BB sample data though. That makes things much clearer and easier to copy for testing. (y)
This is still unclear. If the time is exactly 12:00 should it be "Met" or "Not Met"? If the time is less or equal to 12:00 mean "Met" and if Time is greater than 12:00 mean "Not Met"

IF Col-B=Rigs&barges and Col-C <70% and Col-D >14:00 answer should be Cargo Volume < 70% (KPI Not Met)
IF Col-B=Rigs&barges and Col-C <70% and Col-D <14:00 answer should be Cargo Volume < 70% (KPI Met)
IF Col-B=Rigs&barges and Col-C >=70% and Col-D >20:00 answer should be Cargo Volume >= 70% (KPI Not Met)
IF Col-B=Rigs&barges and Col-C <70% and Col-D <20:00 answer should be Cargo Volume < 70% (KPI Met)
IF Col-B=Complex and Col-C Col-D <=12:00 answer should be Cargo Volume < 70% (KPI Met)
IF Col-B=Complex and Col-C Col-D >12:00 answer should be Cargo Volume < 70% (KPI Not Met)

Further Please can you also look into my formula in Column E and if it is right , once i take out the wildcat "*>=0.7*"

Regards :)
 
Upvote 0
How about:
Excel Formula:
=IF(B3="Complex",IF(D3>0.5,"Day light Complexes > 12Hrs","Day light Complexes <=12Hrs"),IF(B3="Rigs&Barges",IF(C3<0.7,"Cargo Volume <70%","Cargo Volume >=70%"),""))
 
Upvote 0
I'm afraid that I am getting lost as the expected results keep changing.
 
Upvote 0

Forum statistics

Threads
1,223,898
Messages
6,175,272
Members
452,628
Latest member
dd2

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