#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
KMH KMH is offline
external usenet poster
 
Posts: 31
Default Sumif

Hello, I have a sheet with totals both positive and negetive on it from say
c6 to t6, I need w6 to sum the totals that are between 5.01 and 50 both
positive and negetive, and give me the sum in a positive number so the
negetive don't cancel out the positives. ie the number 3 6 25 -3 and -14
appear, I need W6 to show 44 (6+25+14)
--
Thanks for your help, advice, ideas, and time.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 196
Default Sumif

Hi

You could use SUMIF:

=SUMIF(C6:T6,"=5.01")-SUMIF(C6:T6,"50")

or maybe SUMPRODUCT:

=SUMPRODUCT(--(C6:T6=5.01),--(C6:T6<=50),C6:T6)

Hope this helps!

Richard



KMH wrote:

Hello, I have a sheet with totals both positive and negetive on it from say
c6 to t6, I need w6 to sum the totals that are between 5.01 and 50 both
positive and negetive, and give me the sum in a positive number so the
negetive don't cancel out the positives. ie the number 3 6 25 -3 and -14
appear, I need W6 to show 44 (6+25+14)
--
Thanks for your help, advice, ideas, and time.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 694
Default Sumif

If the numbers are in A2:a6 try

=SUMPRODUCT(($A$2:$A$65)*
($A$2:$A$6<50),($A$2:$A$6))-
SUMPRODUCT(($A$2:$A$6<-5)*
($A$2:$A$6-50),($A$2:$A$6))

I could not get abs to work.
--
Hope this helps
Martin Fishlock
Please do not forget to rate this reply.


"KMH" wrote:

Hello, I have a sheet with totals both positive and negetive on it from say
c6 to t6, I need w6 to sum the totals that are between 5.01 and 50 both
positive and negetive, and give me the sum in a positive number so the
negetive don't cancel out the positives. ie the number 3 6 25 -3 and -14
appear, I need W6 to show 44 (6+25+14)
--
Thanks for your help, advice, ideas, and time.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,726
Default Sumif

=SUMPRODUCT(--(ABS(C6:T6)5),--(ABS(C6:T6<50)),ABS(C6:T6))

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"Martin Fishlock" wrote in message
...
If the numbers are in A2:a6 try

=SUMPRODUCT(($A$2:$A$65)*
($A$2:$A$6<50),($A$2:$A$6))-
SUMPRODUCT(($A$2:$A$6<-5)*
($A$2:$A$6-50),($A$2:$A$6))

I could not get abs to work.
--
Hope this helps
Martin Fishlock
Please do not forget to rate this reply.


"KMH" wrote:

Hello, I have a sheet with totals both positive and negetive on it from
say
c6 to t6, I need w6 to sum the totals that are between 5.01 and 50 both
positive and negetive, and give me the sum in a positive number so the
negetive don't cancel out the positives. ie the number 3 6 25 -3 and -14
appear, I need W6 to show 44 (6+25+14)
--
Thanks for your help, advice, ideas, and time.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 510
Default Sumif

Hi

=SUM(ABS(C6:G6)*(ABS(C6:G6)3)*(ABS(C6:G6<=50)))

entered as an array function (Ctrl+Shift+Enter)


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )



"KMH" wrote in message
...
Hello, I have a sheet with totals both positive and negetive on it from
say
c6 to t6, I need w6 to sum the totals that are between 5.01 and 50 both
positive and negetive, and give me the sum in a positive number so the
negetive don't cancel out the positives. ie the number 3 6 25 -3 and -14
appear, I need W6 to show 44 (6+25+14)
--
Thanks for your help, advice, ideas, and time.





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
How to use SUMIF to return sums between two values located in cells ScottBerger Excel Worksheet Functions 2 April 23rd 23 09:05 PM
How to use SUMIF function with non-adjacent cells KLaw Excel Worksheet Functions 5 October 19th 06 10:15 AM
Sumif of Sumif perhaps? Fred Excel Discussion (Misc queries) 2 March 29th 06 05:39 PM
SUMIF Ferg Excel Worksheet Functions 3 February 28th 06 03:37 AM
Embedding a Sumif in a sumif C.Pflugrath Excel Worksheet Functions 5 August 31st 05 07:31 PM


All times are GMT +1. The time now is 10:38 PM.

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"