Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 102
Default Conditional Sum

Hi everone,

Say I have this:
A B C
1 a1 9
1 a2 10
1 a3 11
1 a1 12
1 a3 13
1 a3 14
2 a1 15
2 a2 16
2 a1 17
2 a2 18
2 a3 19

I want the sum of C values for each value of (A and B). For example,
A=1, B=a3, then C=11+13+14=38. Smart formula to do this please?

Thanks,
Mike
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 449
Default Conditional Sum

Hi Mike

Use a pivot table for this, don't fiddle with formulas. Faster, safer, more
fun, more power.

Best wishes Harald

"Mike" wrote in message
...
Hi everone,

Say I have this:
A B C
1 a1 9
1 a2 10
1 a3 11
1 a1 12
1 a3 13
1 a3 14
2 a1 15
2 a2 16
2 a1 17
2 a2 18
2 a3 19

I want the sum of C values for each value of (A and B). For example,
A=1, B=a3, then C=11+13+14=38. Smart formula to do this please?

Thanks,
Mike


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,059
Default Conditional Sum

On Mar 30, 1:05*pm, Mike wrote:
I want the sum of C values for each value of (A and B).
For example, A=1, B=a3, then C=11+13+14=38.


Depends on what version of Excel you have.

For XL2007 and later:

=SUMIFS(C1:C100,A1:A100,1,B1:B100,"a3")

For XL2003 and earlier:

=SUMPRODUCT((A1:A100=1)*(B1:B100="a3"),C1:C100)
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
New Conditional Format Overriding Previous Conditional Format Rene Excel Discussion (Misc queries) 3 February 27th 08 06:08 PM
Conditional Rank (or rather, Conditional Range) [email protected] Excel Worksheet Functions 6 April 16th 07 06:15 PM
Conditional Formatting that will display conditional data BrainFart Excel Worksheet Functions 1 September 13th 05 05:45 PM
Multiple conditional on conditional format formula Frank Kabel Excel Programming 1 July 27th 04 06:24 PM
Multiple conditional on conditional format formula Bob Phillips[_7_] Excel Programming 0 July 27th 04 05:30 PM


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