Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Making a cell show blank until data is entered

I am trying to create a formula: =sum(a5,b5,d4). It is a continual
addition/subraction.
The next formula is =sum(a6,b6,d5) etc.
I am trying to make the cell that contains this formula to be blank when
both cells are blank.
I also use cell a5 or b5 for text and I want to be able to ignore the text
and not give an error. I dont always need to add cells a and b. Sometimes I
would only add A cell, sometimes only b cell and sometimes I would need to
add/subtract both
Any assistance is appreciated
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default Making a cell show blank until data is entered

=IF(SUM(A6,B5,D4),SUM(A6,B5,D4),"")
or the equivalent, but longer
=IF(SUM(A6,B5,D4)0,SUM(A6,B5,D4),"")
or if negative values and/or sum could be zero are possible
=IF(count(A6,B5,D4)0,SUM(A6,B5,D4),"") will check that at least one cell
has a number

Note while SUM(A6,B5,D4) will correctly add up the numeric values in the
three cells, the formula =A6+B5+D4 will give a #VALE! error is any cell has
text (or other non-numeric value)

best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"bc292" wrote in message
...
I am trying to create a formula: =sum(a5,b5,d4). It is a continual
addition/subraction.
The next formula is =sum(a6,b6,d5) etc.
I am trying to make the cell that contains this formula to be blank when
both cells are blank.
I also use cell a5 or b5 for text and I want to be able to ignore the text
and not give an error. I dont always need to add cells a and b. Sometimes
I
would only add A cell, sometimes only b cell and sometimes I would need to
add/subtract both
Any assistance is appreciated



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Making a cell show blank until data is entered

=IF(COUNT(A4,B4)0,SUM(A4,C2),"")
The above formula fixed the problem. Thank you for pointing me in the right
direction!

"Bernard Liengme" wrote:

=IF(SUM(A6,B5,D4),SUM(A6,B5,D4),"")
or the equivalent, but longer
=IF(SUM(A6,B5,D4)0,SUM(A6,B5,D4),"")
or if negative values and/or sum could be zero are possible
=IF(count(A6,B5,D4)0,SUM(A6,B5,D4),"") will check that at least one cell
has a number

Note while SUM(A6,B5,D4) will correctly add up the numeric values in the
three cells, the formula =A6+B5+D4 will give a #VALE! error is any cell has
text (or other non-numeric value)

best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"bc292" wrote in message
...
I am trying to create a formula: =sum(a5,b5,d4). It is a continual
addition/subraction.
The next formula is =sum(a6,b6,d5) etc.
I am trying to make the cell that contains this formula to be blank when
both cells are blank.
I also use cell a5 or b5 for text and I want to be able to ignore the text
and not give an error. I dont always need to add cells a and b. Sometimes
I
would only add A cell, sometimes only b cell and sometimes I would need to
add/subtract both
Any assistance is appreciated




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
if no data in cell show as blank George Excel Discussion (Misc queries) 4 October 17th 06 08:45 AM
if no data in cell show as blank George Excel Discussion (Misc queries) 4 October 16th 06 04:45 PM
Making a cell show relevant data IoHeFy Excel Discussion (Misc queries) 1 August 25th 06 12:32 PM
MAKING THE FOLLOWING EQUATION DISPLAY A BLANK CELL IF NO DATA INPU phill Excel Discussion (Misc queries) 3 April 21st 06 05:55 PM
Formulas returning a blank if no data entered in one cell Mifty Jackson New Users to Excel 3 March 31st 05 04:37 PM


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