Quick, clean, and to the point

If cell is greater than

Excel formula: If cell is greater than
Generic formula 

To take one action when a cell is greater than a certain value, and another when not, you can use the IF function. In the example shown, the formula in cell F6 is:


If you want to do something specific when a cell value is greater than a certain value, you can use the IF function to test the value, and do one thing if the result is TRUE, and (optionally) do another thing if the result of the test is FALSE.

In the example shown, we are using this formula in cell F6.


This formula simply tests the value in cell E6 to see if it's greater than 30. If so, the  test returns TRUE, and the IF function returns "Yes" (the value if TRUE).

If the test returns FALSE, the IF function returns "No" (the value if FALSE).

Return nothing if FALSE

You might want to display "Yes" if invoices or overdue and nothing if not. This makes the report cleaner, and easier to read. In that case, simple use an empty string ("") for the value if false:


IF function example - return empty string

Dave Bruns

Excel Formula Training

Formulas are the key to getting things done in Excel. In this accelerated training, you'll learn how to use formulas to manipulate text, work with dates and times, lookup values with VLOOKUP and INDEX & MATCH, count and sum with criteria, dynamically rank values, and create dynamic ranges. You'll also learn how to troubleshoot, trace errors, and fix problems. Instant access. See details here.

Download 100+ Important Excel Functions

Get over 100 Excel Functions you should know in one handy PDF.