+ Reply to Thread
Results 1 to 4 of 4

Sumproduct issue

  1. #1
    Registered User
    Join Date
    11-19-2007
    Posts
    2

    Sumproduct issue

    Hi All,

    I have rows of data - each one representing an hour - obviously 24 to a day.
    Each row has "Date", "Time" and "Flag".
    The contents of Flag are either "Bad" or "Good".

    I want each row to contain a cell that contains a count of the number of Bads for that day.

    I know i can type countif() in every row - but i am looking at 20 years data!

    Any ideas for a formula that I can copy and it will handle the job?

    eg. using 4 hours to a day:


    Date Time Flag Count
    1/1 1:00 Bad 1
    1/1 2:00 Good 1
    1/1 3:00 Good 1
    1/1 4:00 Good 1
    2/1 1:00 Bad 3
    2/1 2:00 Good 3
    2/1 3:00 Bad 3
    2/1 4:00 Bad 3



    Any help appreciated

    Jack

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    Hi Jack,

    Try this formula in D2 and filled downward:
    Please Login or Register  to view this content.
    Adjust your range to suit, I used A2:A10000 as an example. Both ranges need to be the same size, though. (A2:A10 = C2:C10, for example)

  3. #3
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    You can use a SUMPRODUCT formula.

    Assume your data is in cells A1:C1000, enter this formula into cell D1:D1000

    Please Login or Register  to view this content.
    Report back if you need further assistance.

  4. #4
    Registered User
    Join Date
    11-19-2007
    Posts
    2
    Thanks for both your help.

    I was really struggling with that - vlookup() - sumif() - row() etc etc.

    But I plugged the sumproduct formula in and it works PERFECTLY.

+ 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