Excel is a powerful tool that allows users to perform a wide range of tasks, from simple calculations to complex data analysis. One of the most common tasks in Excel is summing values based on certain conditions. In this article, we will explore five ways to sum in Excel with partial text.
Why Summing with Partial Text is Important

Summing with partial text is a crucial skill in Excel, as it allows users to extract specific data from a large dataset. This is particularly useful when working with text-based data, such as names, descriptions, or categories. By summing with partial text, users can quickly identify trends, patterns, and insights that might be hidden in the data.
Method 1: Using the SUMIF Function

The SUMIF function is a powerful tool in Excel that allows users to sum values based on a specific condition. To use the SUMIF function with partial text, follow these steps:
- Select the cell where you want to display the sum
- Type "=SUMIF(" and select the range of cells that contains the text you want to search
- Enter the partial text you want to search for, enclosed in quotation marks
- Select the range of cells that contains the values you want to sum
- Close the formula with a parenthesis and press Enter
For example, if you want to sum the values in column B where the text in column A contains the word "apple", you would use the following formula:
=SUMIF(A:A,"apple",B:B)
Method 2: Using the SUMIFS Function

The SUMIFS function is similar to the SUMIF function, but it allows users to sum values based on multiple conditions. To use the SUMIFS function with partial text, follow these steps:
- Select the cell where you want to display the sum
- Type "=SUMIFS(" and select the range of cells that contains the values you want to sum
- Enter the first condition, followed by the partial text you want to search for, enclosed in quotation marks
- Enter additional conditions, separated by commas
- Close the formula with a parenthesis and press Enter
For example, if you want to sum the values in column B where the text in column A contains the word "apple" and the text in column C contains the word "red", you would use the following formula:
=SUMIFS(B:B,A:A,"apple",C:C,"red")
Method 3: Using the FILTER Function

The FILTER function is a new function in Excel that allows users to filter data based on a specific condition. To use the FILTER function with partial text, follow these steps:
- Select the cell where you want to display the sum
- Type "=FILTER(" and select the range of cells that contains the values you want to sum
- Enter the condition, followed by the partial text you want to search for, enclosed in quotation marks
- Close the formula with a parenthesis and press Enter
For example, if you want to sum the values in column B where the text in column A contains the word "apple", you would use the following formula:
=SUM(FILTER(B:B,(A:A="apple")))
Method 4: Using the INDEX/MATCH Function

The INDEX/MATCH function is a powerful tool in Excel that allows users to perform lookups and sum values based on a specific condition. To use the INDEX/MATCH function with partial text, follow these steps:
- Select the cell where you want to display the sum
- Type "=INDEX(" and select the range of cells that contains the values you want to sum
- Enter the MATCH function, followed by the partial text you want to search for, enclosed in quotation marks
- Close the formula with a parenthesis and press Enter
For example, if you want to sum the values in column B where the text in column A contains the word "apple", you would use the following formula:
=SUM(INDEX(B:B,MATCH("apple",A:A,0)))
Method 5: Using Power Query

Power Query is a powerful tool in Excel that allows users to perform advanced data analysis and sum values based on a specific condition. To use Power Query with partial text, follow these steps:
- Select the range of cells that contains the data you want to sum
- Go to the "Data" tab and click on "From Table/Range"
- Click on "Add Column" and select "Custom Column"
- Enter the formula, followed by the partial text you want to search for, enclosed in quotation marks
- Click on "OK" and then click on "Load"
For example, if you want to sum the values in column B where the text in column A contains the word "apple", you would use the following formula:
= Table.Sum (Table.SelectRows (Table, each Text.Contains ([ColumnA], "apple")))
Gallery of Excel Sum Formulas
Excel Sum Formulas






We hope this article has provided you with a comprehensive guide on how to sum in Excel with partial text. Whether you're using the SUMIF function, SUMIFS function, FILTER function, INDEX/MATCH function, or Power Query, these methods will help you to extract specific data from your dataset and gain valuable insights.
We would love to hear from you! What's your favorite method for summing with partial text in Excel? Do you have any tips or tricks to share with us? Please leave a comment below and let's get the conversation started!