Finding the Sum while ignoring text

TeNW81

New Member
Joined
Aug 30, 2011
Messages
10
I have an excel spreadsheet where I imported the data from another program and the cells contain text. When i try to use the sum function I get O. Any suggestions? I was under the impression that the sum function ignored text. See below
Thanks in advance

23.96 ft
79.84 ft
23.86 ft
30.17 ft
34.23 ft
31.62 ft
83.03 ft
23.48 ft
166.02 ft
55.49 ft
31.23 ft
31.03 ft
=SUM(C30:C41)

I get Zero.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
With a helper column

Excel Workbook
AB
123.96 ft23.96
279.84 ft79.84
323.86 ft23.86
430.17 ft30.17
534.23 ft34.23
631.62 ft31.62
783.03 ft83.03
823.48 ft23.48
9166.02 ft166.02
1055.49 ft55.49
1131.23 ft31.23
1231.03 ft31.03
13613.96
Sheet3
 
Upvote 0
Vog,
Thanks for the reply. When entering the code shown below I recieved a #value! error. Any ideas?
Thanks.
 
Upvote 0
Is your data actually in column A. If not you'll need to adjust the formula.
 
Upvote 0
VoG,
My data is located where the formula references. Do you think that because the data is imported, it is not working like a normal data entry? I don't understand why it is not working. Thanks for the help.
 
Upvote 0
Select one of the spaces between the number and ft, copy it and paste into a spare cell (say Z1)/ What does this return

=CODE(Z1)
 
Upvote 0
I have an excel spreadsheet where I imported the data from another program and the cells contain text. When i try to use the sum function I get O. Any suggestions? I was under the impression that the sum function ignored text. See below
Thanks in advance

23.96 ft
79.84 ft
23.86 ft
30.17 ft
34.23 ft
31.62 ft
83.03 ft
23.48 ft
166.02 ft
55.49 ft
31.23 ft
31.03 ft
=SUM(C30:C41)

I get Zero.
Try this...

=SUMPRODUCT(--LEFT(C30:C41,LEN(C30:C41)-3))

Returns 613.96
 
Last edited:
Upvote 0
T. Valk0- When I enter this formula I get a circular reference warning.
Aladin- This formula worked for me. I was not putting a space between the "" located in your formula or VoG's so that is why it wasn't working originally. Thank you.
Now how do i get the returned sum to display the ft label that the other cells contain?
 
Upvote 0
T. Valk0- When I enter this formula I get a circular reference warning.
Aladin- This formula worked for me. I was not putting a space between the "" located in your formula or VoG's so that is why it wasn't working originally. Thank you.

Glad to hear that. Thanks for providing feedback.

Now how do i get the returned sum to display the ft label that the other cells contain?

Looks like you mean:

=SUMPRODUCT(LEFT(C30:C41,FIND(" ",C30:C41)-1)+0)&" ft"
 
Upvote 0

Forum statistics

Threads
1,224,589
Messages
6,179,744
Members
452,940
Latest member
rootytrip

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