Detailed explanation of Excel examples to achieve multi-interval judgment
This article brings you relevant knowledge about excel, which mainly introduces the related issues about multi-interval judgment. Everyone must have encountered the problem of multi-interval judgment, such as performance evaluation. , performance appraisal, etc. Let’s take a look at how to implement it. I hope it will be helpful to everyone.
Related learning recommendations: excel tutorial
Everyone must have encountered the problem of multi-interval judgment, such as score evaluation and performance Assessment and so on. Today I will share with you a function formula routine for multi-interval judgment.
Let’s look at the problem first. The corresponding grade must be given based on the performance in cell A1. The division rule is:
60~69, the grade is "E";
70~79, the grade is "D";
80~89, the grade is "C";
90 ~99, the grade is "B";
>=100, the grade is "A".
Let’s briefly summarize the commonly used solutions and ideas.
1. IF function
=IF(A1>=100,"A",IF(A1>=90,"B",IF(A1>=80,"C", IF(A1>=70,"D",IF(A1>=60,"E","F")))))
Judge A1 layer by layer like peeling an onion through nesting of IF functions The interval within which the value lies, and the corresponding result is returned.
If it is greater than or equal to 100, return "A"; if it is greater than or equal to 90, return "B"; if it is greater than or equal to 80, return "C"...
The advantage of this formula is that it is easy to understand, but the disadvantage is If there are multiple judgment conditions, the formula will become longer and longer.
There is another question. When using the IF function to judge multiple intervals, friends can remember a trick, that is, you can start from the highest rule part and judge downward step by step. You can also start from the lowest rule section and work your way up. The formula just now can be written as:
=IF(A1
2、LOOKUP
=LOOKUP(A1,{0,60 ,70,80,90,100},{"F","E","D","C","B","A"})
This way of writing is multi-interval judgment And returns the patterned formula of the corresponding value, which is an upgraded version of the layer-by-layer judgment of the IF function.
Note that the second parameter of LOOKUP must be processed in ascending order {0,60,70,80,90,100}.
The LOOKUP function uses A1 as the search value and returns the maximum value in the second parameter that is less than or equal to A1, that is, to find the eldest brother among all the younger brothers, and the third parameter {"F", "E", The string corresponding to the position in "D", "C", "B", "A"}.
3. Establish a comparison
The next method does not seem awesome enough. You need to create a comparison table in Excel first:
Then use the VLOOKUP function to perform an approximate matching query in the comparison table:
=VLOOKUP(A1,D2:E7,2)
There are two points here Note:
1. The first column in the comparison table is sorted in ascending order;
2. The VLOOKUP function omits the fourth parameter and returns an exact matching value or an approximate matching value. If an exact matching value is not found, the maximum value smaller than the content to be queried (A1) is returned.
Compared with other formulas, the method of establishing a comparison table seems cumbersome, but in practical applications it is more convenient to modify the standards without having to re-edit the formula.
4. MATCH function
=MID("FEDCBA",MATCH(A1,{0,60,70,80,90,100}),1)
The function of the MATCH function is to query the position of a certain content in a row or column.
In this example, the MATCH function uses the content of cell A1 as the query value, uses approximate matching to find the location of A1 in the second parameter {0,60,70,80,90,100}, and returns The result is used as the second parameter of the MID function.
The MID function intercepts the string in the text string "FEDCBA". The specified starting position of the interception is the result calculated by the MATCH function. The length of the intercepted string is 1.
This formula is relatively complicated. Friends who don’t understand it don’t have to worry about it. Just understand it briefly.
Related learning recommendations: excel tutorial
The above is the detailed content of Detailed explanation of Excel examples to achieve multi-interval judgment. For more information, please follow other related articles on the PHP Chinese website!

This tutorial explains how to calculate the median of numerical data in Excel using the MEDIAN function. The median, a key measure of central tendency, identifies the middle value in a dataset, offering a more robust representation of central tenden

Master Google Sheets COUNTIF: A Comprehensive Guide This guide explores the versatile COUNTIF function in Google Sheets, demonstrating its applications beyond simple cell counting. We'll cover various scenarios, from exact and partial matches to han

This tutorial provides a comprehensive guide to sharing Excel workbooks, covering various methods, access control, and conflict resolution. Modern Excel versions (2010, 2013, 2016, and later) simplify collaborative editing, eliminating the need to m

This tutorial explores various methods for converting .xls files to .jpg images, encompassing both built-in Windows tools and free online converters. Need to create a presentation, share spreadsheet data securely, or design a document? Converting yo

This tutorial clarifies the function of Excel names and demonstrates how to define names for cells, ranges, constants, or formulas. It also covers editing, filtering, and deleting defined names. Excel names, while incredibly useful, are often overlo

This tutorial clarifies the distinction between standard deviation and standard error of the mean, guiding you on the optimal Excel functions for standard deviation calculations. In descriptive statistics, the mean and standard deviation are intrinsi

This Excel tutorial demonstrates how to calculate square roots and nth roots. Finding the square root is a common mathematical operation, and Excel offers several methods. Methods for Calculating Square Roots in Excel: Using the SQRT Function: The

Unlock the Power of Google Sheets: A Beginner's Guide This tutorial introduces the fundamentals of Google Sheets, a powerful and versatile alternative to MS Excel. Learn how to effortlessly manage spreadsheets, leverage key features, and collaborate


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 English version
Recommended: Win version, supports code prompts!

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 Mac version
God-level code editing software (SublimeText3)

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Atom editor mac version download
The most popular open source editor