#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Sumif question

Hi

I would like to perform a sumif based on 2 columns being the same.

I am able to run the basic SUMIF(A:A,A1.B:B) but I was wondering if it is
possible to do this based on 2 columns being the same. e.g I want to sum
column c if column a and b are the same.

Any help will be greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default Sumif question

=SUMPRODUCT(--(A2:A9=B2:B9),C2:C9)
Adjust ranges!

Regards,
Stefi


€žDavid Bradford€ť ezt Ă*rta:

Hi

I would like to perform a sumif based on 2 columns being the same.

I am able to run the basic SUMIF(A:A,A1.B:B) but I was wondering if it is
possible to do this based on 2 columns being the same. e.g I want to sum
column c if column a and b are the same.

Any help will be greatly appreciated.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Sumif question

Sorry, I don't think I was clear. Column A and B won't be the same (as in
the same values)

Column A will specify one criteria (it is actually a code referring to a
fund) and column B will refer to another criteria (and asset within the
fund). I would like to be able to sum all like assets for each fund.

I toyed with if(sumif) but I don't know how this function works...

"Stefi" wrote:

=SUMPRODUCT(--(A2:A9=B2:B9),C2:C9)
Adjust ranges!

Regards,
Stefi


€žDavid Bradford€ť ezt Ă*rta:

Hi

I would like to perform a sumif based on 2 columns being the same.

I am able to run the basic SUMIF(A:A,A1.B:B) but I was wondering if it is
possible to do this based on 2 columns being the same. e.g I want to sum
column c if column a and b are the same.

Any help will be greatly appreciated.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Sumif question

To sum the values in column C when column A matches one criteria and column B
matches another criteria:

=sumproduct(--(a1:a100="criteria1"),--(b1:b100="criteria2"),(c1:c100))

To count the number of items (rows) where column A matches one criteria and
column B matches another criteria:

=sumproduct(--(a1:a100="criteria1"),--(b1:b100="criteria2"))

Adjust the ranges to match--but you can't use whole columns.

=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail he
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html

David Bradford wrote:

Sorry, I don't think I was clear. Column A and B won't be the same (as in
the same values)

Column A will specify one criteria (it is actually a code referring to a
fund) and column B will refer to another criteria (and asset within the
fund). I would like to be able to sum all like assets for each fund.

I toyed with if(sumif) but I don't know how this function works...

"Stefi" wrote:

=SUMPRODUCT(--(A2:A9=B2:B9),C2:C9)
Adjust ranges!

Regards,
Stefi


€žDavid Bradford€ť ezt Ă*rta:

Hi

I would like to perform a sumif based on 2 columns being the same.

I am able to run the basic SUMIF(A:A,A1.B:B) but I was wondering if it is
possible to do this based on 2 columns being the same. e.g I want to sum
column c if column a and b are the same.

Any help will be greatly appreciated.


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default Sumif question

In that case, I'd strongly recommend using a Pivot Table...

http://peltiertech.com/Excel/Pivots/pivotstart.htm

In article ,
David Bradford wrote:

I would like to be able to sum all like assets for each fund.



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 Ferg Excel Worksheet Functions 3 February 28th 06 03:37 AM
SUMIF Question Criteria Dave Excel Worksheet Functions 3 February 8th 06 12:48 PM
Embedding a Sumif in a sumif C.Pflugrath Excel Worksheet Functions 5 August 31st 05 07:31 PM
SUMIF with Mutiple Ranges & Criteria PokerZan Excel Discussion (Misc queries) 5 August 4th 05 10:31 PM
sumif Question Jason Excel Discussion (Misc queries) 4 March 15th 05 04:11 PM


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