LoveByPDF logo

LoveByPDF

EN

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 StudioFormula
“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

  • if formula in excel
  • excel if formula
  • if formula in excel with example
  • how to use if formula in excel
  • if then formula in excel
  • if formula for pass fail in excel
  • if cell is blank then excel
  • if formula with text in excel
  • if formula in excel in hindi
  • if else in excel

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