Use Excel SUMIFS to Match the First Letter of Text
Question details
The user wants to sum values based on whether related text begins with a letter, contains a string, or ends with a character.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Use SUMIFS wildcard criteria to check text in column I and sum corresponding values in column L.
- Observed behavior
- The desired result is a sum of column L values for rows whose column I text matches the specified pattern.
Check that column I contains the text to match and column L contains the corresponding numeric values. If your data is in different columns, replace the column references in the formulas.
Use SUMIFS with wildcard text criteria in Excel
Use an asterisk wildcard to match text at the beginning, middle, or end of a cell.
An asterisk (*) matches any sequence of characters. SUMIFS text criteria are not case-sensitive, so lowercase and uppercase letters match.
Select an empty cell and enter =SUMIFS(L:L,I:I,"z*") to sum values in column L when the corresponding text in column I starts with Z.
Enter =SUMIFS(L:L,I:I,"*SX*") in an empty cell to sum values when the corresponding text in column I contains SX.
Enter =SUMIFS(L:L,I:I,"*s") in an empty cell to sum values when the corresponding text in column I ends with S.

Sum text matches with SUMIFS in WPS Spreadsheet
Use the same SUMIFS wildcard formulas in WPS Spreadsheet to total values based on text in another column.
- 1. Open the spreadsheet: Open WPS Spreadsheet and use Open to select your Excel file.
- 2. Check the columns: Find the text column and the numeric values to sum. For this example, use column I for text and column L for values.
- 3. Enter the formula: Select an empty cell and enter =SUMIFS(L:L,I:I,"z*") to sum values for text beginning with Z.
- 4. Change the pattern: Edit the criterion to "*SX*" for text containing SX or "*s" for text ending in S, then press Enter.

Frequently Asked Questions
Is the SUMIFS text match case-sensitive?
No. A criterion such as "z*" matches text beginning with either Z or z.
How do I match text containing a specific word?
Put an asterisk on each side of the word. For example, =SUMIFS(L:L,I:I,"*SX*") sums column L where column I contains SX.
How can I use a cell as the starting letter?
If the letter is in A1, enter =SUMIFS(L:L,I:I,A1&"*") to match text beginning with the contents of A1.
How do I match a literal asterisk instead of a wildcard?
Place a tilde before the asterisk in the criterion. For example, "*~**" matches text containing a literal asterisk.




