Sum only numbers in a range with multiple rows ignoring any text?

ynygma

New Member
Joined
Nov 29, 2013
Messages
5
Hello all,

I have been researching this problem across the net and have tried everything from arrays to TRIM with no success.

Here is what I am trying to do (using Excel 2010):

This is just a sample, but I have multiple rows and columns A1:G2, in this example both rows are the range I need.

TextTextTextTextText 6Text 4.5Text/Text
TextText

<tbody>
</tbody>

I have another cell where I will do my calculation. I want to be able to SUM only the numbers in any range I specify ignoring any Text.:confused:

I am intermediate when it comes to excel with basic VBA as well but I am open to any assistance I can get:)

Regards,
Ynygma
 
hello, i have similar kind of problem. cant sum cells with numbers and text.
below is my cells looks like-
A1 4,672.94 EUR

A2 638,817.99 EUR

A3 546,813.02 EUR

A4 11,878.14 EUR

i want to add A1 to A3 only numbers, not that 'EUR', how?
in real case i have 7000 cell like above and need to sum all.

<tbody>
</tbody>
 
Upvote 0

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
An easier approach for your data is to split it into two columns (using Text to Column, Space as delimiter). Then perform SUM as usual,


hello, i have similar kind of problem. cant sum cells with numbers and text.
below is my cells looks like-
A1 4,672.94 EUR
A2 638,817.99 EUR
A3 546,813.02 EUR
A4 11,878.14 EUR

i want to add A1 to A3 only numbers, not that 'EUR', how?
in real case i have 7000 cell like above and need to sum all.

<tbody>
</tbody>
 
Upvote 0
hello, i have similar kind of problem. cant sum cells with numbers and text.
below is my cells looks like-
A1 4,672.94 EUR

A2 638,817.99 EUR

A3 546,813.02 EUR

A4 11,878.14 EUR

i want to add A1 to A3 only numbers, not that 'EUR', how?
in real case i have 7000 cell like above and need to sum all.

<tbody>
</tbody>
Assuming your text is always " EUR", then this formula should work (change the range to suit your actual setup)...

=SUMPRODUCT(SUBSTITUTE(A1:A4," EUR","")+0)
 
Upvote 0

Forum statistics

Threads
1,215,773
Messages
6,126,822
Members
449,341
Latest member
addman24

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top