Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
luvthavodka
 
Posts: n/a
Default SUMIF with two sets of criteria

I have the following table, and would like to sum the value of C with the
criteria A=Production, and B=External. I have so far
SUMIF(A:A,"Production",C:C)...but can't work out how to add AND B:B,"
External". In this case the return for my request will be C1 + C5

A B C
Production External £28,240
Design External £71,908
Production InterGroup £159,070
Design External £3,600
Production External £327,700

Thanks for any help offered!

  #2   Report Post  
Posted to microsoft.public.excel.misc
Ragdyer
 
Posts: n/a
Default SUMIF with two sets of criteria

Try this:

=SUMPRODUCT((A1:A100="Production")*(B1:B100="Exter nal")*C1:C100)

You can't use total column references (A:A).

Also, you could refer to cells containing your criteria, instead of
'hard-coding' them in the formula itself.
That makes criteria changes easier to accomplish.

=SUMPRODUCT((A1:A100=D1)*(B1:B100=D2)*C1:C100)

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"luvthavodka" wrote in message
...
I have the following table, and would like to sum the value of C with the
criteria A=Production, and B=External. I have so far
SUMIF(A:A,"Production",C:C)...but can't work out how to add AND B:B,"
External". In this case the return for my request will be C1 + C5

A B C
Production External £28,240
Design External £71,908
Production InterGroup £159,070
Design External £3,600
Production External £327,700

Thanks for any help offered!


  #3   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default SUMIF with two sets of criteria

Hi!

Try this:

=SUMPRODUCT(--(A1:A10="Production"),--(B1:B10="External"),C1:C10)

Note that Sumproduct will not accept entire columns as range arguments, A:A,
B:B. C:C

Biff

"luvthavodka" wrote in message
...
I have the following table, and would like to sum the value of C with the
criteria A=Production, and B=External. I have so far
SUMIF(A:A,"Production",C:C)...but can't work out how to add AND B:B,"
External". In this case the return for my request will be C1 + C5

A B C
Production External £28,240
Design External £71,908
Production InterGroup £159,070
Design External £3,600
Production External £327,700

Thanks for any help offered!



  #4   Report Post  
Posted to microsoft.public.excel.misc
luvthavodka
 
Posts: n/a
Default SUMIF with two sets of criteria

Thats great, how could i also add the criteria so i could see the cumulative
total at week eg18 or less, from col D, which looks as follows:

D
Week No.
16
17
18
18
19
20

I've tried the following, but it doesn't seem to work?

=SUMPRODUCT(--(A1:A10="Production"),--(B1:B10="External"),--(D1:D10=20),C1:C10)

Thanks

"Biff" wrote:

Hi!

Try this:

=SUMPRODUCT(--(A1:A10="Production"),--(B1:B10="External"),C1:C10)

Note that Sumproduct will not accept entire columns as range arguments, A:A,
B:B. C:C

Biff

"luvthavodka" wrote in message
...
I have the following table, and would like to sum the value of C with the
criteria A=Production, and B=External. I have so far
SUMIF(A:A,"Production",C:C)...but can't work out how to add AND B:B,"
External". In this case the return for my request will be C1 + C5

A B C
Production External £28,240
Design External £71,908
Production InterGroup £159,070
Design External £3,600
Production External £327,700

Thanks for any help offered!




  #5   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default SUMIF with two sets of criteria

Why didn't you use

=SUMPRODUCT(--(A1:A10="Production"),--(B1:B10="External"),--(D1:D10<=18),C1:
C10)


--
HTH

Bob Phillips

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

"luvthavodka" wrote in message
...
Thats great, how could i also add the criteria so i could see the

cumulative
total at week eg18 or less, from col D, which looks as follows:

D
Week No.
16
17
18
18
19
20

I've tried the following, but it doesn't seem to work?


=SUMPRODUCT(--(A1:A10="Production"),--(B1:B10="External"),--(D1:D10=20),C1:
C10)

Thanks

"Biff" wrote:

Hi!

Try this:

=SUMPRODUCT(--(A1:A10="Production"),--(B1:B10="External"),C1:C10)

Note that Sumproduct will not accept entire columns as range arguments,

A:A,
B:B. C:C

Biff

"luvthavodka" wrote in message
...
I have the following table, and would like to sum the value of C with

the
criteria A=Production, and B=External. I have so far
SUMIF(A:A,"Production",C:C)...but can't work out how to add AND B:B,"
External". In this case the return for my request will be C1 + C5

A B C
Production External £28,240
Design External £71,908
Production InterGroup £159,070
Design External £3,600
Production External £327,700

Thanks for any help offered!








  #6   Report Post  
Posted to microsoft.public.excel.misc
Ragdyer
 
Posts: n/a
Default SUMIF with two sets of criteria

You set your criteria for *greater* then 20 [ (D1:D10=20) ], not *less
then* [ (D1:D10<=20) ]


--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"luvthavodka" wrote in message
...
Thats great, how could i also add the criteria so i could see the

cumulative
total at week eg18 or less, from col D, which looks as follows:

D
Week No.
16
17
18
18
19
20

I've tried the following, but it doesn't seem to work?


=SUMPRODUCT(--(A1:A10="Production"),--(B1:B10="External"),--(D1:D10=20),C1:
C10)

Thanks

"Biff" wrote:

Hi!

Try this:

=SUMPRODUCT(--(A1:A10="Production"),--(B1:B10="External"),C1:C10)

Note that Sumproduct will not accept entire columns as range arguments,

A:A,
B:B. C:C

Biff

"luvthavodka" wrote in message
...
I have the following table, and would like to sum the value of C with

the
criteria A=Production, and B=External. I have so far
SUMIF(A:A,"Production",C:C)...but can't work out how to add AND B:B,"
External". In this case the return for my request will be C1 + C5

A B C
Production External £28,240
Design External £71,908
Production InterGroup £159,070
Design External £3,600
Production External £327,700

Thanks for any help offered!





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
for SUMIF function, how do I use 2 sets of range & criteria Bob Excel Worksheet Functions 6 January 10th 06 07:48 PM
Multiple SUMIF Criteria azazel Excel Worksheet Functions 3 November 10th 05 08:31 PM
SUMIF with Mutiple Ranges & Criteria PokerZan Excel Discussion (Misc queries) 5 August 4th 05 10:31 PM
"criteria" in a sumif refering to the value in another cell mark Excel Discussion (Misc queries) 1 January 31st 05 07:39 PM
Can I use a cell reference in the criteria for the sumif function. Number Cruncher Excel Worksheet Functions 2 November 4th 04 07:52 PM


All times are GMT +1. The time now is 12:33 AM.

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"