If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 How do I count cells that matches multiple criteria in Excel?
 Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

## How do I count cells that matches multiple criteria in Excel?

#1
February 26th 07, 04:40 PM posted to microsoft.public.excel.worksheet.functions
 MEAD5432 external usenet poster Posts: 28
How do I count cells that matches multiple criteria in Excel?

I have a worksheet with product code in column A, Salesperson in column B and
Sales Location in column C. I want to count the number of rows that fit my
criteria; i.e. I want to count the number of rows that are product code 1 AND
sales location 5.
#2
February 26th 07, 04:44 PM posted to microsoft.public.excel.worksheet.functions
 Toppers external usenet poster Posts: 4,339
How do I count cells that matches multiple criteria in Excel?

=SUMPRODUCT((A1:A1000=1)*(C1:C1000=5))

SUMPRODUCT has to have a range defined rther than whole columns.

> I have a worksheet with product code in column A, Salesperson in column B and
> Sales Location in column C. I want to count the number of rows that fit my
> criteria; i.e. I want to count the number of rows that are product code 1 AND
> sales location 5.

#3
February 26th 07, 04:48 PM posted to microsoft.public.excel.worksheet.functions
 Bob Phillips external usenet poster Posts: 10,594
How do I count cells that matches multiple criteria in Excel?

=SUMPRODUCT(--(A2:A20=1),--(B2:B20=5))

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

...
>I have a worksheet with product code in column A, Salesperson in column B
>and
> Sales Location in column C. I want to count the number of rows that fit
> my
> criteria; i.e. I want to count the number of rows that are product code 1
> AND
> sales location 5.

 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts vB code is On Smilies are On [IMG] code is On HTML code is Off
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Excel Newsgroups     Excel Discussion (Misc queries)     Setting up and Configuration of Excel     New Users to Excel     Excel Worksheet Functions     Links and Linking in Excel     Charts and Charting in Excel     Excel Programming About ExcelBanter     About this forum

 Similar Threads Thread Thread Starter Forum Replies Last Post count cells using multiple criteria kjguillermo Excel Worksheet Functions 1 December 8th 06 04:35 AM how to count unique values in excel based on multiple criteria IDBUGM Excel Worksheet Functions 3 March 15th 06 04:00 PM how do I count pairs of cells when each matches a condition? Richard pile Excel Discussion (Misc queries) 4 February 20th 06 07:59 PM Count nonblank cells with multiple criteria Daniel Excel Worksheet Functions 5 November 17th 05 09:59 PM count cells using multiple criteria Alex68 Excel Discussion (Misc queries) 4 May 24th 05 05:26 PM

All times are GMT +1. The time now is 02:24 AM.