MINIFS and MAXIFS functions in Excel: uses, tricks, and examples

Last update: 17/07/2025
Author Isaac
  • MINIFS and MAXIFS allow you to filter minimum and maximum values based on multiple criteria.
  • Proper data organization is essential for these functions to function properly.
  • Functions can be combined and nested with others for advanced analysis in Excel.

minifs and maxifs

Mastering data analysis with Excel is one of the most valuable skills for anyone managing information in any company or project. When it comes to filtering and comparing large amounts of data, the MINIFS and MAXIFS functions become your best allies for streamlining calculations and extracting strategic information without getting lost in complex formulas.

In recent years, Excel has incorporated improved functions for finding minimum and maximum values ​​under specific conditions, something that previously required tricks and conservative combinations. If you want to use these tools like a true professional and stop wasting time with manual processes, stay tuned: here's a comprehensive guide full of practical examples to master MINIFS and MAXIFS , solve common headaches, and get the most out of your spreadsheets.

What do the MINIFS and MAXIFS functions provide?

With the release of Excel 2016 , these functions were added for users who need to filter data and find the minimum or maximum value within a range based on one or more criteria. This is especially useful for working with large databases , segmenting by dates, departments, products, regions, or any column you need to use as a filter.

MINIFS and MAXIFS analyze data based on specific conditions you define, without resorting to cumbersome array formulas or complicated manual filters. Their flexibility allows up to 126 pairs of criteria/ranges, adapting to virtually any query you might need to perform.

Applications and advantages in data analysis

The usefulness of these functions goes far beyond simply finding the highest or lowest number. Do you work in finance, sales, human resources, marketing, or education? Regardless of your sector, MINIFS and MAXIFS facilitate tasks such as:

  • Detect months with the best and worst revenue based on campaigns or periods.
  • Analyze minimum and maximum academic results conditioned by areas, classes or exams.
  • Control the lowest stock levels of a product only in a specific province.
  • Track a patient's lowest blood pressure between visits or the best clinical outcome in a group.
  • Identify the lowest-scoring employee on a competency, but only among those on a specific shift.
  Repair: Incorrect WiFi Password Difficulty on iPhone

In all cases, the accuracy and speed of the analysis improve dramatically . Manual errors are eliminated, the process of obtaining answers is automated, and dashboards can be created that update automatically when new data is added.

Keys to correctly configure and organize data

Excel functions minifs maxifs

The magic of MINIFS and MAXIFS works, but only if the data is clean and well-structured. Here are the essential steps to get the most out of these features:

  • Data Cleaning: Remove duplicates, correct errors, and ensure there are no empty rows or inconsistent data in the columns involved.
  • Tabular format: Each variable should be in a separate column, and each row should be a separate observation. Use clear headings.
  • Aligned criteria: All ranges used (data and criteria) must have the same size.
  • Named ranks: If you work with the same data frequently, name your ranges to avoid errors and improve the readability of your formulas.

Remember, a sloppy structure is often a source of errors in results or crashes in the spreadsheet.

Detailed syntax and how to write MINIFS/MAXIFS

The syntax is simple, but there are important details to avoid errors:

  • MINIFS(minimum_range, criteria_range1, criterion1, , …)
  • MAXIFS(max_range, criteria_range1, criteria1, , …)

In both functions, the first argument is the range of values ​​from which you want to find the minimum or maximum. Then, you add pairs of criteria and conditions . For example:

  • =MINIFS(A2:A100, B2:B100, «>=20»): Finds the lowest value in A2:A100, only among those rows where B2:B100 is greater than or equal to 20.
  • =MAXIFS(D2:D100, E2:E100, «Sales», F2:F100, «2023»): Returns the largest value in D2:D100 only for rows where E2:E100 is “Sales” and F2:F100 is “2023”.

Criteria can be constructed using operators such as ">", "<", ">=", "<=", exact text, or cell references. It's important to remember that text criteria must be enclosed in quotation marks when they are not references to cells with numeric values.

Practical examples: MINIFS and MAXIFS in daily action

These examples illustrate how to apply these functions in everyday tasks:

  • Minimum sales of a product in a region:
    =MINIFS(Sales, Product, "Sneakers", Region, "North")
  • Highest grade of a female student in Mathematics:
    =MAXIFS(Grades, Sex, "Female", Subject, "Mathematics")
  • Minimum temperature during a heat wave in August:
    =MINIFS(Temperature, Month, «August», Event, «Heat Wave»)
  • Maximum available inventory of active products:
    =MAXIFS(Stock, Status, "Active")
  Configuring security in Excel macros: a step-by-step guide

Looking for something more advanced? You can combine criteria, for example:
=MAXIFS(Sales, Product, "A", Region, "South", Month, ">=6", Month, "<=8")
This example filters the peak sales of product A in the South region only from June to August, inclusive.

Nesting and Combining: When the Basics Fall Short

One of the great advantages of Excel is the ability to nest functions , that is, to place one inside another to solve more complex cases:

  • Conditional analysis:
    =MAXIFS(A2:A10, B2:B10, ">=100", C2:C10, "<=200")
    Returns the largest value in A2:A10 where B2:B10 is at least 100 and C2:C10 is at most 200.
  • With IFERROR to manage errors:
    =IFERROR(MINIFS(A2:A10, B2:B10, ">100"), "No data")
  • Using INDIRECT for dynamic ranges:
    =MAXIFS(INDIRECT("A"&F2&":A"&F3), B2:B10, "Active")
  • Merger of SUMIFS and MAXIFS:
    =MAXIFS(SUMIFS(D2:D10, A2:A10, «ProductX»), C2:C10, «>5000»)

These combinations allow for more precise information tailored to the needs of dynamic reports and dashboards.

Common errors and how to fix them

Even the most experienced experts face difficulties. Here are the most common problems and their solutions:

  • Inequality in range size: If the data ranges and criteria do not match, Excel will display a #WORTH!Always check that everyone has the same number of rows or columns.
  • Non-numeric data in calculation ranges: The presence of empty text or cells can generate errors #NUM!. Clean data or convert it to numbers with =VALUE().
  • Incorrect syntax in criteria: Use quotes for text and operators, for example, ">=10".
  • Badly structured array constants: If you use multiple criteria in arrays, they should be structured like this: {«>=10», «<=20»}.
  • Hidden data: Remember MINIFS y MAXIFS They don't ignore hidden rows or sheets. If you don't want to consider them, filter them out first.
  • Unforeseen errors: Usa IFERROR to handle errors and display clear messages in the absence of data.
  • Performance issues with high volumes: Limit ranges to the necessary data and use Excel tables to optimize calculations.

Good practices if you work with a lot of data

For files with thousands of rows or multiple sheets, consider these tips:

  • Convert ranges to tables (Ctrl+T) for more secure and automatic references.
  • Avoid volatile formulas like OFFSET or INDIRECT, unless it is essential, because they slow down the file.
  • Use matrix formulas sparingly: Prefers direct MINIFS and MAXIFS and reserves matrix formulas for strictly necessary cases.
  • Validate data entry: This way you prevent future mistakes.
  • Use hardware suitable to handle large volumes of information.
  • Distribute the data across multiple sheets to keep management simple.
  • Keep Excel up to date: Recent versions improve performance and offer additional features.
  How to fix inverted colors in Windows 10

How to integrate MINIFS and MAXIFS into your reports and dashboards

These automatic functions for calculating minimums and maximums with flexible criteria are essential in sales, human resources, and inventory analysis dashboards. They allow dashboards to display results in real time, without having to modify formulas with each data update.

Want to segment customers by purchase level? Compare regions, seasons, or products? Design tables and charts linked to MINIFS and MAXIFS and you'll improve the efficiency and accuracy of your analyses.

Table of clear examples of use

A B C
ID Punctuation in Spanish Section
123 30 B
102 28 A
157 29 A
189 19 B

Formulas and results:

  • =MINIFS(A2:A5, B2:B5, «>25», C2:C5, «A»): Returns 102, which is the lowest ID with a score greater than 25 in section A.
  • =MINIFS(A2:A5, B2:B5, «>25», C2:C5, «B»): Returns 123.
  • =MINIFS(A2:A5, B2:B5, «<35», C2:C5, «B»): Returns 123.
  • =MINIFS(A2:A5, B2:B5, «>35», C2:C5, «B»): Returns 0, indicating that there is no data that meets it.

Additional notes and recommendations

  • If no data meets the criteria, MINIFS and MAXIFS return 0 by default.
  • It's critical that the data ranges and criteria are the same size; otherwise, Excel will display an error.
  • Combine these functions with others such as FORMULAS AND FUNCTIONS in Excel to create more comprehensive reports.

By applying these concepts, data management and analysis in Excel becomes much more efficient and reliable. From small offices to large corporations, working with automated, accurate, and customizable reports reduces working hours and allows for more time to be dedicated to interpreting results and developing strategies.

Excel does not open-4
Related articles:
Most common errors in Excel formulas and how to fix them
Isaac

Isaac

Passionate writer about the world of bytes and technology in general. I love sharing my knowledge through writing, and that's what I'll do on this blog, show you all the most interesting things about gadgets, software, hardware, tech trends, and more. My goal is to help you navigate the digital world in a simple and entertaining way.