#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 40
Default SUMIF FORMULA

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default SUMIF FORMULA

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default SUMIF FORMULA

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 340
Default SUMIF FORMULA

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
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
Sumif and And formula StephenAccountant Excel Discussion (Misc queries) 5 November 9th 06 04:11 AM
odd sumif formula Dave F Excel Discussion (Misc queries) 0 October 11th 06 05:33 PM
Sumif Formula Eleanor M Excel Worksheet Functions 2 April 10th 06 05:50 PM
Formula using SUMIF & IF BiggyTwo Excel Worksheet Functions 3 March 18th 06 02:36 AM
Is there a MAXIF formula similar to the SUMIF formula? tlc Excel Discussion (Misc queries) 2 March 13th 06 08:07 PM


All times are GMT +1. The time now is 09:25 AM.

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"