Function Problems

How to Use ROUND with an Array in Excel INDEX and MATCH

John WilsonJohn Wilson Oct 29, 2026 870 views

Question details

The user needs to round a horizontal range of values using an array formula before executing a MATCH function and retrieving the corresponding header via INDEX.

How to Use ROUND with an Array in Excel INDEX and MATCH
Product
Excel
Device & OS
not provided
Scenario
Attempting to locate an exact match within a dataset where values might have floating-point discrepancies, necessitating a rounding operation before the match can be properly identified.
Observed behavior
The formula encounters a syntax error due to an extra closing parenthesis, or it fails to evaluate the array properly if not entered with the correct keystrokes in older versions.
Before you start

Check your current Excel version. If you are using a version prior to Microsoft 365 or Office 2021, you do not have dynamic array support and must confirm this calculation as a traditional array formula.

Solution 1Recommended

Correct Formula Syntax and Apply the Array Calculation

Fix the formula's parentheses and apply the appropriate execution method based on your spreadsheet software version.

To perform mathematical operations like rounding on a range of cells before passing them into a lookup function, you must use an array formula. The issue in the original attempt was a simple syntax error (an extra parenthesis) and potentially incorrect execution for older software versions.

1
Enter the corrected formula

Select the target cell where you want the matching header or month to appear. Type the exact formula: =INDEX(B1:M1,1,MATCH(A2,ROUND(B4:M4,2),0)). Ensure no extra parentheses are added at the end.

2
Confirm for Microsoft 365 or newer

If you are using Microsoft 365 or Office 2021, the application natively supports dynamic arrays. You can simply press the Enter key to calculate the result.

3
Confirm for older Excel versions

If you are using Excel 2019 or earlier, you must convert this into a traditional array formula. Do not press Enter; instead, hold down Ctrl + Shift and press Enter simultaneously.

Array Formula Braces: When you successfully press Ctrl + Shift + Enter, Excel will automatically wrap your formula in curly braces { }. Do not type these braces manually into the formula bar.
Advanced Formula Support

Master Array Formulas Seamlessly with WPS Spreadsheet

WPS Spreadsheet fully supports advanced array functions, including complex INDEX, MATCH, and ROUND combinations. It effortlessly processes large datasets to help you manage your calculations without software compatibility issues.

  1. 1. Open your dataset in WPS: Launch WPS Spreadsheet and open your existing .xlsx workbook containing the rows to be matched.
  2. 2. Input the array formula: Click the cell for your result and input the exact formula: =INDEX(B1:M1,1,MATCH(A2,ROUND(B4:M4,2),0)).
  3. 3. Execute the calculation: Press Ctrl + Shift + Enter to safely evaluate the array calculation. WPS Spreadsheet instantly calculates the rounded lookup and displays your matched header.
Fully compatible with Microsoft Excel formulas and .xlsx files.Built-in dynamic array capabilities for faster data analysis.Lightweight, fast-loading, and completely free to use.
QA img-9

Frequently Asked Questions

Why does my INDEX and MATCH formula return a #VALUE! error?

This error frequently occurs in older spreadsheet versions if you forget to press Ctrl+Shift+Enter when evaluating an array inside functions like ROUND. Re-select your cell, click into the formula bar, and press Ctrl+Shift+Enter to resolve it.

Can I use ROUNDUP or ROUNDDOWN instead of ROUND in this array formula?

Yes, you can substitute ROUND with ROUNDUP or ROUNDDOWN within the MATCH function if your specific data analysis requires forcing values to the next higher or lower decimal before performing the exact match.

What is the difference between INDEX MATCH and VLOOKUP?

INDEX and MATCH combined offer much more flexibility than VLOOKUP. While VLOOKUP strictly searches the first column of a vertical range, MATCH can search any row or column (including dynamically rounded horizontal arrays), and INDEX can retrieve the corresponding data from any position.