If Value is Greater Than A Certain Value

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the logical test result. If you want to see if a value in one cell is greater than a specific value, you can use IF function to build a formula with logical test argument is “value>certain value”, IF function can return either true result or false result based on the test result.

If Value is Greater Than A Certain Value 1

In above example, in column “Score”, if cell value is greater than 60, then “Pass” is saved in “Result”; if cell value is not reached 60, “Fail” is saved in “Result”.

 

FORMULA

To test if cell equals a certain text string, the generic formula is:

=IF(A1>X,”true value”,”false value”)

Formula in this example:

=IF(B4>60,”Pass”,”Fail”)

 

EXPLANATION

In this example, for a student, if his score is greater than 60, that means he passed the exam, and we will add comment “Pass” in “Result” column for students who pass the exam; on the other side, for those who failed exam with a score lower than 60, we will add comment “Fail” in result. To return proper value based on a comparison, IF function can handle case like this effectively.

IF function allows you to create a logical comparison between your value and reference value (for example “A1>0”), and set true value and false value what you expect to return as test results. IF function returns one of the two results based on logical comparison result.

Syntax: IF(logica_test,[value_if_true],[value_if_false])

To test if B4 is greater than 60, we can directly create a logical comparison B4>60. There is no need to add double quotes “” to quote number 60 like B4>”60”, if you test B4=”ABC” then “ABC” should be enclosed into double quotes.

In this example, value in B4 is 90, 90>60 is true, so logical test B4>60 returns true.

If Value is Greater Than A Certain Value 1

As the result is True, IF function retrieves the value from “value if true” argument, in this case it is a text “Pass”, so “Pass” is displayed in C5. But for B5, B5 is 55 which a value lower than 60, so IF retrieves False value “Fail” and return “Fail” as result.

If Value is Greater Than A Certain Value 1

In IF, true value and false value can be set as empty string “”, a text, a number or a formula, you can set what you expect to these two values, see examples below:

a.If value is not greater than 60, returns nothing by IF function.

If Value is Greater Than A Certain Value 1

b.If value is greater than 60, returns the value by IF function.

If Value is Greater Than A Certain Value 1

c.If value is greater than 60, returns the value which is equal to “value-60” by IF function.

If Value is Greater Than A Certain Value 1

Related Functions


  • Excel IF function
    The Excel IF function perform a logical test to return one value if the condition is TRUE and return another value if the condition is FALSE. The IF function is a build-in function in Microsoft Excel and it is categorized as a Logical Function.The syntax of the IF function is as below:= IF (condition, [true_value], [false_value])….

 

Related Posts

Check Dates in chronological order
sort dates in chronological order1

Assume you have a date list that has different date formats, as seen in the accompanying picture. In this instance, Excel's Sort function will fail to sort them appropriately. However, you may convert all various date formats to a particular ...

Check If a Cell is Blank or Empty
check if a cell is blank 1

The article demonstrates how to check if a range of cells is blank or empty by ISBLANK and other functions to recognize empty cells in Excel and take appropriate action based on their status. There are several circumstances in which ...

Abbreviate Names Or Words in Excel
abbreviate names1

As an MS Excel user, you might have come across a task where you need to abbreviate different names or words, and there are also possibilities that you might have done this task manually by assuming that there isn't any ...

Extract or Filter on The Top N Values with Criteria

Suppose that you are in a situation where you need to filter out the top n values from the list having few values with specific criteria, or you can say that with a particular condition, and I am also pretty ...

Extract matching values From Two Lists
extract matching values from two list1

Suppose that you are working with two lists containing few values, and you want to extract the matching values from those two lists into another separate list. You might prefer to manually extract the matching values from the two lists, ...

Extract Multiple Match Values into Separate Columns

If you have a few values/items in the excel sheet and you are thinking that with the aid of the “VlOOKUP” function you can look for a specific value, extract it and then put the matching item into the separate ...

VLOOKUP Formula | Faster Trick with 2 VLOOKUPS

This post will guide you how to use 2 VLOOKUPS function to looking up data entries from a given range of cells in Microsoft Excel. VLOOKUP with 2 lookups can be faster than a single VLOOKUP in certain scenarios. The ...

Extract all the matches with helper Column
how to extract all matches with helper column1

With Excel's powerful functions IF, INDEX, and MATCH, we can find exactly what you're looking for with a few clicks of the mouse. This step-by-step tutorial will show how easy it is to extract data using these tools and more! ...

If Cell is This Value or That Value

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of logical test. If you want to see if a cell is A or B, and if one of ...

If Cell is Not Blank
If Cell is Not Blank 6

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of created logical test. If you want to see if a cell is blank or not, and leave some ...

Sidebar