View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
tony tony is offline
external usenet poster
 
Posts: 313
Default If b15-b20 =0, then display value

Works like a charm. Thank you Dana.

"Dana DeLouis" wrote:

Another option might be to enter this equation in both B3 & B4.

=B1-B2

In B3, use a custom format to hide negatve values
#.00;;#.00

In B4, use a custom format to hide non-negative values, and display the neg.
values in Red.

;[Red] -#.00;

--
HTH :)
Dana DeLouis
Windows XP & Office 2007


"Tony" wrote in message
...
Here's what I'd like to achieve:

It's for budget planning.
In b3, if b1=b2, then display value of (b1-b2); if b1<b2 then hide value
or
display nothing.
In b4, if b1<b2, then display value of (b1-b2) in red; if b1=b2, then
hide
value or display nothing.

I could manage the font colour, but couldn't get the formula to work.

Any help is appreciated.

Tony