Excel IF Function

Syntax

=IF(logical_test; [value_if_true]; [value_if_false])

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

#DEĞER!
Cause: Yanlış veri türü karşılaştırıyor
Solution:
Beklenmeyen sonuç
Cause: Metin tırnak içinde değil
Solution:

Frequently Asked Questions

Kaç iç içe EĞER yazabilirim?
64'e kadar ama 3-4 üzeri yönetilemez, ÇOKEĞER veya DÜŞEYARA kullanın.
Koşulda formül kullanabilir miyim?
Evet. =EĞER(TOPLA(A:A)>1000; "Aştı"; "Aşmadı")
Example Excel File
IF.xlsx · 59.3 KB

Enter your email to receive the example Excel file (link valid 24h).

Become a supporter — download instantly, no email

Related Functions