Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 447
Default cells without values causing error message

I'm downloading data from a database into Excel; some of the cells have $0
values, but some are just blank. If I sum a row or a column which includes a
blank cell, I get an error message: #VALUE! How can I convert the blank
cells to zeros?
--
karen
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,440
Default cells without values causing error message

Hi Karen,

Blank cells don't give #VALUE when summed, cells with spaces do.
You can check with the LEN() function; if the result is not zero, there's something in the cell.

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"karen" wrote in message ...
| I'm downloading data from a database into Excel; some of the cells have $0
| values, but some are just blank. If I sum a row or a column which includes a
| blank cell, I get an error message: #VALUE! How can I convert the blank
| cells to zeros?
| --
| karen


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,440
Default cells without values causing error message

<Blank cells don't give #VALUE when summed, cells with spaces do.

Not entirely true; the SUM() functions ignores spaces, individual additions don't.
So don't rely on that, always make sure values to be added are numeric

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Niek Otten" wrote in message ...
| Hi Karen,
|
| Blank cells don't give #VALUE when summed, cells with spaces do.
| You can check with the LEN() function; if the result is not zero, there's something in the cell.
|
| --
| Kind regards,
|
| Niek Otten
| Microsoft MVP - Excel
|
| "karen" wrote in message ...
|| I'm downloading data from a database into Excel; some of the cells have $0
|| values, but some are just blank. If I sum a row or a column which includes a
|| blank cell, I get an error message: #VALUE! How can I convert the blank
|| cells to zeros?
|| --
|| karen
|
|


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 447
Default cells without values causing error message

Thank you. I performed the function, and a 0 appeared. But even then I'm
getting the #VALUE! result.
--
karen


"Niek Otten" wrote:

Hi Karen,

Blank cells don't give #VALUE when summed, cells with spaces do.
You can check with the LEN() function; if the result is not zero, there's something in the cell.

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"karen" wrote in message ...
| I'm downloading data from a database into Excel; some of the cells have $0
| values, but some are just blank. If I sum a row or a column which includes a
| blank cell, I get an error message: #VALUE! How can I convert the blank
| cells to zeros?
| --
| karen



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 447
Default cells without values causing error message

Okay, how do I fill the blank cells with zero values other than manually?

thanks!
--
karen


"Niek Otten" wrote:

<Blank cells don't give #VALUE when summed, cells with spaces do.

Not entirely true; the SUM() functions ignores spaces, individual additions don't.
So don't rely on that, always make sure values to be added are numeric

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Niek Otten" wrote in message ...
| Hi Karen,
|
| Blank cells don't give #VALUE when summed, cells with spaces do.
| You can check with the LEN() function; if the result is not zero, there's something in the cell.
|
| --
| Kind regards,
|
| Niek Otten
| Microsoft MVP - Excel
|
| "karen" wrote in message ...
|| I'm downloading data from a database into Excel; some of the cells have $0
|| values, but some are just blank. If I sum a row or a column which includes a
|| blank cell, I get an error message: #VALUE! How can I convert the blank
|| cells to zeros?
|| --
|| karen
|
|





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default cells without values causing error message

SUM ignores blanks and text so you have something else happening.

Post the actual formula you are using and a small sample of data.


Gord Dibben MS Excel MVP

On Fri, 11 Jan 2008 09:20:01 -0800, karen
wrote:

I'm downloading data from a database into Excel; some of the cells have $0
values, but some are just blank. If I sum a row or a column which includes a
blank cell, I get an error message: #VALUE! How can I convert the blank
cells to zeros?


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default cells without values causing error message

If =sum() returns 0, then the cells with those numbers aren't really numbers.

You could try converting from text to numbers by:
select an empty cell
edit|copy
select the offending range
edit|paste special|check Add

If the =sum() doesn't change, maybe you got the data from a web site and your
values have those HTML non-breaking spaces in them.

David McRitchie has a macro that can help clean this:
http://www.mvps.org/dmcritchie/excel/join.htm#trimall
(look for "Sub Trimall()")

And if you're new to macros, you may want to read David's intro:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

karen wrote:

I'm downloading data from a database into Excel; some of the cells have $0
values, but some are just blank. If I sum a row or a column which includes a
blank cell, I get an error message: #VALUE! How can I convert the blank
cells to zeros?
--
karen


--

Dave Peterson
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
Too many formatted cells error message nsando Excel Discussion (Misc queries) 1 May 22nd 06 11:42 PM
Too many formatted cells error message nsando Excel Discussion (Misc queries) 0 May 22nd 06 06:15 PM
How to sum a row of cells containing an error message to overlook Amy V Excel Worksheet Functions 1 January 6th 06 10:07 PM
error message - unable to save external link values BitsofColour Excel Discussion (Misc queries) 0 October 4th 05 07:46 PM
Formula Causing a Save Error Message Mr Mike Excel Worksheet Functions 2 September 1st 05 06:01 PM


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