+ Reply to Thread
Results 1 to 6 of 6

Counif

  1. #1
    Registered User
    Join Date
    08-18-2005
    Posts
    34

    Counif

    Does anybody know if I can count the number of "STOPS" in one column fr a particular day of the week in another column.

    E.g. I want to count how many "STOPS" occur on a "MONDAY"

  2. #2
    Bob Phillips
    Guest

    Re: Counif

    =SUMPRODUCT(--(A2:A20="Monday"),--(B2:B20="STOPS"))

    if the days are textual, i.e. not real dates. If they are real dates use

    =SUMPRODUCT(--(Weekday(A2:A20)=2),--(B2:B20="STOPS"))

    --
    HTH

    Bob Phillips

    "moglione1" <moglione1.1vsy6d_1127462703.3796@excelforum-nospam.com> wrote
    in message news:moglione1.1vsy6d_1127462703.3796@excelforum-nospam.com...
    >
    > Does anybody know if I can count the number of "STOPS" in one column fr
    > a particular day of the week in another column.
    >
    > E.g. I want to count how many "STOPS" occur on a "MONDAY"
    >
    >
    > --
    > moglione1
    > ------------------------------------------------------------------------
    > moglione1's Profile:

    http://www.excelforum.com/member.php...o&userid=26414
    > View this thread: http://www.excelforum.com/showthread...hreadid=470141
    >




  3. #3
    KL
    Guest

    Re: Counif

    assuming "STOPS" are in column [A] and days are in column [B] in text
    format:

    =SUMPRODUCT(--(A1:A100="STOP"),--(B1:B100="MONDAY"))

    Regards,
    KL


    "moglione1" <moglione1.1vsy6d_1127462703.3796@excelforum-nospam.com> wrote
    in message news:moglione1.1vsy6d_1127462703.3796@excelforum-nospam.com...
    >
    > Does anybody know if I can count the number of "STOPS" in one column fr
    > a particular day of the week in another column.
    >
    > E.g. I want to count how many "STOPS" occur on a "MONDAY"
    >
    >
    > --
    > moglione1
    > ------------------------------------------------------------------------
    > moglione1's Profile:
    > http://www.excelforum.com/member.php...o&userid=26414
    > View this thread: http://www.excelforum.com/showthread...hreadid=470141
    >




  4. #4
    Registered User
    Join Date
    08-18-2005
    Posts
    34
    This only produces a #num error.

    AAAAAHHHHHHH!!!!!!!!!!!

  5. #5
    Bob Phillips
    Guest

    Re: Counif

    Sounds like you haven't implemented as shown.

    Give some sample data and the formula you used.

    --
    HTH

    Bob Phillips

    "moglione1" <moglione1.1vt6ic_1127473510.2325@excelforum-nospam.com> wrote
    in message news:moglione1.1vt6ic_1127473510.2325@excelforum-nospam.com...
    >
    > This only produces a #num error.
    >
    > AAAAAHHHHHHH!!!!!!!!!!!
    >
    >
    > --
    > moglione1
    > ------------------------------------------------------------------------
    > moglione1's Profile:

    http://www.excelforum.com/member.php...o&userid=26414
    > View this thread: http://www.excelforum.com/showthread...hreadid=470141
    >




  6. #6
    Dave Peterson
    Guest

    Re: Counif

    Do you have #num in your data?

    Sometimes, it's good to show the formula you actually tried, too.

    moglione1 wrote:
    >
    > This only produces a #num error.
    >
    > AAAAAHHHHHHH!!!!!!!!!!!
    >
    > --
    > moglione1
    > ------------------------------------------------------------------------
    > moglione1's Profile: http://www.excelforum.com/member.php...o&userid=26414
    > View this thread: http://www.excelforum.com/showthread...hreadid=470141


    --

    Dave Peterson

+ 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