#1   Report Post  
Posted to microsoft.public.excel.misc
knbsmith11
 
Posts: n/a
Default Sumif statement

Is there a formula to say if column A = X and if column B = Y, then take the
sum of column C and place it in this cell?
  #2   Report Post  
Posted to microsoft.public.excel.misc
Ron Coderre
 
Posts: n/a
Default Sumif statement

Try something like this:

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

Adds the valued in C1:C100
where the corresponding Col_A value is 3
and the corresponding Col_B value is 10

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"knbsmith11" wrote:

Is there a formula to say if column A = X and if column B = Y, then take the
sum of column C and place it in this cell?

  #3   Report Post  
Posted to microsoft.public.excel.misc
SteveG
 
Posts: n/a
Default Sumif statement


Assuming your range is A1:C5,

=SUMPRODUCT((A1:A5="X")*(B1:B5="Y")*C1:C5)

HTH

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=530581

  #4   Report Post  
Posted to microsoft.public.excel.misc
Dave O
 
Posts: n/a
Default Sumif statement

Yes- try this formula:
=SUMPRODUCT(--(A1:A10="x"),--(B1:B10="y"),C1:C10)

The -- you see are unary operators that cause Excel to evaluate 1 when
a cell in A1:A10 is x and when B1:B10 is y. Other cells in those range
evaluate as zero when they do not match. The SUMPRODUCT multiplies the
rows in C1:C10 by 1 or 0 to derive the sum.

  #5   Report Post  
Posted to microsoft.public.excel.misc
Toppers
 
Posts: n/a
Default Sumif statement

If you want to look at the columns use the following as SUMPRODUCT doesn't
allow you specify column as (e.g.) A:A

=SUMPRODUCT(--(A1:A65535=value1),--(B1:B65535=value2),--(C1:C65535))

"Ron Coderre" wrote:

Try something like this:

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

Adds the valued in C1:C100
where the corresponding Col_A value is 3
and the corresponding Col_B value is 10

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"knbsmith11" wrote:

Is there a formula to say if column A = X and if column B = Y, then take the
sum of column C and place it in this cell?

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 statement Jackie Excel Discussion (Misc queries) 7 March 9th 06 04:40 PM
Nested SumIf statement jlhart76 Excel Worksheet Functions 7 January 18th 06 04:27 PM
my sumif statement brings back mutiple answers, how do I fix it? graham Excel Worksheet Functions 2 November 15th 05 08:14 PM
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM
sumif statement Ted Metro Excel Worksheet Functions 1 January 7th 05 04:18 PM


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