Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default #value! when cell is blank

Hi,

Cell A1 contains the number 5
Cell A2 contains ""
Cell A3 contains =A1+A2

A3 returns #VALUE!

How can I make it return 5?

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default #value! when cell is blank

One way:

A3: =IF(COUNT(A1:A2)=2,A1+A2,"")

another:

A3: =SUM(A1:A2)

since SUM ignores text.

In article .com,
"Ryan H." wrote:

Hi,

Cell A1 contains the number 5
Cell A2 contains ""
Cell A3 contains =A1+A2

A3 returns #VALUE!

How can I make it return 5?

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default #value! when cell is blank

Sun, 08 Aug 2004 19:24:07 GMT, Ryan H. wrote :

Hi,

Cell A1 contains the number 5
Cell A2 contains ""
Cell A3 contains =A1+A2

A3 returns #VALUE!

How can I make it return 5?

Thanks


=Sum(A1:A2)

--
Winamp 5.03. odtwarza :
Hubtone feat. Zoe Johnston - Red Balloon (R.A.D.I.O. 42 : Music for
LOUNGE-LOVERS finest electronica chillout house nujazz funky beats
radio42)
<<------------------------------------------------------
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default #value! when cell is blank

Misread your requirement - use the second of my suggestions...

In article ,
JE McGimpsey wrote:

One way:

A3: =IF(COUNT(A1:A2)=2,A1+A2,"")

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default #value! when cell is blank

Thank you guys for your responses, but there is a problem.



Cell A1 contains the number 5
Cell A2 contains =""
Cell A3 contains =SUM(A1,-A2)

A3 still returns #VALUE!

I think its because you can't have a negative zero



"JE McGimpsey" wrote in message
...
Misread your requirement - use the second of my suggestions...

In article ,
JE McGimpsey wrote:

One way:

A3: =IF(COUNT(A1:A2)=2,A1+A2,"")





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default #value! when cell is blank

one way:

=SUM(A1,-N(A2))



In article .com,
"Ryan H." wrote:

Thank you guys for your responses, but there is a problem.

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 46
Default #value! when cell is blank

Hi,


=N(A1)+N(A2)

or

=SUM(A1)+SUM(A2)


--
Regards,
Soo Cheon Jheong
_ _
^ąŻ^
--


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
How to return a blank formula cell if the reference is blank? waybomb Excel Worksheet Functions 2 January 22nd 09 05:53 PM
Average Formula to display blank cell if named range is blank Rachael F Excel Worksheet Functions 3 February 22nd 08 05:05 PM
how to get excel to display blank if reference cell blank silent1(not) Excel Worksheet Functions 1 December 2nd 05 02:49 PM
How do I make a blank cell with a date format blank? Pivot Table/Query Excel Worksheet Functions 6 June 14th 05 11:19 PM
COPY A CONCATENATE CELL TO BLANK CELL PUTTING IN THE NEXT BLANK C. QUEST41067 Excel Discussion (Misc queries) 1 January 15th 05 09:29 PM


All times are GMT +1. The time now is 12:18 AM.

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"