# Sum if Cells Begin with Specific Text or Number in Another Cells

This post will guide you how to sum cells if cells begin with a specific text or number in another column in excel. How do I sum if cells start with specific text or number in another cells in excel.

Assuming that you have a list of data A1:B4, and you want to sum all cells in column B if cells in column A begin with a specific text “excel” or a specific number “201”, how to achieve it.

## Sum if Cells Begin with Specific Text or Number

If you want to sum cells in column B when the adjacent cells in column A start with a specific test “excel”, you can create a formula based on the SUMIF function. like this:

`=SUMIF(A1:A4,"excel*", B1:B4)` This function will sum cells in range B1:B4, but it must be match the given criteria that cells in A1:A4 start with the specific text “excel”.

If you want to sum cell in column b when the adjacent cell in column A start with a specific number “201”, and you also can create a formula based on the SUMPRODUCT function and the LEFT function. Like this:

`=SUMPRODUCT((LEFT(A1:A4,3)+0=201)*(B1:B4))` The LEFT function will extract the first 3 numbers, cos the number 201 have three digits.

### Related Functions

• Excel SUMPRODUCT function
The Excel SUMPRODUCT function multiplies corresponding components in the given one or more arrays or ranges, and returns the sum of those products.The syntax of the SUMPRODUCT function is as below:= SUMPRODUCT (array1,[array2],…)…
• Excel SUMIF Function
The Excel SUMIF function sum the numbers in the range of cells that meet a single criteria that you specify. The syntax of the SUMIF function is as below:=SUMIF (range, criteria, [sum_range])…
• Excel LEFT function
The Excel LEFT function returns a substring (a specified number of the characters) from a text string, starting from the leftmost character.The LEFT function is a build-in function in Microsoft Excel and it is categorized as a Text Function.The syntax of the LEFT function is as below:= LEFT(text,[num_chars])…t)…

Related Posts

Check Cell If Contains One of Many with Exclusions

In Microsoft Excel Spreadsheet or google sheets, when cells contain multiple strings, how can we accomplish this task if you want to check whether these cells contain more than one given string and exclude other given strings? In this article, ...

Cash Denomination Calculator

Every country has different cash denominations, so you may need to calculate the number of different denominations based on the total amount. If it is just a small amount of cash, then you can calculate the different cash denominations manually, ...

Calculate Win Loss Tie

Suppose you got a task to calculate the win, loss, and tie totals; what would you do? If you are new to Ms Excel and don't have enough experience with it, then you might do this task manually but let ...

Count Cells that are Case Sensitive

If you are a frequent user of Microsoft Excel, you may have come across situations where you needed to add or count the cells that were case-sensitive. If you have done this task manually, I would like to point out ...

Check Dates in chronological order

Assume you have a date list that has different date formats, as seen in the accompanying picture. In this instance, Excel's Sort function will fail to sort them appropriately. However, you may convert all various date formats to a particular ...

Sidebar