#1   Report Post  
yak10
 
Posts: n/a
Default SUMIF function


Hi everyone, first post for me,

I have been using the sumif function the last couple days and I've was
wondering if there is anyway to have more than 1 range and criteria for
this function or is there another function where I can do this? Below
might better illustrate what I'm trying to do:

Column 1 Column 2 Column 3
Blue One 100
Blue One 100
Red One 100
Red Two 200

I want the sum of column 3, if column 1 equals blue AND column 2 equals
One. So my answer in this case is 200.


--
yak10
  #2   Report Post  
Sandy Mann
 
Posts: n/a
Default

Try:

Sumproduct((Column1 Range="Blue")*(Column2 Range="One")*(Column3 Range))

All three ranges must be the same length

HTH

Sandy

--
to e-mail direct replace @mailinator.com with @tiscali.co.uk


"yak10" wrote in message
...

Hi everyone, first post for me,

I have been using the sumif function the last couple days and I've was
wondering if there is anyway to have more than 1 range and criteria for
this function or is there another function where I can do this? Below
might better illustrate what I'm trying to do:

Column 1 Column 2 Column 3
Blue One 100
Blue One 100
Red One 100
Red Two 200

I want the sum of column 3, if column 1 equals blue AND column 2 equals
One. So my answer in this case is 200.


--
yak10



  #3   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

You need to invoke a differen type of formula for SumIf does not admit
more than one condition...

=SUMPRODUCT(--(ColorRange=Color),--(TextNumRange=TextNum),SumRange)

yak10 wrote:
Hi everyone, first post for me,

I have been using the sumif function the last couple days and I've was
wondering if there is anyway to have more than 1 range and criteria for
this function or is there another function where I can do this? Below
might better illustrate what I'm trying to do:

Column 1 Column 2 Column 3
Blue One 100
Blue One 100
Red One 100
Red Two 200

I want the sum of column 3, if column 1 equals blue AND column 2 equals
One. So my answer in this case is 200.


  #4   Report Post  
Ashish Mathur
 
Posts: n/a
Default

Hi,

Array entet the following formula (Ctrl+Shift+Enter)

=SUM(IF((A2:A6=A8)*(B2:B6=1),C2:C6))

You can also use the DSUM function.

Regards,

"yak10" wrote:


Hi everyone, first post for me,

I have been using the sumif function the last couple days and I've was
wondering if there is anyway to have more than 1 range and criteria for
this function or is there another function where I can do this? Below
might better illustrate what I'm trying to do:

Column 1 Column 2 Column 3
Blue One 100
Blue One 100
Red One 100
Red Two 200

I want the sum of column 3, if column 1 equals blue AND column 2 equals
One. So my answer in this case is 200.


--
yak10

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
Is it possible to use the sumif function based on the criteria of. Shelba Excel Worksheet Functions 1 February 2nd 05 06:40 AM
SUMIF function - criteria of between two dates. How? Frannie21 Excel Worksheet Functions 4 January 27th 05 04:28 PM
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function Oscar Excel Worksheet Functions 2 January 12th 05 12:01 AM
help with "criterea" in the sumif function [email protected] Excel Worksheet Functions 3 December 17th 04 07:27 PM
how do you do a sumif function on more than one worksheet? BMWPRO Excel Worksheet Functions 1 December 6th 04 09:26 PM


All times are GMT +1. The time now is 03:19 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"