Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
JoeD
 
Posts: n/a
Default Problem with Excel SUM function

I have imported data from a web query into an Excel worksheet. I am trying
to add the totals of a column (SUM). My formula in cell A10 is: =SUM(A1:A9).
The result displayed in A10 is 0.

When I select cell A1 it's data is displayed in the formula bar, with an
additional space on the left side of the data. If I remove the space (delete
key), the SUM function will add just that cell. If I remove the 'space' from
in from of each entry in the column, the SUM function works fine.

I've tried the tools, options,calculation, automatic settings, but that
does not help. I've tried to "indent" or shift the entire column over, but
neither worked.

Anyone have a suggestion?

Thanks for your time.
  #2   Report Post  
Morrigan
 
Posts: n/a
Default


Try this:

B1 = MID(A1,2,10) This will take up to 10 digit number, but in
text format
C1 = VALUE(B1) This will convert the text back into number

Now you can either SUM(C1:C9) or just copy and paste-special-value to
overwrite column A.


Hope it helps.



JoeD Wrote:
I have imported data from a web query into an Excel worksheet. I am
trying
to add the totals of a column (SUM). My formula in cell A10 is:
=SUM(A1:A9).
The result displayed in A10 is 0.

When I select cell A1 it's data is displayed in the formula bar, with
an
additional space on the left side of the data. If I remove the space
(delete
key), the SUM function will add just that cell. If I remove the
'space' from
in from of each entry in the column, the SUM function works fine.

I've tried the tools, options,calculation, automatic settings, but
that
does not help. I've tried to "indent" or shift the entire column over,
but
neither worked.

Anyone have a suggestion?

Thanks for your time.



--
Morrigan
------------------------------------------------------------------------
Morrigan's Profile: http://www.excelforum.com/member.php...fo&userid=7094
View this thread: http://www.excelforum.com/showthread...hreadid=377091

  #3   Report Post  
Ron Coderre
 
Posts: n/a
Default

1)Edit one of the cells [F2]
2)Select the one blank character
3)Copy that character [Ctrl]+C
4)Select the range of "numbers"
5)EditReplace
-Replace what: Paste the character [Ctrl]+V
-Replace with: delete anything that might be there
-Click [Replace All]

That usually works for me.
--
Regards,
Ron

  #4   Report Post  
daiblackburn
 
Posts: n/a
Default

Try Highlighting the column and selecting Data Text to columns then
hitting the finish button in the pop up box

"JoeD" wrote in message
...
I have imported data from a web query into an Excel worksheet. I am

trying
to add the totals of a column (SUM). My formula in cell A10 is:

=SUM(A1:A9).
The result displayed in A10 is 0.

When I select cell A1 it's data is displayed in the formula bar, with an
additional space on the left side of the data. If I remove the space

(delete
key), the SUM function will add just that cell. If I remove the 'space'

from
in from of each entry in the column, the SUM function works fine.

I've tried the tools, options,calculation, automatic settings, but that
does not help. I've tried to "indent" or shift the entire column over,

but
neither worked.

Anyone have a suggestion?

Thanks for your time.



  #5   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

JoeD,

Try:

=SUMPRODUCT(VALUE(TRIM(A1:A9)))

That may or may not work depending on what the actual lead ASCII character
is.

Alternatively, you could use

=SUMPRODUCT(VALUE(RIGHT(A1:A9,LEN(A1:A9)-1)))

which should work no matter what the lead character is.

HTH,
Bernie
MS Excel MVP


"JoeD" wrote in message
...
I have imported data from a web query into an Excel worksheet. I am

trying
to add the totals of a column (SUM). My formula in cell A10 is:

=SUM(A1:A9).
The result displayed in A10 is 0.

When I select cell A1 it's data is displayed in the formula bar, with an
additional space on the left side of the data. If I remove the space

(delete
key), the SUM function will add just that cell. If I remove the 'space'

from
in from of each entry in the column, the SUM function works fine.

I've tried the tools, options,calculation, automatic settings, but that
does not help. I've tried to "indent" or shift the entire column over,

but
neither worked.

Anyone have a suggestion?

Thanks for your time.





  #6   Report Post  
JoeD
 
Posts: n/a
Default

Bernie,

Thanks for the suggestion -- I used the

=SUMPRODUCT(VALUE(RIGHT(A1:A9,LEN(A1:A9)-1))) formula and it worked fine
until it hit a blank cell. I then received the #VALUE# error. Any
suggestions on how to get past blank cells? The range of data is around 155
rows within the column with several blank cells intermixed within the column.

Thanks in advance!

Joe


"Bernie Deitrick" wrote:

JoeD,

Try:

=SUMPRODUCT(VALUE(TRIM(A1:A9)))

That may or may not work depending on what the actual lead ASCII character
is.

Alternatively, you could use

=SUMPRODUCT(VALUE(RIGHT(A1:A9,LEN(A1:A9)-1)))

which should work no matter what the lead character is.

HTH,
Bernie
MS Excel MVP


"JoeD" wrote in message
...
I have imported data from a web query into an Excel worksheet. I am

trying
to add the totals of a column (SUM). My formula in cell A10 is:

=SUM(A1:A9).
The result displayed in A10 is 0.

When I select cell A1 it's data is displayed in the formula bar, with an
additional space on the left side of the data. If I remove the space

(delete
key), the SUM function will add just that cell. If I remove the 'space'

from
in from of each entry in the column, the SUM function works fine.

I've tried the tools, options,calculation, automatic settings, but that
does not help. I've tried to "indent" or shift the entire column over,

but
neither worked.

Anyone have a suggestion?

Thanks for your time.




  #7   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

Joe,

Array enter (enter using Ctrl-Shift-Enter)

=SUM(IF(A1:A9<"",VALUE(RIGHT(A1:A9,LEN(A1:A9)-1)),0))

Of course, change all 3 of the A1:A9 references to your actual range.

HTH,
Bernie
MS Excel MVP


"JoeD" wrote in message
...
Bernie,

Thanks for the suggestion -- I used the

=SUMPRODUCT(VALUE(RIGHT(A1:A9,LEN(A1:A9)-1))) formula and it worked fine
until it hit a blank cell. I then received the #VALUE# error. Any
suggestions on how to get past blank cells? The range of data is around
155
rows within the column with several blank cells intermixed within the
column.

Thanks in advance!

Joe


"Bernie Deitrick" wrote:

JoeD,

Try:

=SUMPRODUCT(VALUE(TRIM(A1:A9)))

That may or may not work depending on what the actual lead ASCII
character
is.

Alternatively, you could use

=SUMPRODUCT(VALUE(RIGHT(A1:A9,LEN(A1:A9)-1)))

which should work no matter what the lead character is.

HTH,
Bernie
MS Excel MVP


"JoeD" wrote in message
...
I have imported data from a web query into an Excel worksheet. I am

trying
to add the totals of a column (SUM). My formula in cell A10 is:

=SUM(A1:A9).
The result displayed in A10 is 0.

When I select cell A1 it's data is displayed in the formula bar, with
an
additional space on the left side of the data. If I remove the space

(delete
key), the SUM function will add just that cell. If I remove the
'space'

from
in from of each entry in the column, the SUM function works fine.

I've tried the tools, options,calculation, automatic settings, but
that
does not help. I've tried to "indent" or shift the entire column over,

but
neither worked.

Anyone have a suggestion?

Thanks for your time.






  #8   Report Post  
JoeD
 
Posts: n/a
Default

Bernie,

THANKYOU!! Works Great!

JoeD

"Bernie Deitrick" wrote:

Joe,

Array enter (enter using Ctrl-Shift-Enter)

=SUM(IF(A1:A9<"",VALUE(RIGHT(A1:A9,LEN(A1:A9)-1)),0))

Of course, change all 3 of the A1:A9 references to your actual range.

HTH,
Bernie
MS Excel MVP


"JoeD" wrote in message
...
Bernie,

Thanks for the suggestion -- I used the

=SUMPRODUCT(VALUE(RIGHT(A1:A9,LEN(A1:A9)-1))) formula and it worked fine
until it hit a blank cell. I then received the #VALUE# error. Any
suggestions on how to get past blank cells? The range of data is around
155
rows within the column with several blank cells intermixed within the
column.

Thanks in advance!

Joe


"Bernie Deitrick" wrote:

JoeD,

Try:

=SUMPRODUCT(VALUE(TRIM(A1:A9)))

That may or may not work depending on what the actual lead ASCII
character
is.

Alternatively, you could use

=SUMPRODUCT(VALUE(RIGHT(A1:A9,LEN(A1:A9)-1)))

which should work no matter what the lead character is.

HTH,
Bernie
MS Excel MVP


"JoeD" wrote in message
...
I have imported data from a web query into an Excel worksheet. I am
trying
to add the totals of a column (SUM). My formula in cell A10 is:
=SUM(A1:A9).
The result displayed in A10 is 0.

When I select cell A1 it's data is displayed in the formula bar, with
an
additional space on the left side of the data. If I remove the space
(delete
key), the SUM function will add just that cell. If I remove the
'space'
from
in from of each entry in the column, the SUM function works fine.

I've tried the tools, options,calculation, automatic settings, but
that
does not help. I've tried to "indent" or shift the entire column over,
but
neither worked.

Anyone have a suggestion?

Thanks for your time.






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003 Slowness problem in Windows XP Elton Seng Yan Thung Excel Discussion (Misc queries) 2 May 18th 05 04:55 AM
Slight problem automating Excel in a service someone Setting up and Configuration of Excel 2 May 13th 05 10:04 PM
Function Keys in Excel LPS Excel Discussion (Misc queries) 2 January 29th 05 12:32 AM
Excel should have a quick and simple "change case" function like . NinaSvendsen Excel Worksheet Functions 1 January 28th 05 03:15 PM
Statistical Excel Function Question within Excel 2000... Drew H Excel Worksheet Functions 3 October 31st 04 06:55 PM


All times are GMT +1. The time now is 08:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"