Formula Errors

How to Fix MAXIFS #NAME Error in Excel 2016

Tauseeq MagsiTauseeq Magsi Oct 28, 2026 869 views

Question details

The user needs a way to calculate a maximum value based on multiple conditions in Excel 2016, as the MAXIFS function is unsupported and results in an error.

How to Replace MAXIFS in Excel 2016 When It Returns a #NAME? Error
Product
Microsoft Excel 2016
Device & OS
not provided
Scenario
Attempting to extract the maximum value from a dataset that meets specific criteria across different columns in an older version of Excel.
Observed behavior
The MAXIFS function returns a #NAME? error because the function was introduced in later Excel versions and does not exist in Excel 2016.
Before you start

Verify your Excel version by going to File > Account. If you are using Excel 2016 or earlier, ensure your dataset ranges are perfectly aligned and equal in size before applying alternative array formulas.

Solution 1Recommended

Use a Nested MAX and IF Array Formula

Replicate the MAXIFS logic by combining the MAX and IF functions in an array formula, which forces Excel to evaluate multiple conditions simultaneously.

Since Excel 2016 does not natively recognize the MAXIFS function, typing it directly will trigger a #NAME? error. However, you can achieve the exact same conditional maximum calculation by nesting IF statements inside a MAX function.

Because this involves evaluating multiple rows at once, it must be executed as an array formula. This means using a specific keyboard shortcut rather than just pressing Enter.

1
Select the target cell

Click on the cell where you want the calculated maximum value to be displayed.

2
Enter the nested formula

Type the formula combining MAX and IF. For example: =MAX(IF(data!$C$2:$C$338411='All Countries'!$A6, IF(data!$D$2:$D$338411>='All Countries'!$B$2, IF(data!$D$2:$D$338411<'All Countries'!$B$3, data!$AK$2:$AK$338411))))

3
Confirm as an array formula

Do not simply press the Enter key. Instead, hold down Ctrl + Shift + Enter simultaneously. Excel will automatically add curly braces {} around the formula to indicate it is an array formula.

Use a Nested MAX and IF Array Formula
Expanding Your Data Range: When adding new data to your spreadsheet, insert the new rows within the existing data range (e.g., between row 2 and 338411) rather than at the very bottom. This ensures the array formula dynamically expands to include the new entries without requiring manual updates.
Native Formula Support

Calculate Conditional Maximums Easily with WPS Office

WPS Spreadsheet natively supports the MAXIFS function out of the box. You don't need to struggle with complex Ctrl+Shift+Enter array formulas or install third-party add-ins to get your work done.

  1. 1. Open your file in WPS Spreadsheet: Launch WPS Office and open your existing Excel workbook containing the conditional data.
  2. 2. Enter the MAXIFS formula: Select the target cell and simply type your standard formula: =MAXIFS(max_range, criteria_range1, criteria1...).
  3. 3. Press Enter to calculate: Hit Enter. WPS Spreadsheet instantly calculates the result without returning a #NAME? error and without requiring Ctrl+Shift+Enter.
Full native support for modern formulas including MAXIFS, MINIFS, and XLOOKUP.Seamless format compatibility with Microsoft Excel (.xlsx, .xls) files.Eliminates the need for complicated legacy array formulas.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my array formula return 0 instead of the maximum value?

This commonly happens if the criteria text does not match the actual data, if the array ranges are not completely identical in size, or if the target values are formatted as text instead of numbers. Ensure all ranges (e.g., $C$2:$C$100 and $D$2:$D$100) are exactly the same length.

Do I need to press Ctrl+Shift+Enter every time I edit the formula?

Yes. In Excel 2016 and older versions, every time you double-click or modify an array formula, you must re-confirm it by pressing Ctrl+Shift+Enter. If you only press Enter, the formula will break or return incorrect results.

Which versions of Excel support the MAXIFS function natively?

The MAXIFS function is natively built into Excel 2019, Excel 2021, and Microsoft 365. If you are using Excel 2016, 2013, or older, it will result in a #NAME? error.

Can I replace MINIFS in Excel 2016 using the same method?

Yes. You can find the minimum value with conditions in older Excel versions by combining the MIN and IF functions in an array formula. Just replace MAX with MIN: =MIN(IF(criteria_range=criteria, value_range)) and confirm with Ctrl+Shift+Enter.