+ Reply to Thread
Results 1 to 3 of 3

Count how often value occurs in multiple groups with non adjacent cells.

  1. #1
    Registered User
    Join Date
    07-02-2012
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    46

    Count how often value occurs in multiple groups with non adjacent cells.

    More help needed

    I have a worksheet and need to calculate some data. Here's how it looks
    Col G rows 31-34, 64-67, 105-108, 148-151, 184-187, 216-219, 251-254, 280-283, 309-312, 337-340, 366-369, 394-397 have four different groups

    IE G31 group 1
    G32 group 2
    G33 Group 3
    G34 Group 4
    G64 Group 1
    G65 Group 2
    G66 Group 3
    G67 Group 4 on and on.

    Column H same rows indicates each group completed the list of items for a project.

    IE G31 group 1 H31 C
    G32 group 2 H32 P
    G33 Group 3 H33 C
    G34 Group 4 H34 C

    "C" indicates complete "P" indicates partial complete blankk means not started.

    Basicallly I I need a formula that will calculate how manny times a "C appears next to each group.

    So cell G3 "Group 1 Total C" H3 =#C's(Group1,G31:G397)

    I cannot change from C and P as this data is copied from & copied to other worksheets, in this workbook of 80+ pages and would cause other calculation errors.

    Any and all help is appreciated.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Count how often value occurs in multiple groups with non adjacent cells.

    try
    =sumproduct((G31:G397="group 1")*(H31:h397="c"))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    07-02-2012
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    46

    Re: Count how often value occurs in multiple groups with non adjacent cells.

    Damn I love this forum. Except for one question that's still open, I always got an answer within minutes of posting.

+ 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