Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Adding Negative and Positive Numbers
Quick question:
If I have the following numbers in a row: 5, 15, 10, -15, -22, 4, 10, -15 Is there a formula I can use for excel to only add up the negative numbers and ignore the positives? And is there a formula I can use to only add up the positve numbers and ignore the negatives? Thanks |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Adding Negative and Positive Numbers
One way:
=SUMIF(A1:H1,"<0") In article , Jacq wrote: Quick question: If I have the following numbers in a row: 5, 15, 10, -15, -22, 4, 10, -15 Is there a formula I can use for excel to only add up the negative numbers and ignore the positives? And is there a formula I can use to only add up the positve numbers and ignore the negatives? Thanks |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Adding Negative and Positive Numbers
Try these:
Negative numbers: =SUMIF(A1:H1,"<0") Positive numbers: =SUMIF(A1:H1,"0") -- Biff Microsoft Excel MVP "Jacq" wrote in message ... Quick question: If I have the following numbers in a row: 5, 15, 10, -15, -22, 4, 10, -15 Is there a formula I can use for excel to only add up the negative numbers and ignore the positives? And is there a formula I can use to only add up the positve numbers and ignore the negatives? Thanks |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Adding Negative and Positive Numbers
=SUM(IF((A1:H1)0,A1:H1)) for positives
=SUM(IF((A1:H1)<0,A1:H1)) for negatives These are array formulas entered with CNTRL-SHFT-ENTER rather than just ENTER -- Gary''s Student - gsnu200759 "Jacq" wrote: Quick question: If I have the following numbers in a row: 5, 15, 10, -15, -22, 4, 10, -15 Is there a formula I can use for excel to only add up the negative numbers and ignore the positives? And is there a formula I can use to only add up the positve numbers and ignore the negatives? Thanks |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
Adding Negative and Positive Numbers
Thank you all, it worked!!!!!!!!!!
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel, change column of negative numbers to positive numbers? | New Users to Excel | |||
Adding only the negative or positive numers in a column or row | Excel Discussion (Misc queries) | |||
Excel 2002 : Convert Positive Numbers to Negative Numbers ? | Excel Discussion (Misc queries) | |||
change 2000 cells (negative numbers) into positive numbers | Excel Worksheet Functions | |||
convert negative numbers to positive numbers and vice versa | Excel Worksheet Functions |