Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default Need help with countif function

Hi,
I am trying to produce a count from the following sample data (actual
data over 2000 rows!)..driving me nuts..tried countif but not sure how
to implement it because of dates and multiple criteria

Region Date
North 01/01/05
South 04/05/06
West
East 09/04/01
North 04/03/04
South 11/01/03
West 15/03/01
East
North 14/12/04

Total by date

North 3
South 2
East 1
West 1

I can this can be done in a pivot table but I need a worksheet
function (trust me...if easier for a colleague!)
Can someone help?

Thanks

Chris

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,311
Default Need help with countif function

I'm assuming you want a count of, say, "East" that has a date beside it. In
this formula it only counts "East", but omits the ones in which the cell to
the right is blank.

=SUMPRODUCT(--(A1:A5000="East"),--(B1:B5000<""))

HTH,
Paul

wrote in message
ups.com...
Hi,
I am trying to produce a count from the following sample data (actual
data over 2000 rows!)..driving me nuts..tried countif but not sure how
to implement it because of dates and multiple criteria

Region Date
North 01/01/05
South 04/05/06
West
East 09/04/01
North 04/03/04
South 11/01/03
West 15/03/01
East
North 14/12/04

Total by date

North 3
South 2
East 1
West 1

I can this can be done in a pivot table but I need a worksheet
function (trust me...if easier for a colleague!)
Can someone help?

Thanks

Chris



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Need help with countif function

I'm not exactly sure what you want, but try something like this

=SUMPRODUCT(--(A1:A2000="North"),--(isblank(B1:B2000)=False))

You *may* need to activate with CTRL SHIFT ENTER (but I don't think so)

" wrote:

Hi,
I am trying to produce a count from the following sample data (actual
data over 2000 rows!)..driving me nuts..tried countif but not sure how
to implement it because of dates and multiple criteria

Region Date
North 01/01/05
South 04/05/06
West
East 09/04/01
North 04/03/04
South 11/01/03
West 15/03/01
East
North 14/12/04

Total by date

North 3
South 2
East 1
West 1

I can this can be done in a pivot table but I need a worksheet
function (trust me...if easier for a colleague!)
Can someone help?

Thanks

Chris


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
AND function using COUNTIF Walter L. skinner Excel Worksheet Functions 4 November 6th 07 02:49 PM
Need help with Countif function Mary-Lou Excel Worksheet Functions 21 June 3rd 06 01:23 AM
please help how to combine IF function with Countif function Dinesh Excel Worksheet Functions 6 March 30th 06 08:28 PM
How do I use a countif function according to two other countif fu. Kirsty Excel Worksheet Functions 2 February 20th 06 11:44 AM
Embed a countif function in subtotal function? Stuck at work Excel Worksheet Functions 1 February 14th 06 03:19 AM


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