Excel IF Function
Syntax
What is IF Function?
IF tests a logical condition and returns one value if TRUE and another if FALSE. It's Excel's core decision-making function.
Syntax
=IF(logical_test, value_if_true, value_if_false)
Examples
=IF(B2>=60, "Pass", "Fail")
=IF(C2>5000, C2*0.9, C2)
=IF(AND(B2>=60, C2="Active"), "Success", "Other")
See Turkish version for detailed examples.
Modern Alternative: IFS
For multiple conditions, use IFS instead of nested IFs:
=IFS(B2>=90, "A", B2>=80, "B", B2>=70, "C", B2>=60, "D", TRUE, "F")
Examples
| # | Title | Formula | Result |
|---|---|---|---|
| 1 | Geçti/Kaldı | =EĞER(B2>=60;"Geçti";"Kaldı") |
Geçti veya Kaldı |
| 2 | İndirim uygula | =EĞER(C2>5000;C2*0,9;C2) |
İndirimli veya orijinal tutar |
| 3 | İç içe EĞER (harf notu) | =EĞER(B2>=90;"A";EĞER(B2>=80;"B";"Diğer")) |
A, B veya Diğer |
Common Errors
Solution:
Solution:
Frequently Asked Questions
Enter your email to receive the example Excel file (link valid 24h).