#1   Report Post  
Posted to microsoft.public.excel.misc
Jon Jon is offline
external usenet poster
 
Posts: 183
Default [newbie] formatting

I'm trying to display a blank space (or nothing) when there is no difference
between two cells, as in:

=IF(C6-C15=0,"",C6-C15)

However, when the answer is 0 (i.e. logical test is true), I am getting:

0.00 under the number format
1.89... under the General Format

Any idea what format filter to apply?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default [newbie] formatting

=IF(AND(C6="",C15=""),"",C6-C15)

--
Gary''s Student - gsnu200845
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default [newbie] formatting

Jon: Your answer may not be exactly 0. Your number may be small like
0.0000001 but general formating is only showing 2 decimal places.

"Jon" wrote:

I'm trying to display a blank space (or nothing) when there is no difference
between two cells, as in:

=IF(C6-C15=0,"",C6-C15)

However, when the answer is 0 (i.e. logical test is true), I am getting:

0.00 under the number format
1.89... under the General Format

Any idea what format filter to apply?

  #4   Report Post  
Posted to microsoft.public.excel.misc
Jon Jon is offline
external usenet poster
 
Posts: 183
Default [newbie] formatting

That's it thanks :)

I updated my formula as follows:

=IF(ROUND(C6-C10,2)=0,"",C6-C10)

Btw, changed a bit the row contents, as you may note the change from C15 to
C10.

"joel" wrote:

Jon: Your answer may not be exactly 0. Your number may be small like
0.0000001 but general formating is only showing 2 decimal places.

"Jon" wrote:

I'm trying to display a blank space (or nothing) when there is no difference
between two cells, as in:

=IF(C6-C15=0,"",C6-C15)

However, when the answer is 0 (i.e. logical test is true), I am getting:

0.00 under the number format
1.89... under the General Format

Any idea what format filter to apply?

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
cell formatting [newbie] Jon Excel Discussion (Misc queries) 3 March 28th 09 06:41 PM
Real Newbie newbie question Dave New Users to Excel 0 January 10th 07 07:55 PM
Very very new newbie Thalia Took New Users to Excel 1 September 29th 05 04:13 AM
Help for a newbie? rehr0001 Excel Worksheet Functions 4 August 18th 05 05:13 AM
Newbie - needing advice on formatting webform data antfarm Excel Discussion (Misc queries) 6 July 14th 05 12:38 PM


All times are GMT +1. The time now is 12:59 PM.

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"