Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hello, I need to write a formula that sums totals from different sheets but,
I want it to ignore the negative numbers and add only the positive #'s this is what I currently have =SUM('week-1:Week-5'!K12) it gives me a negative total because there are some negative numbers in some cells thank you for your help! -- Louie |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try this:
=SUMPRODUCT(SUMIF(INDIRECT("'week-"&{1,2,3,4,5}&"'!K12"),"0")) Biff "Louie" wrote in message ... Hello, I need to write a formula that sums totals from different sheets but, I want it to ignore the negative numbers and add only the positive #'s this is what I currently have =SUM('week-1:Week-5'!K12) it gives me a negative total because there are some negative numbers in some cells thank you for your help! -- Louie |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
SUM does it as good, doesn't need SP
=SUM(SUMIF(INDIRECT("'week-"&{1,2,3,4,5}&"'!K12"),"0")) -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "T. Valko" wrote in message ... Try this: =SUMPRODUCT(SUMIF(INDIRECT("'week-"&{1,2,3,4,5}&"'!K12"),"0")) Biff "Louie" wrote in message ... Hello, I need to write a formula that sums totals from different sheets but, I want it to ignore the negative numbers and add only the positive #'s this is what I currently have =SUM('week-1:Week-5'!K12) it gives me a negative total because there are some negative numbers in some cells thank you for your help! -- Louie |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
One way using only 3D-enabled formulas:
=AVEDEV(Rng,-SUM(Rng))*(COUNT(Rng)+1)/2+MIN(SUM(Rng),0) where the name "Rng" refers to "=Week-1:Week-5'!K12". On 18 Apr, 23:52, Louie wrote: Hello, I need to write a formula that sums totals from different sheets but, I want it to ignore the negative numbers and add only the positive #'s this is what I currently have =SUM('week-1:Week-5'!K12) it gives me a negative total because there are some negative numbers in some cells thank you for your help! -- Louie |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sumif and And formula | Excel Discussion (Misc queries) | |||
odd sumif formula | Excel Discussion (Misc queries) | |||
Sumif Formula | Excel Worksheet Functions | |||
Formula using SUMIF & IF | Excel Worksheet Functions | |||
Is there a MAXIF formula similar to the SUMIF formula? | Excel Discussion (Misc queries) |