Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
jonlandrum
 
Posts: n/a
Default Formula returns "0"; How do I make it return nothing?


It's a very basic formula: it simply returns data from another worksheet
in the workbook. However, if no data is entered in the cell a "0" will
be inserted in any cell that references it. I tried IF with a space for
value_if_true, like so:

=IF('sheet1!A1'=0, , 'sheet1!A1')

But that didn't work; it still returned "0". I then tried replacing the
space with a non-breaking space (Alt + 0160); that returned an error.
Any Ideas?

~Jonathan


--
jonlandrum

http://jonlandrum.com/about/
------------------------------------------------------------------------
jonlandrum's Profile: http://www.excelforum.com/member.php...o&userid=33615
View this thread: http://www.excelforum.com/showthread...hreadid=533945

  #2   Report Post  
Posted to microsoft.public.excel.misc
tony h
 
Posts: n/a
Default Formula returns "0"; How do I make it return nothing?


try

=IF('sheet1!A1'=0,"" , 'sheet1!A1')

regards


--
tony h
------------------------------------------------------------------------
tony h's Profile: http://www.excelforum.com/member.php...o&userid=21074
View this thread: http://www.excelforum.com/showthread...hreadid=533945

  #3   Report Post  
Posted to microsoft.public.excel.misc
jonlandrum
 
Posts: n/a
Default Formula returns "0"; How do I make it return nothing?


tony, it worked beautifully. Thank you very much! I don't know why I
didn't post that question here six months ago. I've just been coloring
the zeros white. :o)

Now I have to find another excuse for spending all day with these
files.

~Jonathan


--
jonlandrum

http://jonlandrum.com/about/
------------------------------------------------------------------------
jonlandrum's Profile: http://www.excelforum.com/member.php...o&userid=33615
View this thread: http://www.excelforum.com/showthread...hreadid=533945

  #4   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Formula returns "0"; How do I make it return nothing?

You could also use a custom format of General;General;

and then just use

='sheet1!A1'

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"jonlandrum" wrote
in message ...

tony, it worked beautifully. Thank you very much! I don't know why I
didn't post that question here six months ago. I've just been coloring
the zeros white. :o)

Now I have to find another excuse for spending all day with these
files.

~Jonathan


--
jonlandrum

http://jonlandrum.com/about/
------------------------------------------------------------------------
jonlandrum's Profile:

http://www.excelforum.com/member.php...o&userid=33615
View this thread: http://www.excelforum.com/showthread...hreadid=533945



  #5   Report Post  
Posted to microsoft.public.excel.misc
jonlandrum
 
Posts: n/a
Default Formula returns "0"; How do I make it return nothing?


Bob, I didn't think of that, either. However, it wouldn't work because
the formating has to be either in date format or dollar format.


--
jonlandrum

http://jonlandrum.com/about/
------------------------------------------------------------------------
jonlandrum's Profile: http://www.excelforum.com/member.php...o&userid=33615
View this thread: http://www.excelforum.com/showthread...hreadid=533945



  #6   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Formula returns "0"; How do I make it return nothing?

You can still use the technique

Assuming you never get negative dates

dd/mmm/yyyy;;

But with currency

£#,##0.00;-£#,##0.00;

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"jonlandrum" wrote
in message ...

Bob, I didn't think of that, either. However, it wouldn't work because
the formating has to be either in date format or dollar format.


--
jonlandrum

http://jonlandrum.com/about/
------------------------------------------------------------------------
jonlandrum's Profile:

http://www.excelforum.com/member.php...o&userid=33615
View this thread: http://www.excelforum.com/showthread...hreadid=533945



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 do I make a column equal a formula in Excel? archllama Excel Discussion (Misc queries) 7 April 11th 06 12:38 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
formula returns (correctly) a negative value brit64 Excel Discussion (Misc queries) 5 September 19th 05 08:56 AM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
how do I make a formula NOT change when the data range is moved? Alida Andrews Excel Discussion (Misc queries) 2 January 6th 05 09:02 PM


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

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"