Conditions · IF
IF formula in Excel - with examples in plain words
IF checks a condition and returns one value when it is true and another when it is false.
=IF(logical_test, value_if_true, [value_if_false])Write it for my sheet
Examples
| Type this in the Formula Studio | Formula |
|---|---|
| “if D2 greater than 50000 then High else Low” | =IF(D2>50000,"High","Low") |
| “if D2 50000 and above then High else Low” | =IF(D2>=50000,"High","Low") |
| “agar D2 50000 se zyada hai to High warna Low” | =IF(D2>50000,"High","Low") |
| “if C2 is blank then 0 else D2” | =IF(C2="",0,D2) |
People also search for
FAQ
How do I check if a cell is blank with IF?
Use =IF(C2="",0,D2) or =IF(ISBLANK(C2),0,D2). The first also treats a formula returning "" as blank.
Why does IF return FALSE?
You left out value_if_false. =IF(D2>50000,"High") returns FALSE when the test fails; add a third argument, e.g. "Low" or "".
Can LoveByPDF write this formula for me?
Yes. Open your Excel file in the Excel Agent's Formula Studio, click a cell and type what you need - e.g. "if D2 greater than 50000 then High else Low" - you get the formula, a preview on your sheet and an explanation, then insert it.
Related formulas
- IF (nested), AND, ORNested IF and IF with AND / OR in Excel
- IFERRORIFERROR in Excel - hide #DIV/0!, #N/A and other errors
- SUMIF, SUMIFSSUMIF and SUMIFS in Excel - add up with conditions
- COUNTIF, COUNTIFSCOUNTIF in Excel - count cells that match (attendance P / A / L)
- SUMSUM formula in Excel - add up cells, rows and columns
- AVERAGEAVERAGE formula in Excel - the mean of a range
- COUNT, COUNTA, COUNTBLANKCOUNT vs COUNTA vs COUNTBLANK - counting cells in Excel
- MAX, MINMAX and MIN in Excel - highest and lowest value