How to Use ROUND with an Array in Excel INDEX and MATCH
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.

- 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.
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.
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.
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.
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.
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.
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. Open your dataset in WPS: Launch WPS Spreadsheet and open your existing .xlsx workbook containing the rows to be matched.
- 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. 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.

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.




