If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Why does #VALUE! show when adding blank cells?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-06-06, 20:07
JerryDal JerryDal is offline
Registered User
 
Join Date: Jan 2002
Location: Bay Area
Posts: 473
Why does #VALUE! show when adding blank cells?

Does anyone know why #VALUE! is displayed in the formula "=A1+B1" when one of the cells is blank, or is it known among experienced Excel users not to use this kind of addition where there is the possibility of having blank cells? The spreadsheet is from columns of numbers imported from a text file and I formatted the columns as "number". The length of a "value" in a blank cell is zero, so there is no text such as a blank space.

I typed a zero in the blank cell and the addition worked. I deleted the zero and the addition continued to work but the cell format did not change--still "number". What changed to make it work this time with a blank cell?

I always use "=SUM(..." but am curious about this behaviour with cell addition in Excel 2003 (SP1).

Jerry
Reply With Quote
  #2 (permalink)  
Old 03-07-06, 14:10
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
The key is "imported from a text file". You will get this result because Excel does not consider those as numbers but as text. If you need to convert them, go to a blank cell to the right of the table and type in the number 1. Then copy that cell, then select the column(s) that you want as numbers, and Paste Special > Multiply. Click OK. Excel then converts them all to numbers.
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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