Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Why have you used SUM there? It isn't doing anything in your formula.
Why not just =IF(A1<0,-1*(A1)+50,0) or =IF(A1<0,-A1+50,0) or =IF(A1<0,50-A1,0) or =(50-A1)*(A1<0) Perhaps you should look at Excel help for the SUM function? -- David Biddulph "triniqueen" wrote in message ... Thanks alot, I went in an modified it a little and it worked great!!!!!! I put =SUM(IF(A1<0,-1*(A1)+50,0)) . I got exactly what I was after!!!!!! -- Ksy "smartin" wrote: triniqueen wrote: Is there a way I could sum a cell, make it a positive number and add 50, only if the cell has a negative number in it? Not sure if this is what you mean: =IF(A1<0,-A1+50,NA()) // works on one cell only or, if you want to operate on a range (these are array formulae; commit with Ctrl+Shift+Enter): =SUM(IF($A$1:$A$4<0,-1*($A$1:$A$4)+50,0)) // adds 50 to each value or =SUM(IF($A$1:$A$4<0,-1*($A$1:$A$4),0))+50 // adds 50 to the result |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to nest a left function within a sumif function? | Excel Worksheet Functions | |||
How do I use the TODAY function with the SUMIF function? | Excel Worksheet Functions | |||
SUMIF Function Inside SUMPRODUCT Function | Excel Worksheet Functions | |||
Can SUMIF function include AND function | Excel Worksheet Functions | |||
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function | Excel Worksheet Functions |