Example of using the if function in excel

Source: Internet
Author: User

1. In excel, select the cell to be output, and click "Insert"> "function"> "logic"> "IF" at the top of the excel file, as shown in the following figure.

2. Now a function parameter dialog box is displayed. Here we can see that the first (logical_test) indicates the condition, and the other two are the result of the condition judgment. We click the first yellow box to process the condition, as shown in the following figure.

3. now I have searched for the failed score in cell A2, that is, a2 <60. You can set the value_if_true parameter to fail, vale_if_false = pass (meaning the return value is true or false ).

4. After clicking it, the selected cell will appear. Now we are referring to the cell with a formula, and then pull it when there is an entity + number.

5. However, you may ask, isn't the score still passing, good, or excellent? How can I determine it? In fact, it is very simple, that is, you can use the IF function continuously. It is called "IF function nesting" in terms ". For example, if I want to pass the 60-70 display, the 70-80 display is good, and the 80 + display is excellent.

6. Now, in the same way as in the third line, click in if settings, and set logical_test to a2 <70 to find value_if_false.

7. In the same way, the settings are good and excellent. If you want to continue to score points later, you can also continue nesting, so the third line should not be excellent.


8. Similarly, place the cursor in the lower-right corner of the first result, and double-click it to display all the results.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.