+ Reply to Thread
Results 1 to 13 of 13

CountIf

Hybrid View

  1. #1
    Michelle
    Guest

    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. #2
    James M
    Guest

    RE: 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. #3
    Michelle
    Guest

    RE: 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. #4
    Bob Phillips
    Guest

    Re: CountIf

    Then maybe you should.

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "Michelle" <[email protected]> wrote in message
    news:[email protected]...
    > 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. #5
    Tom Ogilvy
    Guest

    Re: CountIf

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

    --
    Regards,
    Tom Ogilvy


    "Michelle" <[email protected]> wrote in message
    news:[email protected]...
    > 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. #6
    Michelle
    Guest

    Re: 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" <[email protected]> wrote in message
    > news:[email protected]...
    > > 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. #7
    Tom Ogilvy
    Guest

    Re: CountIf

    If applied correctly, it will.

    --
    Regards,
    Tom Ogilvy


    "Michelle" <[email protected]> wrote in message
    news:[email protected]...
    > 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" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > 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. #8
    Registered User
    Join Date
    12-17-2005
    Location
    Vietnam
    Posts
    17
    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

  9. #9
    Michelle
    Guest

    Re: 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1