Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
=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
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
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! |
#4
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
If you are totalling try:
=SUMIF(K1:K90,""&0) adjust the range to suit your needs -- HTH Sandy In Perth, the ancient capital of Scotland with @tiscali.co.uk "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! |
#5
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can I make a formula in Excel to display result in same cell? | Excel Worksheet Functions | |||
Formula to make Negative Values Positive & Positive Values Negative? | Excel Discussion (Misc queries) | |||
Median result used in formula gives incorrect result | Excel Worksheet Functions | |||
Amount or Numbers in Words | New Users to Excel | |||
Spellnumber | Excel Worksheet Functions |