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

I am trying to use multiple criteria for SUMIF. Let's say I have a bunch of
numbers in colum A. I am trying to identify the ones that are between 2000
and 10000, multiply those numbers with the corresponding numbers in column B,
and then add those numbers up.
I hope that makes sense. I just can't get it to work.
Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default SUMIF

=SUMPRODUCT(--(A1:A1002000),--(A1:A100<10000),B1:B100)

It will not work if you use a whole column ex: A:A or B:B


"gottahavit" wrote:

I am trying to use multiple criteria for SUMIF. Let's say I have a bunch of
numbers in colum A. I am trying to identify the ones that are between 2000
and 10000, multiply those numbers with the corresponding numbers in column B,
and then add those numbers up.
I hope that makes sense. I just can't get it to work.
Thanks.

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

That works great. Let me add a task.
What if I have 3 columns (A,B,C). I am looking for items between 2000 and
10000 in column A (like before). This time, for the items that are between
that range, I want to multiply those numbers with the numbers in the
corresponding B column, devide that by the numbers in the corresponding C
column, and then adding them up.
Basically I want to know how to incorporate a division in that formula.
Again, I hope that makes sense.
Thanks.

"Teethless mama" wrote:

=SUMPRODUCT(--(A1:A1002000),--(A1:A100<10000),B1:B100)

It will not work if you use a whole column ex: A:A or B:B


"gottahavit" wrote:

I am trying to use multiple criteria for SUMIF. Let's say I have a bunch of
numbers in colum A. I am trying to identify the ones that are between 2000
and 10000, multiply those numbers with the corresponding numbers in column B,
and then add those numbers up.
I hope that makes sense. I just can't get it to work.
Thanks.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default SUMIF

=SUM(IF((A1:A100=2000)*(A1:A100<10000)*(ISNUMBER( C1:C100)),B1:B100/C1:C100)
)

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"gottahavit" wrote in message
...
That works great. Let me add a task.
What if I have 3 columns (A,B,C). I am looking for items between 2000 and
10000 in column A (like before). This time, for the items that are between
that range, I want to multiply those numbers with the numbers in the
corresponding B column, devide that by the numbers in the corresponding C
column, and then adding them up.
Basically I want to know how to incorporate a division in that formula.
Again, I hope that makes sense.
Thanks.

"Teethless mama" wrote:

=SUMPRODUCT(--(A1:A1002000),--(A1:A100<10000),B1:B100)

It will not work if you use a whole column ex: A:A or B:B


"gottahavit" wrote:

I am trying to use multiple criteria for SUMIF. Let's say I have a

bunch of
numbers in colum A. I am trying to identify the ones that are between

2000
and 10000, multiply those numbers with the corresponding numbers in

column B,
and then add those numbers up.
I hope that makes sense. I just can't get it to work.
Thanks.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default SUMIF

=SUMIF(A:A,"=1000",B:B)-SUMIF(A:A,"2000",B:B)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"gottahavit" wrote in message
...
I am trying to use multiple criteria for SUMIF. Let's say I have a bunch

of
numbers in colum A. I am trying to identify the ones that are between 2000
and 10000, multiply those numbers with the corresponding numbers in column

B,
and then add those numbers up.
I hope that makes sense. I just can't get it to work.
Thanks.





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default SUMIF

That should be

=SUMIF(A:A,"=2000",B:B)-SUMIF(A:A,"10000",B:B)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"gottahavit" wrote in message
...
I am trying to use multiple criteria for SUMIF. Let's say I have a bunch

of
numbers in colum A. I am trying to identify the ones that are between 2000
and 10000, multiply those numbers with the corresponding numbers in column

B,
and then add those numbers up.
I hope that makes sense. I just can't get it to work.
Thanks.



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
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function Oscar Excel Worksheet Functions 2 January 11th 05 11:01 PM


All times are GMT +1. The time now is 04:18 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"