ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   COUNTIF question (https://www.excelbanter.com/excel-discussion-misc-queries/88871-countif-question.html)

scott

COUNTIF question
 
I would like to use a COUNTIF formula to count how many times a customer has
a discrepency per month. I have set one up for my whole worksheet as :

=COUNTIF(S:S,"CUSTOMER")

S:S is a column in which I have a drop down list where "CUSTOMER" can be
selected.

This works fine, however, I would like to specify the information per month.
I am unsure how to set up a range to look at within my B:B column (date
column).

My dates are set up as 3/1/2006. Could I return only information for the
month of March, April, May etc?

Ardus Petus

COUNTIF question
 
Hi, Scott

=SUMPRODUCT(--(MONTH(B1:B65536)=3);--(S1:S65536="CUSTOMER"))

HTH
--
AP

"scott" a écrit dans le message de news:
...
I would like to use a COUNTIF formula to count how many times a customer
has
a discrepency per month. I have set one up for my whole worksheet as :

=COUNTIF(S:S,"CUSTOMER")

S:S is a column in which I have a drop down list where "CUSTOMER" can be
selected.

This works fine, however, I would like to specify the information per
month.
I am unsure how to set up a range to look at within my B:B column (date
column).

My dates are set up as 3/1/2006. Could I return only information for the
month of March, April, May etc?





All times are GMT +1. The time now is 07:42 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com