Luckily, finding the range of a set of data is easy when using Excel functions. Here’s how to do it.
How to Find and Calculate Range in 3 Steps
The easiest way to find the range in Microsoft Excel is by using the MIN and MAX functions. The MIN function calculates the highest value in a set of data, while the MIN function calculates the smallest value. First, ensure that your data is neatly organized in your worksheet for ease of analysis. Then, you can use the MIN and MAX functions as follows: It’s possible to calculate the range of values in one shortcut step by combining these functions in one cell. To do so, we’ll use our example where the dataset is contained in cells B2 to B15.
Using these cells, the range function would look like the following:
=MAX(B2:B15)-MIN(B2-B15)
All you have to do is change the cell values to match your data.
How to Find a Conditional Range in Excel
If your set of data has a few outliers, it’s possible to calculate a conditional range that ignores the outliers. For instance, take a look at this example screenshot: Almost all of the values are between 40 and 80, yet there are two around 1,000 and the two lowest values are close to 1. If you wanted to calculate the range but ignore those values, you would need to ignore values under 5 and over 900. This is where the MAXIFS and MINIFS functions come in. MAXIFS adds a condition that ignores values over a certain number, while MINIFS ignores values lower than a certain number (with each condition separated by a comma). So, for our example, the MAX function would become:
=MAXIFS(B2:B15,B2:B15,”<900”)
And the MIN function would become:
=MINIFS(B2:B15,B2:B15,”>5”)
In this case, the total Excel formula for calculating the conditional range will be:
=MAXIFS(B2:B15,B2:B15,”<900″)-MINIFS(B2:B15,B2:B15,”>5″)
Note: The MAXIFS and MINIFS functions are only available in Excel 2019 and Microsoft Office 365, so if you’re using an older version, you will need to include the IF function separately. For example: =MAX(B2:B15)-MIN(IF(B2:B15>5,B2:B15)
Data Analysis Has Never Been Easier
Microsoft Excel is a powerful tool for analyzing data. With this tutorial, you can easily calculate the range of any dataset, even if you need to remove outliers.