#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 310
Default CountIf

I have a spread sheet and I need to count the # of times something happens
per day. Example would be I have the following data.
Date Outcome
1.1.05 Y
1.2.05 Y
1.2.05 Y
1.2.05 N
1.2.05 N
1.3.05 N
1.3.05 Y

I want the results to be as follows
Date Positive Negative
1.1.05 1 0
1.2.05 2 2
1.3.05 1 1 etc.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default CountIf

Michelle,

Have you tried using a pivot table?

J

"Michelle" wrote:

I have a spread sheet and I need to count the # of times something happens
per day. Example would be I have the following data.
Date Outcome
1.1.05 Y
1.2.05 Y
1.2.05 Y
1.2.05 N
1.2.05 N
1.3.05 N
1.3.05 Y

I want the results to be as follows
Date Positive Negative
1.1.05 1 0
1.2.05 2 2
1.3.05 1 1 etc.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 310
Default CountIf

No

"James M" wrote:

Michelle,

Have you tried using a pivot table?

J

"Michelle" wrote:

I have a spread sheet and I need to count the # of times something happens
per day. Example would be I have the following data.
Date Outcome
1.1.05 Y
1.2.05 Y
1.2.05 Y
1.2.05 N
1.2.05 N
1.3.05 N
1.3.05 Y

I want the results to be as follows
Date Positive Negative
1.1.05 1 0
1.2.05 2 2
1.3.05 1 1 etc.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default CountIf

Then maybe you should.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Michelle" wrote in message
...
No

"James M" wrote:

Michelle,

Have you tried using a pivot table?

J

"Michelle" wrote:

I have a spread sheet and I need to count the # of times something

happens
per day. Example would be I have the following data.
Date Outcome
1.1.05 Y
1.2.05 Y
1.2.05 Y
1.2.05 N
1.2.05 N
1.3.05 N
1.3.05 Y

I want the results to be as follows
Date Positive Negative
1.1.05 1 0
1.2.05 2 2
1.3.05 1 1 etc.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default CountIf

=sumproduct(--(A1:A30=DateValue("1/1/05")),--(B1:B30="Y"))

--
Regards,
Tom Ogilvy


"Michelle" wrote in message
...
I have a spread sheet and I need to count the # of times something happens
per day. Example would be I have the following data.
Date Outcome
1.1.05 Y
1.2.05 Y
1.2.05 Y
1.2.05 N
1.2.05 N
1.3.05 N
1.3.05 Y

I want the results to be as follows
Date Positive Negative
1.1.05 1 0
1.2.05 2 2
1.3.05 1 1 etc.





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 310
Default CountIf

I tried this and it does not seem to return the # of times that Y hapens on
the given date.

"Tom Ogilvy" wrote:

=sumproduct(--(A1:A30=DateValue("1/1/05")),--(B1:B30="Y"))

--
Regards,
Tom Ogilvy


"Michelle" wrote in message
...
I have a spread sheet and I need to count the # of times something happens
per day. Example would be I have the following data.
Date Outcome
1.1.05 Y
1.2.05 Y
1.2.05 Y
1.2.05 N
1.2.05 N
1.3.05 N
1.3.05 Y

I want the results to be as follows
Date Positive Negative
1.1.05 1 0
1.2.05 2 2
1.3.05 1 1 etc.




  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default CountIf

If applied correctly, it will.

--
Regards,
Tom Ogilvy


"Michelle" wrote in message
...
I tried this and it does not seem to return the # of times that Y hapens

on
the given date.

"Tom Ogilvy" wrote:

=sumproduct(--(A1:A30=DateValue("1/1/05")),--(B1:B30="Y"))

--
Regards,
Tom Ogilvy


"Michelle" wrote in message
...
I have a spread sheet and I need to count the # of times something

happens
per day. Example would be I have the following data.
Date Outcome
1.1.05 Y
1.2.05 Y
1.2.05 Y
1.2.05 N
1.2.05 N
1.3.05 N
1.3.05 Y

I want the results to be as follows
Date Positive Negative
1.1.05 1 0
1.2.05 2 2
1.3.05 1 1 etc.






  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default CountIf


The formula of sumproduct worked well!

Try to look at your date fomat Michelle to have exact value in betwee
quotation:

=sumproduct(--(A1:A30=DateValue("1/1/05")),--(B1:B30="Y"))

Regards
Roc

--
Roc
-----------------------------------------------------------------------
Rock's Profile: http://www.excelforum.com/member.php...fo&userid=2972
View this thread: http://www.excelforum.com/showthread.php?threadid=49458

  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 310
Default CountIf

Not to sound dumb but are the -- spaces?

"Rock" wrote:


The formula of sumproduct worked well!

Try to look at your date fomat Michelle to have exact value in between
quotation:

=sumproduct(--(A1:A30=DateValue("1/1/05")),--(B1:B30="Y"))

Regards
Rock


--
Rock
------------------------------------------------------------------------
Rock's Profile: http://www.excelforum.com/member.php...o&userid=29723
View this thread: http://www.excelforum.com/showthread...hreadid=494582


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 ??? Tammy Excel Discussion (Misc queries) 0 November 29th 06 04:12 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
edit this =COUNTIF(A1:F16,"*1-2*")+COUNTIF(A1:F16,"*2-1*") sctroy Excel Discussion (Misc queries) 2 September 25th 05 04:13 AM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
COUNTIF in one colum then COUNTIF in another...??? JonnieP Excel Worksheet Functions 3 February 22nd 05 02:55 PM


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

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"