+ Reply to Thread
Results 1 to 6 of 6

Counting items using criteria from 3 columns

  1. #1
    Registered User
    Join Date
    01-02-2011
    Location
    California
    MS-Off Ver
    Mac Excel 2011
    Posts
    12

    Counting items using criteria from 3 columns

    Before I get into the challenge, there's a slight wrinkle—which is that this spreadsheet must exist on EditGrid. That's going to limit creativity, but I can see how it's a better solution an emailing a spreadsheet around.

    In the attached spreadsheet, there are 3 columns and to the right of it, there is a small results table. I'd like to count the number of open and future reqs for each department. I used COUNTIFS for a similar Excel spreadsheet but EditGrid doesn't support the formula and these aren't exact matches! The req "numbers" may not always be numbers so I've been trying to figure how I can use COUNTA—I just haven't been able to nail down the logic.

    Any tips and advice would be appreciated! Thanks.
    Attached Files Attached Files
    Last edited by NBVC; 06-10-2011 at 09:45 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Counting items using criteria from 3 columns

    Sumproduct seems to be supported... try:

    =SUMPRODUCT(($A$2:$A$26=$G2)*(C$2:C$26<>""))

    copied down and to next column
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,165

    Re: Counting items using criteria from 3 columns

    Hi gizzard.
    I have no idea what EditGrid is. Look at the attached that has a Pivot Table to do what I think you want.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    01-02-2011
    Location
    California
    MS-Off Ver
    Mac Excel 2011
    Posts
    12

    Re: Counting items using criteria from 3 columns

    MarvinP, thanks for the suggestion. EditGrid is an online spreadsheet (like Google Docs) where many people can view and edit simultaneously. It's in no way comparable to Excel as far as functionality, but the sharing aspect is very useful as you can imagine.

    NBVC, that formula seems to work - thank you! I would have never thought to use it. Would you mind explaining the logic behind how the formula works?

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Counting items using criteria from 3 columns

    As the function name suggests we are summing the products of two conditions.

    Each of the conditions gives an array of TRUEs and FALSEs.

    When those arrays are multiplied together you get results of 1's and 0's (1 occurs when TRUE*TRUE and 0 for all other cases)... then those results are summed to give the results.

    Here is more on Sumproduct

  6. #6
    Registered User
    Join Date
    01-02-2011
    Location
    California
    MS-Off Ver
    Mac Excel 2011
    Posts
    12

    Re: Counting items using criteria from 3 columns

    Thanks - I appreciate the explanation. I'll definitely be thinking about these types of problems differently now that I know how SUMPRODUCT works.

+ 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