Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 573
Default Sum vs. Addition

I have some data spreadsheets that come from the statistical program
SPSS. My job is to convert them into decent looking, readable,
understandable to our non-mathematical staff data. With a lot of help
here, I've been doing that.

The latest batch came in and when I started adding data from different
columns to create the "consumer" product, I got #VALUE errors in in the
totals where I was adding in blank cells. I cleaned up the spreadsheet
using the Clean and RemoveSpaces macros, but it didn't help this time.
I replaced the additions with SUM formulas adding up the same cells,
and, voila! They work fine.

I've used adding cells many times with blank cells included and never
had a problem. So why this time? There must be something still resident
in those "blank" cells from SPSS that XL doesn't like, but what? Anyone
else ever have a similar experience? Any suggestions as to how to fix
it?

Thanks!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Sum vs. Addition

The SUM() function has been designed to ignore text within the summed range.
=A1+B1+C1 will complain.



To cleanup any cells that should be empty, but contain "invisible" junk,
select them and pull-down:

Edit Clear All
--
Gary's Student


"davegb" wrote:

I have some data spreadsheets that come from the statistical program
SPSS. My job is to convert them into decent looking, readable,
understandable to our non-mathematical staff data. With a lot of help
here, I've been doing that.

The latest batch came in and when I started adding data from different
columns to create the "consumer" product, I got #VALUE errors in in the
totals where I was adding in blank cells. I cleaned up the spreadsheet
using the Clean and RemoveSpaces macros, but it didn't help this time.
I replaced the additions with SUM formulas adding up the same cells,
and, voila! They work fine.

I've used adding cells many times with blank cells included and never
had a problem. So why this time? There must be something still resident
in those "blank" cells from SPSS that XL doesn't like, but what? Anyone
else ever have a similar experience? Any suggestions as to how to fix
it?

Thanks!


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 837
Default Sum vs. Addition

And since SUM(), COUNT(), etc ignore text, it is always a good idea to include
=COUNT(dataRange)
with imported data, just to be certain that your calculations are actually
using all the data that you think they should be using.

Jerry

"Gary''s Student" wrote:

The SUM() function has been designed to ignore text within the summed range.
=A1+B1+C1 will complain.



To cleanup any cells that should be empty, but contain "invisible" junk,
select them and pull-down:

Edit Clear All
--
Gary's Student


"davegb" wrote:

I have some data spreadsheets that come from the statistical program
SPSS. My job is to convert them into decent looking, readable,
understandable to our non-mathematical staff data. With a lot of help
here, I've been doing that.

The latest batch came in and when I started adding data from different
columns to create the "consumer" product, I got #VALUE errors in in the
totals where I was adding in blank cells. I cleaned up the spreadsheet
using the Clean and RemoveSpaces macros, but it didn't help this time.
I replaced the additions with SUM formulas adding up the same cells,
and, voila! They work fine.

I've used adding cells many times with blank cells included and never
had a problem. So why this time? There must be something still resident
in those "blank" cells from SPSS that XL doesn't like, but what? Anyone
else ever have a similar experience? Any suggestions as to how to fix
it?

Thanks!


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Sum vs. Addition

A blank cell is OK with addition, but a non-numeric cell in the value is not.

next to an offending cell (Assume the offending cell is A1) put

=Len(A1)

If it show zero, then more than likely you have a null character in the
cell. You can produce such a character by putting in the formula

=""
then select the character and do
Edit=copy
then Edit=Pastespecial and select values.

If the length is not zero, then you obviously have some non-numeric value in
the cell.

for the null characters, you can select the range and do
Edit=Replace
leave the replace What blank
put in $$$$ in the Replace With

no repeat this, but put
$$$$ in replace what and leave Replace with Blank.

Thanks to Dave Peterson for this hint.

--
Regards,
Tom Ogilvy

and

"davegb" wrote:

I have some data spreadsheets that come from the statistical program
SPSS. My job is to convert them into decent looking, readable,
understandable to our non-mathematical staff data. With a lot of help
here, I've been doing that.

The latest batch came in and when I started adding data from different
columns to create the "consumer" product, I got #VALUE errors in in the
totals where I was adding in blank cells. I cleaned up the spreadsheet
using the Clean and RemoveSpaces macros, but it didn't help this time.
I replaced the additions with SUM formulas adding up the same cells,
and, voila! They work fine.

I've used adding cells many times with blank cells included and never
had a problem. So why this time? There must be something still resident
in those "blank" cells from SPSS that XL doesn't like, but what? Anyone
else ever have a similar experience? Any suggestions as to how to fix
it?

Thanks!


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 573
Default Sum vs. Addition


Tom Ogilvy wrote:
A blank cell is OK with addition, but a non-numeric cell in the value is not.

next to an offending cell (Assume the offending cell is A1) put

=Len(A1)

If it show zero, then more than likely you have a null character in the
cell. You can produce such a character by putting in the formula

=""
then select the character and do
Edit=copy
then Edit=Pastespecial and select values.

If the length is not zero, then you obviously have some non-numeric value in
the cell.

for the null characters, you can select the range and do
Edit=Replace
leave the replace What blank
put in $$$$ in the Replace With

no repeat this, but put
$$$$ in replace what and leave Replace with Blank.

Thanks to Dave Peterson for this hint.

--
Regards,
Tom Ogilvy


Thanks for all the replies! Good stuff to know.

and

"davegb" wrote:

I have some data spreadsheets that come from the statistical program
SPSS. My job is to convert them into decent looking, readable,
understandable to our non-mathematical staff data. With a lot of help
here, I've been doing that.

The latest batch came in and when I started adding data from different
columns to create the "consumer" product, I got #VALUE errors in in the
totals where I was adding in blank cells. I cleaned up the spreadsheet
using the Clean and RemoveSpaces macros, but it didn't help this time.
I replaced the additions with SUM formulas adding up the same cells,
and, voila! They work fine.

I've used adding cells many times with blank cells included and never
had a problem. So why this time? There must be something still resident
in those "blank" cells from SPSS that XL doesn't like, but what? Anyone
else ever have a similar experience? Any suggestions as to how to fix
it?

Thanks!





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
Addition in Excel geepeeone Excel Discussion (Misc queries) 3 October 8th 08 01:52 AM
cell addition Dave buckus 526 Excel Worksheet Functions 2 July 24th 06 09:11 PM
Addition? Frodo Excel Discussion (Misc queries) 3 July 22nd 06 01:15 PM
addition dali New Users to Excel 1 March 4th 06 06:40 PM
row addition Threshold Excel Worksheet Functions 3 March 17th 05 08:08 PM


All times are GMT +1. The time now is 01:18 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"