Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default how do sum a column only if meets the criterias of 2 columns

I would like to sum a column only if meets the criteria of one and another
column.
what formula should i be using? i was using sumif but this is for the
criteria of one column.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default how do sum a column only if meets the criterias of 2 columns

Use SUMPRODUCT.

See countless examples in this newsgroup.
--
David Biddulph

"Lorenzo" wrote in message
...
I would like to sum a column only if meets the criteria of one and another
column.
what formula should i be using? i was using sumif but this is for the
criteria of one column.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 258
Default how do sum a column only if meets the criterias of 2 columns

Lorenzo --

Not sure from your question -- do you mean compute the sum of cells in rows
where two other criteria are met? Or compute a sum of all rows if two
criteria are met (otherwise, do something else).

"Lorenzo" wrote:

I would like to sum a column only if meets the criteria of one and another
column.
what formula should i be using? i was using sumif but this is for the
criteria of one column.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default how do sum a column only if meets the criterias of 2 columns

If you're using xl2007, take a look at =sumifs() in excel's help.

In xl2003 and below:

=sumproduct(--(a1:a10="something"),--(b1:b10="another"),C1:c10)

Adjust the ranges to match--but you can't use whole columns (except in xl2007).

=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

Lorenzo wrote:

I would like to sum a column only if meets the criteria of one and another
column.
what formula should i be using? i was using sumif but this is for the
criteria of one column.


--

Dave Peterson
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
How do I count in column A when it meets all criteria in three col dereksmom Excel Worksheet Functions 2 November 9th 06 04:37 PM
Counting occurances in one column if another col. meets a certain Robert Excel Worksheet Functions 1 October 9th 06 10:47 PM
Need function for one value for two criterias and two columns Melanie Excel Worksheet Functions 6 August 14th 06 05:38 AM
sum column when it meets certain conditions jimswinder Excel Worksheet Functions 4 July 21st 06 06:37 PM
Count the number of rows where more than one column meets set crit BarrieVoice Excel Worksheet Functions 2 July 14th 06 07:25 PM


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