Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
mrssm5
 
Posts: n/a
Default How to read a blank cell as zero for formulas?

I have an empty cell because of "" in the formula but in a new formula
referencing that cell I want it to be read as zero? Help
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

Lots of excel's functions will treat that as a zero (like =sum()).

But some will blow up real good:
=a1+a2

Maybe:
=n(a1)+n(a2)

would be ok for you.



mrssm5 wrote:

I have an empty cell because of "" in the formula but in a new formula
referencing that cell I want it to be read as zero? Help


--

Dave Peterson
  #3   Report Post  
Jerry W. Lewis
 
Posts: n/a
Default

Range based functions (SUM, AVERAGE, etc) will ignore "", but if you
want it treated as zero (instead of being ignored) you will have to do
something like
=IF(cell="",0,cell)
In a range based function this becomes an array function, like
=AVERAGE(IF(range="",0,range))

Note that cell="" does not distinguish between truly empty cells and
cells that contain "". If that distinction is important, Then you would
need to add a test for ISBLANK(cell).

Jerry

mrssm5 wrote:

I have an empty cell because of "" in the formula but in a new formula
referencing that cell I want it to be read as zero? Help


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
Maintaining cell reference after sorting GRITS Excel Discussion (Misc queries) 2 April 30th 23 07:42 PM
make a cell empty based on condition mpierre Charts and Charting in Excel 2 December 29th 04 01:01 PM
Using Jet to read excel file returns blank for last cell - sometim Ron Excel Discussion (Misc queries) 1 December 9th 04 08:21 AM
How do identify a blank cell in a formula Barb123 Excel Discussion (Misc queries) 3 December 6th 04 05:50 PM
conditional formatting blank cell TREK5200 Excel Discussion (Misc queries) 1 December 6th 04 02:23 AM


All times are GMT +1. The time now is 02:20 PM.

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

About Us

"It's about Microsoft Excel"