Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / March 2007

Tip: Looking for answers? Try searching our database.

If b15-b20 >=0, then display value

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tony - 07 Mar 2007 12:45 GMT
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
Mike - 07 Mar 2007 12:51 GMT
in B3
=IF(B1>=B2,B1-B2,"")

in B4
=IF(B1<B2,B1-B2,"")

In addition for B4 apply a conditional format to set it to red if value is <0

Mike

> Here's what I'd like to achieve:
>
[quoted text clipped - 9 lines]
>
> Tony
Tony - 07 Mar 2007 23:57 GMT
Thanks for your reply, Mike. I tried the formulas but they didn't work for
some reason. They are very closed to the ones that I had tried myself.

Nevertheless, I appreciate your reply and help. Thanks.

> in B3
> =IF(B1>=B2,B1-B2,"")
[quoted text clipped - 19 lines]
> >
> > Tony
Dana DeLouis - 07 Mar 2007 19:23 GMT
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;

Signature

HTH   :>)
Dana DeLouis
Windows XP & Office 2007

> Here's what I'd like to achieve:
>
[quoted text clipped - 11 lines]
>
> Tony
Tony - 07 Mar 2007 23:58 GMT
Works like a charm. Thank you Dana.

> Another option might be to enter this equation in both B3 & B4.
>
[quoted text clipped - 23 lines]
> >
> > Tony
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.