#1   Report Post  
Posted to microsoft.public.excel.misc
scott
 
Posts: n/a
Default COUNTIF HELP???

I am trying to count how many times a customer has a discrepancy using a
COUNTIF formula.
I have set up:

=COUNTIF(S:S,"CUSTOMER") - where S:S is a column of drop down lists where
"CUSTOMER" can be selected.

However, I need to have counts per month. I tried to specify the data per
month like:

=IF(MONTH(B:B)=5,COUNTIF(S:S,CUSTOMER),) - where B:B is a column of dates.

Is this even possible? Do I need to enter my dates as =DATE(2006,5,16)?

Thanks for your time.
Scott
  #2   Report Post  
Posted to microsoft.public.excel.misc
Nikki
 
Posts: n/a
Default COUNTIF HELP???

for month of Dec you can use the following formula:

=SUMPRODUCT(--(S:S="Customer"),--(B:B="Dec"))
and so on....

"scott" wrote:

I am trying to count how many times a customer has a discrepancy using a
COUNTIF formula.
I have set up:

=COUNTIF(S:S,"CUSTOMER") - where S:S is a column of drop down lists where
"CUSTOMER" can be selected.

However, I need to have counts per month. I tried to specify the data per
month like:

=IF(MONTH(B:B)=5,COUNTIF(S:S,CUSTOMER),) - where B:B is a column of dates.

Is this even possible? Do I need to enter my dates as =DATE(2006,5,16)?

Thanks for your time.
Scott

  #3   Report Post  
Posted to microsoft.public.excel.misc
daddylonglegs
 
Posts: n/a
Default COUNTIF HELP???


For more than one condition SUMPRODUCT can be used

=SUMPRODUCT(--(MONTH(B1:B100)=5),--(S1:S100="CUSTOMER"))

note you can't use whole columns as with COUNTIF


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=542722

  #4   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default COUNTIF HELP???

=SUMPRODUCT(--(S2:S200="CUSTOMER"),--(MONTH(B2:B200)=5))

Note that SUMPRODUCT doesn't work with complete columns, you have to specify
a range.

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"scott" wrote in message
...
I am trying to count how many times a customer has a discrepancy using a
COUNTIF formula.
I have set up:

=COUNTIF(S:S,"CUSTOMER") - where S:S is a column of drop down lists where
"CUSTOMER" can be selected.

However, I need to have counts per month. I tried to specify the data per
month like:

=IF(MONTH(B:B)=5,COUNTIF(S:S,CUSTOMER),) - where B:B is a column of dates.

Is this even possible? Do I need to enter my dates as =DATE(2006,5,16)?

Thanks for your time.
Scott



  #5   Report Post  
Posted to microsoft.public.excel.misc
Nikki
 
Posts: n/a
Default COUNTIF HELP???

sorry just make sure you have a correct range in there,
=SUMPRODUCT(--(S1:S1000="Customer"),--(B1:B1000="Dec"))

"Nikki" wrote:

for month of Dec you can use the following formula:

=SUMPRODUCT(--(S:S="Customer"),--(B:B="Dec"))
and so on....

"scott" wrote:

I am trying to count how many times a customer has a discrepancy using a
COUNTIF formula.
I have set up:

=COUNTIF(S:S,"CUSTOMER") - where S:S is a column of drop down lists where
"CUSTOMER" can be selected.

However, I need to have counts per month. I tried to specify the data per
month like:

=IF(MONTH(B:B)=5,COUNTIF(S:S,CUSTOMER),) - where B:B is a column of dates.

Is this even possible? Do I need to enter my dates as =DATE(2006,5,16)?

Thanks for your time.
Scott

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
Countif Formula /Sort Bug??? orcfodder Excel Discussion (Misc queries) 2 January 12th 06 10:04 AM
COUNTIF with Logic? Leonhardtk Excel Worksheet Functions 3 January 10th 06 11:09 PM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
Combining IF and COUNTIF based on two columns maxtrixx Excel Discussion (Misc queries) 5 March 31st 05 06:21 PM
Countif - Countif maswinney Excel Worksheet Functions 3 November 15th 04 11:06 PM


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