+ Reply to Thread
Results 1 to 4 of 4

do I need array formula or sumproduct for counting?

  1. #1
    Karin
    Guest

    do I need array formula or sumproduct for counting?

    I'm sure something like this has been answered here before, but I haven't
    found it yet after an admittedly short search...

    My worksheet has a list of tasks across the top (in row 6) and then days
    down the left side (in column a). I had a simple =counta(b8:ai8) in the last
    column to give me the total tasks completed. (I was just typing an X or
    whatever into each cell to indicate it was done.)

    Well, now there are three types of days. On "M" days, only the 9 "M" tasks
    need to be done. On "B" days, "M" and "B" tasks need to be done. And on all
    other days, all 34 tasks need to be done. So I added a row (7) to indicate
    what category each task is, "m" "b" or blank. And then than I inserted a
    column (B) so I could indicate what kind of day it is.

    In other words:

    A B C D E F
    6 Type task1 task2 task3 task4
    7 m b m
    8 Wed03/22 b X X
    9 Thu03/23 m X X
    10 Fri03/24 X X X
    11 Sat03/25 m X

    I thought I could just use an if statement:
    =IF(B8="m",COUNTIF(C8:AJ8, ???? ),IF(B8="b",COUNTIF(C8:AJ8, ????
    ),COUNTA(c8:AJ8)))
    but I can't figure out what to include as the conditional statement in the
    Countifs. I want to compare the code for each task (in row 7: b m or blank)
    to the code for the current day (in column B) and only count "M" tasks on "M"
    days, count "M" and "B" tasks on "B" days and count all tasks on "blank" days.

    Can I use sumproduct for that? (It's been a while since I read about
    Sumproduct, but I never really understood it to being with...) Or do I need
    an array formula? Or something else?

    Hope I've explained it well enough. Thanks for any help you can give!
    Karin



    By the way, when I got a new computer, I didn't copy over all my bookmarks
    to various helpful Excel sites, so need to compile a new set of "favorites".
    If you have any suggestions, please let me know. (I'm a huge MVPs fans!)
    Reply to this or send to karin (at) charterinternet (dot) com

  2. #2
    Karin
    Guest

    RE: do I need array formula or sumproduct for counting?

    Scratch my question. I don't know how to delete it, but after reading a few
    other posts and being led to http://www.contextures.com/, I found something
    that would work (sumproduct). Thanks for this website, Debra!!!

  3. #3
    Bob Phillips
    Guest

    Re: do I need array formula or sumproduct for counting?


    "Karin" <karin(removethis)@charterinternet.com> wrote in message
    news:[email protected]...

    > By the way, when I got a new computer, I didn't copy over all my bookmarks
    > to various helpful Excel sites, so need to compile a new set of

    "favorites".
    > If you have any suggestions, please let me know. (I'm a huge MVPs fans!)
    > Reply to this or send to karin (at) charterinternet (dot) com


    These are the ones that I use most

    www.cpearson.com
    www.j-walk.com/ss
    http://www.mvps.org/dmcritchie
    www.rondebruin.nl
    www.xldynamic.com
    www.contextures.com
    http://www.oaltd.co.uk
    http://www.jkp-ads.com
    http://www.mcgimpsey.com

    In many, there are specific pages that I also bookmark, such as
    http://www.mvps.org/dmcritchie/excel/getstarted.htm, but take a look and see
    your own favourites.



  4. #4
    Karin
    Guest

    Re: do I need array formula or sumproduct for counting?

    Thanks Bob! I recognize some of these as the ones I used to refer to all the
    time. I really appreciate the response!
    -karin

    "Bob Phillips" wrote:
    > These are the ones that I use most
    >
    > www.cpearson.com
    > www.j-walk.com/ss
    > http://www.mvps.org/dmcritchie
    > www.rondebruin.nl
    > www.xldynamic.com
    > www.contextures.com
    > http://www.oaltd.co.uk
    > http://www.jkp-ads.com
    > http://www.mcgimpsey.com
    >
    > In many, there are specific pages that I also bookmark, such as
    > http://www.mvps.org/dmcritchie/excel/getstarted.htm, but take a look and see
    > your own favourites.
    >
    >
    >


+ 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