Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
Nrippe
 
Posts: n/a
Default If the result of a formula is negative make equal to zero

I do have a worksheet that calculates sales profits or losses quarterly in 3
different locations. For each quarter I do have a formula that gives me the
increase or decrease amounts during the last couple of years. For the total
result I need a formula that converts or ignores the negative results. Any
calculation result with a minus sign in the formula should be equal to zero,
so it's not included in the final quaterly total.
Could somebody help me with it? Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.newusers
Trevor Shuttleworth
 
Posts: n/a
Default If the result of a formula is negative make equal to zero

=IF(yourformula<0,0,yourformula)

Regards

Trevor


"Nrippe" wrote in message
...
I do have a worksheet that calculates sales profits or losses quarterly in
3
different locations. For each quarter I do have a formula that gives me
the
increase or decrease amounts during the last couple of years. For the
total
result I need a formula that converts or ignores the negative results. Any
calculation result with a minus sign in the formula should be equal to
zero,
so it's not included in the final quaterly total.
Could somebody help me with it? Thanks!



  #3   Report Post  
Posted to microsoft.public.excel.newusers
Elkar
 
Posts: n/a
Default If the result of a formula is negative make equal to zero

You could use the MAX function.

=MAX(A100,0)

This returns the larger of the two values. So, if A100 is ever negative, 0
would be larger, and thus be what is returned.

HTH,
Elkar


"Nrippe" wrote:

I do have a worksheet that calculates sales profits or losses quarterly in 3
different locations. For each quarter I do have a formula that gives me the
increase or decrease amounts during the last couple of years. For the total
result I need a formula that converts or ignores the negative results. Any
calculation result with a minus sign in the formula should be equal to zero,
so it's not included in the final quaterly total.
Could somebody help me with it? Thanks!

  #5   Report Post  
Posted to microsoft.public.excel.newusers
Nrippe
 
Posts: n/a
Default If the result of a formula is negative make equal to zero

Thank you very much! It works perfectly.

"Trevor Shuttleworth" wrote:

=IF(yourformula<0,0,yourformula)

Regards

Trevor


"Nrippe" wrote in message
...
I do have a worksheet that calculates sales profits or losses quarterly in
3
different locations. For each quarter I do have a formula that gives me
the
increase or decrease amounts during the last couple of years. For the
total
result I need a formula that converts or ignores the negative results. Any
calculation result with a minus sign in the formula should be equal to
zero,
so it's not included in the final quaterly total.
Could somebody help me with it? Thanks!






  #6   Report Post  
Posted to microsoft.public.excel.newusers
Trevor Shuttleworth
 
Posts: n/a
Default If the result of a formula is negative make equal to zero

You're welcome, thanks for the feedback


"Nrippe" wrote in message
...
Thank you very much! It works perfectly.

"Trevor Shuttleworth" wrote:

=IF(yourformula<0,0,yourformula)

Regards

Trevor


"Nrippe" wrote in message
...
I do have a worksheet that calculates sales profits or losses quarterly
in
3
different locations. For each quarter I do have a formula that gives me
the
increase or decrease amounts during the last couple of years. For the
total
result I need a formula that converts or ignores the negative results.
Any
calculation result with a minus sign in the formula should be equal to
zero,
so it's not included in the final quaterly total.
Could somebody help me with it? 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
Can I make a formula in Excel to display result in same cell? Neiko Excel Worksheet Functions 2 October 1st 05 10:36 PM
Formula to make Negative Values Positive & Positive Values Negative? mustard Excel Discussion (Misc queries) 4 September 26th 05 10:05 PM
Median result used in formula gives incorrect result vlatham Excel Worksheet Functions 4 September 21st 05 04:26 PM
Amount or Numbers in Words ron New Users to Excel 6 December 24th 04 07:32 PM
Spellnumber Norman Jones Excel Worksheet Functions 6 December 13th 04 07:21 AM


All times are GMT +1. The time now is 04:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"