Professional Documents
Culture Documents
1 First
2 13 20
3 12 2
4 44 325
5 100 10
6 3 50
7 40 100
Using the examples above, your formulas would look something like this:
A B C D
1 First
2 13 20=IF(A2>B2,"yes","no") 500
3 12 2=IF(A3>B3,1,2)
4 44 325=IF(A4>B4,"yes","")
2 13 20no 500
3 12 2 1
4 44 325
6 3 50 500
7 40 100 50
Complex IF
For this, let’s use some new data. Open a blank workbook in Excel and enter this data:
A B C D E
IF
=IF(A2>B2,"yes","no")
=IF(A3>B3,1,2)
=IF(A4>B4,"yes","")
1.
2. =IF((AND(D2>5,C2>10000)),2,1)
3. =IF((OR(D2>5,C2>10000)),2,1)
4. =IF((AND(D2>5,C2>10000)),3,(IF((OR(D2>5,C2>10000)),2,1)))
5. =IF((B2="East"),4,IF((B2="West"),3,IF((B2="North"),2,IF((B2="South"),1,"")
)))
6. =IF((AND(CONDITION)),(IF((OR((CONDITION)),TRUE,FALSE),FALSE)