Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 313
Default If b15-b20 =0, then display value

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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,101
Default If b15-b20 =0, then display value

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

"Tony" wrote:

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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 947
Default If b15-b20 =0, then display value

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



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

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.

"Mike" wrote:

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

"Tony" wrote:

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

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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




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 display remaining txt file which overflowed MsgBox display? EagleOne Excel Discussion (Misc queries) 1 November 2nd 06 01:10 PM
Display every 3rd category name but still display latest month maryj Charts and Charting in Excel 1 September 24th 06 09:05 PM
Can I display an Excel chart as my screensaver display? Burke Charts and Charting in Excel 0 August 1st 06 07:01 PM
display total above certain number and display MGD Excel Discussion (Misc queries) 3 March 4th 06 05:03 PM
Numbers display as decimal, i.e. enter 123 display 1.23 IGH219 Setting up and Configuration of Excel 1 June 16th 05 09:16 PM


All times are GMT +1. The time now is 05:03 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"