Home › IF
Excel IF Function — Syntax, Example & Tips
Returns one value if a condition is true and another if it is false.
Syntax
=IF(logical_test, value_if_true, value_if_false)
Example
=IF(C2>100, "عالي", "عادي")
If C2 is over 100 write High, otherwise Normal.
Tip
For many conditions use IFS instead of nesting IF.
Want an expert to do it for you?
Gomaa Intelligence turns your data into clear reports and decisions. Tell us your problem and we will reply.
FAQ
What does IF do?
Returns one value if a condition is true and another if it is false.
How do I use IF?
=IF(C2>100, "عالي", "عادي") — If C2 is over 100 write High, otherwise Normal.
Related functions
VLOOKUP · XLOOKUP · SUMIFS · COUNTIFS · IFERROR · TEXTJOIN · TRIM · COUNTIF · SUMPRODUCT · UNIQUE · FILTER · DATEDIF · TEXT