Formula Errors

How to Fix SUMIFS Formula Errors with Text Numbers in Spreadsheets

Natalie TaylorNatalie Taylor Nov 10, 2026 868 views

Question details

The user needs to calculate total quantities across multiple columns based on specific text conditions and blank cells, but the formula fails because the numerical values are stored as text.

How to Fix SUMIFS Formula Errors Involving Text Numbers
Product
Spreadsheet
Device & OS
not provided
Scenario
Attempting to sum rows based on conditions (e.g., matching a specific string like "Plain Bagel" and checking for blank cells) where the sum range contains numbers formatted as text strings.
Observed behavior
Standard SUMIFS formulas return zero because they cannot calculate numerical values stored as text strings. Advanced array formulas or data conversion are required to extract and sum the values correctly.
Before you start

Before modifying complex formulas, check your quantity column for small green triangles in the cell corners, which indicate that your numbers are currently stored as text and will cause SUMIFS to fail.

Solution 1Recommended

Convert Text to Numbers and Apply Combined SUMIFS

The most straightforward and reliable method is to convert the text values into real numbers first, then use a combined SUMIFS function to handle your multiple criteria.

By ensuring your data is in the correct format before calculation, you avoid the need for highly complex, hard-to-maintain array formulas. This method works perfectly across all versions of Excel and WPS Spreadsheet.

1
Convert text to numbers

Highlight your quantity column. Click the warning icon (yellow diamond or green triangle) that appears next to the selection and choose "Convert to Number". Alternatively, you can use the "Text to Columns" feature under the Data tab and simply click Finish.

2
Write the first condition

To sum rows where Column A has your specific text and columns B and C are blank, type `=SUMIFS(D:D, A:A, "Plain Bagel", B:B, "", C:C, "")` in your target cell.

3
Write the second condition

To capture rows where Column C contains the specific text anywhere in the cell, add a second SUMIFS formula using wildcards: `+SUMIFS(D:D, C:C, "*Plain Bagel*")`.

4
Combine and execute

Combine the formulas into one cell: `=SUMIFS(D:D, A:A, "Plain Bagel", B:B, "", C:C, "") + SUMIFS(D:D, C:C, "*Plain Bagel*")`. Press Enter to calculate the correct total.

Convert Text to Numbers and Apply Combined SUMIFS
Wildcard Usage: Using asterisks (*Plain Bagel*) allows the SUMIFS formula to find your target text anywhere within the cell, which is helpful if there are hidden spaces or additional words.
Advanced Spreadsheets Made Easy

Fix Formula Errors Easily with WPS Spreadsheet

WPS Spreadsheet provides intuitive error checking and bulk data conversion tools, making it incredibly easy to fix "number stored as text" errors. With full compatibility for advanced formulas, you can solve complex SUMIFS scenarios in seconds.

  1. 1. Open your data file: Launch WPS Spreadsheet and open the document containing your text and numerical data.
  2. 2. Convert text to numbers: Highlight the column with text-based numbers, click the floating warning icon that appears, and select "Convert to Number".
  3. 3. Insert the SUMIFS function: Select the cell for your total, navigate to the Formulas tab, click "Insert Function", and search for "SUMIFS".
  4. 4. Define your criteria: Use the intuitive pop-up dialog to easily map your Sum Range, Criteria Range, and specific conditions like blanks or exact text.
  5. 5. Calculate effortlessly: Click OK to instantly generate the correct sum without needing to manually type out complex formula syntax.
One-click conversion for numbers stored as text100% compatible with Microsoft Excel formulas like SUMIFS, SUMPRODUCT, and LETBuilt-in Error Checking to instantly identify and troubleshoot broken formulasUser-friendly dialog boxes for building complex conditional functions
microsoft office alternative - wps office

Frequently Asked Questions

Why does my SUMIFS formula return 0 even when criteria match?

This almost always happens when the values in your sum range are stored as text rather than numbers. SUMIFS ignores text strings. You must convert the sum range to numbers using "Text to Columns" or the warning icon's "Convert to Number" option.

Can SUMIFS handle partial text matches?

Yes. You can use wildcard characters like an asterisk (*) in your criteria. For example, using "*Plain Bagel*" as your criteria will successfully match any cell containing that phrase, regardless of what text comes before or after it.

How do I check for completely blank cells in a SUMIFS formula?

To conditionally sum rows based on a blank cell, use double quotation marks ("") without spaces as the criteria for that specific column range in your SUMIFS formula.

Is it better to use SUMIFS or SUMPRODUCT for multiple conditions?

SUMIFS is generally faster and easier to read for standard conditional sums. However, SUMPRODUCT is more powerful for inline operations, such as converting text to numbers on the fly or handling complex OR logic arrays without needing helper columns.