"Case of Soda (354mL x 24): USD 25.00 Case of Water (0.500L x 24): USD 15.00"

Using the SumNumbers module adds up all numbers but we only want the dollar values.

Kutools for Excel is a powerful add-in that frees you from performing time-consuming operations in Excel, such as combine sheets quickly, merge cells without losing data, paste to only visible cells, count cells by color and so on. 300+ powerful features / functions for Excel 2019, 2016, 2013, 2010, 2007 or Office 365!

It enables tabbed browsing, editing, and managing of Microsoft Office applications. You can open multiple documents / files in a single tabbed window, such as using the browser IE 8/9/10, Firefox, and Google Chrome. It's compatible with Office 2019, 2016, 2013, 2010, 2007, 2003 or Office 365. Demo

Kutools for Outlook is a powerful add-in that frees you from time-consuming operations which majority of Outlook users has to perform daily! It can save your time from using Microsoft Outlook 2019, 2016, 2013, 2010 or Office 365!

Kutools for Word is a powerful add-in that frees you from time-consuming operations which majority of Word users have to perform daily! It can save your time from using Microsoft Word / Office 2019, 2016, 2013, 2010, 2007, 2003 or Office 365!

Restores the old look and menus of Office 2003 to Microsoft Office 2019, 2016, 2013, 2010, 2007 or Office 365. Don’t lose time in finding commands on the new Ribbon. Easy to deploy to all computers in enterprises and organizations.

For example, I have a list of values containing numerical and textual strings, now, I want to sum only the numbers based on the same text, look at the following screenshot. Normally, you can’t sum the values in the list with text string directly, here, I will introduce you some formulas to deal with this task.

You can use an array formula to sum the numbers based on their corresponding text string within the cell, please do as follows:

**1.** First you can write down your text strings you want to sum the relative numbers in a column cells.

**2**. Then type below formula in a blank cell, in this example, I will enter the formula in cell E1:** =SUM(IF(ISNUMBER(FIND(D1,$B$2:$B$8))****,VALUE(LEFT($B$2:$B$8,FIND(D1,$B$2:$B$8)-1)),0))**, and then press **Ctrl + Shift + Enter** keys together, it will return the total value from the list based on the certain text. See screenshot:

**Tip**: In the above formula, * D1* is the criterion which you want to use, and

**3**. Then select the formula cel, and drag the fill handle down to the cells you want to apply this formula to get the result:

**Split / Separate text strings into individual text and number columns**

**Kutools for Excel**’s **Split Cells** feature is a powerful tool, it can help you to split cell values into multiple columns or rows, it can help you to slit alphanumeric strings into separated text and numbers columns, etc…** Click to download Kutools for Excel!**

**Kutools for Excel**: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days.** Download and free trial Now! **

If you have the following data which is mixed with text and numbers, and you just want to extract and add up only the numbers in each cell, how could you quickly finish this in Excel?.

To deal with this problem, you can create a **User Defined Function**, please do as this:

**1**. Hold down the** ALT + F11** keys to open the** Microsoft Visual Basic for Applications window**.

**2**. Click **Insert** >** Module**, and paste the following code in the **Module Window**.

**VBA code: sum only the numbers in the cell containing numbers and text**

Function SumNumbers(rngS As Range, Optional strDelim As String = " ") As Double 'Update 20141210 Dim xNums As Variant, lngNum As Long xNums = Split(rngS, strDelim) For lngNum = LBound(xNums) To UBound(xNums) Step 1 SumNumbers = SumNumbers + Val(xNums(lngNum)) Next lngNum End Function

**3**. Then save and close this code, go back to the worksheet, and enter this formula **=SumNumbers(A1)** (* A1* indicates the cell you want to sum up the numbers), then drag the fill handle down to the cells you want to fill the formula, and only numbers in each cell are added together, see screenshot:

**Related articles:**

How to sum every n rows down in Excel?

How to sum values based on text criteria in Excel?

**Reuse**: Quickly insert**complex formulas, charts**and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...- Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
- Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
- Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
- Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
- Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
- Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
- Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
- More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.

**Enable tabbed editing and reading in Word, Excel, PowerPoint**, Publisher, Access, Visio and Project.- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!

Loading comment... The comment will be refreshed after 00:00.

- Use formula or defined function to auto fill text based on the cell filled color in Excel
- Quickly create a positive negative bar chart in Excel
- How to split the total payment across months in Excel?
- Generate random number with the given specific length in Excel
- Compare two columns and add missing values in Excel
- How to merge two or more tables into one based on key columns?
- How to sum unique values based on criteria in Excel?
- How to filter multiple values in only one column in Excel?
- How to return multiple matching values based on one or multiple criteria in Excel?
- How to count the number of unique and distinct values from a list of column?

- Alternately insert blank rows or columns every other rows / columns in Excel
- Change working area size: show or hide ribbon, formula bar, and status bar in Excel
- Completely clear all formatting of a range in Excel
- Convert cell reference to relative / absolute reference in Excel
- Copy a cell formatting from one cell to other cells in Excel
- Easily delete blank or hidden rows (columns) in Excel
- Easily encrypt and decrypt selected cell values or contents in Excel
- Easily protect multiple sheets / worksheets at a time in Excel
- Easily reading / viewing a large number of rows and columns in Excel