1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Sumproduct / countif

Discussion in 'Business Applications' started by briginsr, Jan 20, 2011.

Thread Status:
Not open for further replies.
  1. briginsr

    briginsr Thread Starter

    Joined:
    Jan 19, 2011
    Messages:
    1
    Hi

    I have a data table with the following:

    A - Site (ranging 1-9999 and a site can appear more than once and up to 11 times)
    B - Room number at site (this is a unique number per entry)
    C - Site "complete" / "started" (the part of the site next to the completed room number at site will become complete once the room is updated. i.e. If there are 7 rooms at site number 82, 82 will appear 7 times in column A and as each room number is completed, a "complete" will go next to the site number of the corresponding room. So if there are 4 rooms completed, 4 of the 82's will have a complete next to them and the remaining 3 82's will be blank / "started"

    I'm trying to produce a status report to show how many Sites are 100% complete (i.e. all of the rooms at that site have been "completed"). I've tried using Sumproduct and CountIf in various different ways but haven't been able to generate anything that doesn't require manually inputting the formula against each site, and with 9999 sites and many of them appearing multiple times, it's proving to be a nightmare!

    Would any of you have any suggestions?

    Thanks
     
  2. bomb #21

    bomb #21

    Joined:
    Jul 1, 2005
    Messages:
    8,546
    "Labels" in E1:F1 -- "Site", "Complete".

    Sites in E2:En (you can use Advanced Filter > Uniques to "pull" these).

    In F2:

    =SUMPRODUCT(($A$2:$A$6=E2)*($C$2:$C$6="complete"))/COUNTIF(A:A,E2)

    and copy down. You'll have to adjust the "$6" refs to match the "length" of your columns. Then just filter E:F where F = 1.

    HTH (welcome to the board :))
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/975767

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice