How to Fix SUMIFS #VALUE! Errors with Horizontal and Vertical Ranges
Question details
The user is encountering a #VALUE! error when attempting to calculate conditional sums using the SUMIFS function because the criteria and sum ranges have mismatched orientations.

- Product
- Spreadsheet
- Device & OS
- not provided
- Scenario
- Setting up a multi-criteria sum calculation where data spans across different layouts, such as horizontal date headers and vertical sales columns.
- Observed behavior
- The SUMIFS formula returns a #VALUE! error instead of calculating the total sum, preventing accurate data aggregation.
Review your dataset to identify the exact row and column dimensions of your sum range and all criteria ranges. The SUMIFS function requires every referenced range to be perfectly symmetrical in both size and orientation.
Unify Range Dimensions and Orientations
Ensure that the sum_range and all criteria_ranges share the exact same number of rows and columns to satisfy the SUMIFS function's strict dimension rules.
The SUMIFS function works by mapping criteria to values on a one-to-one basis. If you mix a horizontal range (like a row of months from B1:M1) with a vertical range (like a column of sales figures from A2:A50), the spreadsheet cannot align the criteria properly. This mismatch instantly triggers a #VALUE! error.
Click on the cell displaying the #VALUE! error and look at the Formula Bar to identify the ranges being used in your SUMIFS calculation.
Note the starting and ending points of your initial sum_range (for example, C2:C100, which is a vertical range of 99 rows).
Examine each criteria_range in the formula. If you spot a horizontal range (e.g., D1:Z1) or a vertical range of a different length (e.g., B2:B50), this is the source of the error.
Edit the formula so that every range covers the exact same shape and length (e.g., sum_range C2:C100, criteria_range1 A2:A100, criteria_range2 B2:B100), then press Enter.

Use SUMPRODUCT for Mixed Orientations
Switch from SUMIFS to SUMPRODUCT if your data layout mandates keeping a mix of horizontal and vertical ranges.
Fix Formula Errors and Analyze Data Easily with WPS Spreadsheet
WPS Spreadsheet provides intuitive formula auditing tools and clear error tracing features to help you quickly identify dimension mismatches and fix complex SUMIFS calculations.
- 1. Open your workbook: Launch WPS Spreadsheet and open the file containing the #VALUE! formula error.
- 2. Audit the formula: Navigate to the 'Formulas' tab on the ribbon and click 'Error Checking' to trace the dimension mismatches.
- 3. Correct and recalculate: Use the formula bar to manually adjust the ranges so they match in size and orientation, then press Enter to instantly recalculate the result.

Frequently Asked Questions
Why does my SUMIFS formula show #VALUE! even when the ranges have the same number of cells?
Even if ranges contain the exact same number of cells, they must share the identical shape and orientation. Mixing a 1x10 horizontal row with a 10x1 vertical column will trigger a #VALUE! error in SUMIFS.
Can I use entire column references like A:A in a SUMIFS formula?
Yes, you can use entire columns as long as the sum_range and all criteria_ranges also refer to entire columns (e.g., sum range C:C and criteria range A:A). Mixing an entire column with a restricted range (e.g., A:A and B2:B100) will result in a dimension error.
Is there a way to automate range adjustments to avoid SUMIFS errors?
Converting your raw data into a structured Table (Ctrl+T or Insert > Table) automatically normalizes dimensions. Using structured references like Table1[Sales] ensures your sum and criteria ranges will always perfectly match in length as new data is added.




