#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default IF statement

I am not sure what to do here.
I have a worksheet and if C29 - C26 =0, I want the cell to dispay the
amount (for example 20000 - 15000= 50000) but if it is <=0, I want the cell
to display 0.

Can I use an IF statment for this? How would I do this?

thanks!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default IF statement

Hi,

You could use IF but don't need it, try this

=MAX(0,C29-C26)

Mike

"help!" wrote:

I am not sure what to do here.
I have a worksheet and if C29 - C26 =0, I want the cell to dispay the
amount (for example 20000 - 15000= 50000) but if it is <=0, I want the cell
to display 0.

Can I use an IF statment for this? How would I do this?

thanks!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 747
Default IF statement

try this

=IF((C29-C26)=0,C29-C26,0)



On Sep 19, 1:06*am, help! wrote:
I am not sure what to do here.
I have a worksheet and if C29 - C26 =0, I want the cell to dispay the
amount (for example 20000 - 15000= 50000) but if it is <=0, I want the cell
to display 0.

Can I use an IF statment for this? How would I do this?

thanks!


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default IF statement

You could also try

=(C29C26)*(C29-C26)

The equation in first set of brackets returns 1 if true, 0 if false, and
the equation in the second set of brackets is multiplied by that value

Boatman

"help!" wrote:

I am not sure what to do here.
I have a worksheet and if C29 - C26 =0, I want the cell to dispay the
amount (for example 20000 - 15000= 50000) but if it is <=0, I want the cell
to display 0.

Can I use an IF statment for this? How would I do this?

thanks!

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default IF statement

Thanks this worked for the one cell, however when I used it another cell to
show the increase for example =IF((C29-C26)<=0,C29-C26,0)

it returns the correct amount but with a negative sign in front. How do I
get rid of the negative sign?

thanks!

"muddan madhu" wrote:

try this

=IF((C29-C26)=0,C29-C26,0)



On Sep 19, 1:06 am, help! wrote:
I am not sure what to do here.
I have a worksheet and if C29 - C26 =0, I want the cell to dispay the
amount (for example 20000 - 15000= 50000) but if it is <=0, I want the cell
to display 0.

Can I use an IF statment for this? How would I do this?

thanks!





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default IF statement

Well, if your current formula is returning a result of C29-C26 and that is
negative, what do *you* think the formula is which would give a positive
number of the same magnitude?
--
David Biddulph

"help!" wrote in message
...
Thanks this worked for the one cell, however when I used it another cell
to
show the increase for example =IF((C29-C26)<=0,C29-C26,0)

it returns the correct amount but with a negative sign in front. How do I
get rid of the negative sign?

thanks!

"muddan madhu" wrote:

try this

=IF((C29-C26)=0,C29-C26,0)



On Sep 19, 1:06 am, help! wrote:
I am not sure what to do here.
I have a worksheet and if C29 - C26 =0, I want the cell to dispay the
amount (for example 20000 - 15000= 50000) but if it is <=0, I want the
cell
to display 0.

Can I use an IF statment for this? How would I do this?

thanks!





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
Sum if statement with a left statement Eric D Excel Discussion (Misc queries) 4 July 23rd 08 05:31 PM
SUMIF statement with AND statement Eric D Excel Discussion (Misc queries) 2 July 14th 08 07:24 PM
appending and IF statement to an existing IF statement spence Excel Worksheet Functions 1 February 28th 06 11:00 PM
If statement and Isblank statement Rodney C. Excel Worksheet Functions 0 January 18th 05 08:39 PM
Help please, IF statement/SUMIF statement Brad_A Excel Worksheet Functions 23 January 11th 05 02:24 PM


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