Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Kenton_SJ
 
Posts: n/a
Default Adding an AND Statement to COUNTIF

I want to count how many times a salesman's name comes up in a list. I would
like to be able to break it up by year, so the COUNTIF will filter through
the salesperson column and count the number of sales in any given year.

Date: Salesperson
01/01/2002 John
01/02/2002 John
01/02/2002 Cindy
01/01/2003 John
01/01/2003 Cindy

These are examples of my columns, I have about 7500 rows of data, from
around 5 years of sales. I can figure out how to filter with the serialized
date, and the COUNTIF will give me the total number of sales for each
Salesperson. I just can't seem to get them to work together. Any help here
would be greatly appreciated.

Thanks.
  #2   Report Post  
CLR
 
Posts: n/a
Default

You might try doing your AutoFilter to get the series of data you want, then
copying it over to another sheet, and then doing a normal COUNTIF formula on
that new sheet.

If you have to do that a lot, it can be automated with macros to produce a
"report".........

Vaya con Dios,
Chuck, CABGx3



"Kenton_SJ" wrote in message
...
I want to count how many times a salesman's name comes up in a list. I

would
like to be able to break it up by year, so the COUNTIF will filter through
the salesperson column and count the number of sales in any given year.

Date: Salesperson
01/01/2002 John
01/02/2002 John
01/02/2002 Cindy
01/01/2003 John
01/01/2003 Cindy

These are examples of my columns, I have about 7500 rows of data, from
around 5 years of sales. I can figure out how to filter with the

serialized
date, and the COUNTIF will give me the total number of sales for each
Salesperson. I just can't seem to get them to work together. Any help

here
would be greatly appreciated.

Thanks.



  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

You could just use a single formula

=SUMPRODUCT(--(YEAR(A2:A7500)=2002),--(B2:B7500="John"))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Kenton_SJ" wrote in message
...
I want to count how many times a salesman's name comes up in a list. I

would
like to be able to break it up by year, so the COUNTIF will filter through
the salesperson column and count the number of sales in any given year.

Date: Salesperson
01/01/2002 John
01/02/2002 John
01/02/2002 Cindy
01/01/2003 John
01/01/2003 Cindy

These are examples of my columns, I have about 7500 rows of data, from
around 5 years of sales. I can figure out how to filter with the

serialized
date, and the COUNTIF will give me the total number of sales for each
Salesperson. I just can't seem to get them to work together. Any help

here
would be greatly appreciated.

Thanks.



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
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM
COUNTIF Statement with Multiple Conditions in Different Ranges KJA Excel Worksheet Functions 2 April 26th 05 05:14 PM
Countif Function with and Statement Matt Excel Worksheet Functions 3 March 4th 05 08:32 PM
countif statement Russell Hampton Excel Worksheet Functions 6 December 18th 04 07:39 PM
adding if statement results Robb27 Excel Worksheet Functions 3 November 20th 04 05:27 AM


All times are GMT +1. The time now is 02:51 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"