Add Values in Excel in Columns that Contain Text

Ask a question
This tip will explain how to use the IF function on Microsoft Excel to add values in a column that also contain text.

Sum Values in Columns that Contain Text

For this example, let's assume you'd like to add up the number of rows that contain the word ball:
[Column A]  
Red Ball
Blue Ball
Blue Ball

[Column B]  

By applying the comparative IF function, you will specify that if column A contains the specified word, the numbers in column B should be added together:

The resulting output of this formula should be 7.
Jean-François Pillou

CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jeff Pillou, founder of CCM reaches more than 50 million unique visitors per month and is available in 11 languages.

Learn more about the CCM team