Remember Me?

#1
January 11th 09, 08:29 PM posted to microsoft.public.excel.worksheet.functions
 external usenet poster First recorded activity by ExcelBanter: Jan 2009 Posts: 5
Count cells w/values in column if the data in column a matches cri

I need a formula that counts the number of cell that contain data in column B
as long as the corresponding cell in column A matches a given criteria.

#2
January 11th 09, 08:45 PM posted to microsoft.public.excel.worksheet.functions
 external usenet poster First recorded activity by ExcelBanter: Jul 2006 Posts: 8,856
Count cells w/values in column if the data in column a matchescri

Try this:

=SUMPRODUCT((A1:A100=D1)*(B1:B100<""))

where D1 contains the criteria.

Hope this helps.

Pete

On Jan 11, 8:29*pm, mdcgpw wrote:
I need a formula that counts the number of cell that contain data in column B
as long as the corresponding cell in column A matches a given criteria.

#3
January 11th 09, 08:54 PM posted to microsoft.public.excel.worksheet.functions
 external usenet poster First recorded activity by ExcelBanter: Nov 2008 Posts: 3,346
Count cells w/values in column if the data in column a matches cri

Hi,

=SUMPRODUCT(--(A:A=C1),--(B:B<""))

Here the criteria is in C1.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire

"mdcgpw" wrote:

I need a formula that counts the number of cell that contain data in column B
as long as the corresponding cell in column A matches a given criteria.

#4
January 11th 09, 09:00 PM posted to microsoft.public.excel.worksheet.functions
 external usenet poster First recorded activity by ExcelBanter: Aug 2008 Posts: 5,934
Count cells w/values in column if the data in column a matches cri

That will only work in XL2007 (earlier versions need delimited column ranges
for its arrays). I think I would use delimited ranges even in XL2007
however... not sure how efficient it would be to let array calculations
extend across one million plus rows.

--
Rick (MVP - Excel)

"Shane Devenshire" wrote in
message ...
Hi,

=SUMPRODUCT(--(A:A=C1),--(B:B<""))

Here the criteria is in C1.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire

"mdcgpw" wrote:

I need a formula that counts the number of cell that contain data in
column B
as long as the corresponding cell in column A matches a given criteria.

#5
January 12th 09, 11:55 PM posted to microsoft.public.excel.worksheet.functions
 external usenet poster First recorded activity by ExcelBanter: Jan 2009 Posts: 5
Count cells w/values in column if the data in column a matches

Thank you, however this is not working. Let me try and give more detail.

I am using excel 2000

Data is stored in one worksheet named Jan, in another workshet I have the
summaries and that is where I need to enter the formula.

Worksheet Jan has column F with sales people initials, and columb O with
sales numbers of accessories. In the summary sheet I need to know: Of all
the sales a sales person had, how many had also accessories sales.

Based on your reply, I tried the following, but am getting an error.

I appreciate the help.................................

Thank you

"Pete_UK" wrote:

Try this:

=SUMPRODUCT((A1:A100=D1)*(B1:B100<""))

where D1 contains the criteria.

Hope this helps.

Pete

On Jan 11, 8:29 pm, mdcgpw wrote:
I need a formula that counts the number of cell that contain data in column B
as long as the corresponding cell in column A matches a given criteria.

 Posting Rules Smilies are On [IMG] code is On HTML code is OffTrackbacks are On Pingbacks are On Refbacks are On

 Similar Threads Thread Thread Starter Forum Replies Last Post Sarah (OGI) Excel Discussion (Misc queries) 4 October 17th 08 04:25 AM Kurt Excel Worksheet Functions 7 January 10th 07 09:29 PM Warren Excel Worksheet Functions 2 June 30th 06 09:53 AM witchcat98 Excel Worksheet Functions 1 February 4th 05 01:38 PM confounded office user Excel Worksheet Functions 2 November 9th 04 12:02 PM

All times are GMT +1. The time now is 07:35 PM.

The comments are property of their posters.