Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default IF Statement help

=IF((C29-C26)=0,C29-C26,0)
This a IF statement that returns a decrease in an amount with a positive
number

I used:
=IF((C29-C26)<=0,C29-C26,0) for the increase in amount, however if there is
an increase - it returns a negative amount. For example -10 000.

I want this increase to be stated as a negative amount. How can I fix this?

thanks!

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

Maybe,

=IF(CC6<C29,C26-C29,C29-C26)

Mike

"help!" wrote:

=IF((C29-C26)=0,C29-C26,0)
This a IF statement that returns a decrease in an amount with a positive
number

I used:
=IF((C29-C26)<=0,C29-C26,0) for the increase in amount, however if there is
an increase - it returns a negative amount. For example -10 000.

I want this increase to be stated as a negative amount. How can I fix this?

thanks!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default IF Statement help

That does work but I still want to put a "0" in the cell if the increase is a
- amount..

This did work and put the increase as a positive amount. thank you

"Mike H" wrote:

Maybe,

=IF(CC6<C29,C26-C29,C29-C26)

Mike

"help!" wrote:

=IF((C29-C26)=0,C29-C26,0)
This a IF statement that returns a decrease in an amount with a positive
number

I used:
=IF((C29-C26)<=0,C29-C26,0) for the increase in amount, however if there is
an increase - it returns a negative amount. For example -10 000.

I want this increase to be stated as a negative amount. How can I fix this?

thanks!

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 36
Default IF Statement help

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

might work.


"help!" wrote in message
...
That does work but I still want to put a "0" in the cell if the increase
is a
- amount..

This did work and put the increase as a positive amount. thank you

"Mike H" wrote:

Maybe,

=IF(CC6<C29,C26-C29,C29-C26)

Mike

"help!" wrote:

=IF((C29-C26)=0,C29-C26,0)
This a IF statement that returns a decrease in an amount with a
positive
number

I used:
=IF((C29-C26)<=0,C29-C26,0) for the increase in amount, however if
there is
an increase - it returns a negative amount. For example -10 000.

I want this increase to be stated as a negative amount. How can I fix
this?

thanks!



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

=IF((C29-C26)=0,C29-C26,0) could be =MAX(C29-C26,0)

=IF((C29-C26)<=0,C29-C26,0) could be =MIN(C29-C26,0)
If you want to reverse the sign, then =-MIN(C29-C26,0) or =MAX(C26-C29,0)
--
David Biddulph

"help!" wrote in message
...
=IF((C29-C26)=0,C29-C26,0)
This a IF statement that returns a decrease in an amount with a positive
number

I used:
=IF((C29-C26)<=0,C29-C26,0) for the increase in amount, however if there
is
an increase - it returns a negative amount. For example -10 000.

I want this increase to be stated as a negative amount. How can I fix
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
Can an If statement answer an If statement? M.A.Tyler Excel Discussion (Misc queries) 2 June 24th 07 04:14 AM
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 09:27 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"