#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Sumif / Countif

Hi
is there any way that i can use 2 arguments for sumif & countif functions
instead of just 1?
--
Lois
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default Sumif / Countif

Sorta. You need to use the SUMPRODUCT formula
Example of summing everything that corresponds to "tom" or "bob"
=SUMPRODUCT(((A2:A10="Tom")+(A2:10="Bob"))*(B2:B10 )
Conditions in multiple columns (Bob in column A, Car in column C
=SUMPRODUCT((A2:A10="Bob")*(C2:C10="Car")*(B2:B10) )

Similarly, a count of instances of Bob in column A, Car in column C
=SUMPRODUCT((A2:A10="Bob")*(C2:C10="Car"))
Or count in same column
=SUMPRODUCT(((A2:A10="Tom")+(A2:10="Bob"))

Note that you can't callout entire columns (A:A), and ranges must be the
same size.
Also, XL 2007 introduced SUMIFS and COUNTIFS, which allows multiple criteria.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Blue" wrote:

Hi
is there any way that i can use 2 arguments for sumif & countif functions
instead of just 1?
--
Lois

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Sumif / Countif

Yes, SUMPRODUCT. Countless examples can be seen in the archives of this
newsgroup.
--
David Biddulph

"Blue" wrote in message
...
Hi
is there any way that i can use 2 arguments for sumif & countif functions
instead of just 1?
--
Lois



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Sumif / Countif

If you are using xl2007, you can use SUMIFS, and COUNTIFS functions


"Blue" wrote:

Hi
is there any way that i can use 2 arguments for sumif & countif functions
instead of just 1?
--
Lois

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
From SUMIF to COUNTIF Jennie Excel Worksheet Functions 0 June 18th 08 12:37 PM
sumif or countif not sure Ann Excel Worksheet Functions 11 June 28th 07 09:00 PM
COUNTIF?? SUMIF?? Vegs Excel Discussion (Misc queries) 1 December 19th 05 03:52 PM
Countif, Sumif reno Excel Worksheet Functions 2 February 12th 05 02:31 AM
Countif, Sumif, If - help! Angel160 Excel Worksheet Functions 2 November 3rd 04 05:23 PM


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