Ask Experts Questions for FREE Help !
Ask
    rsdjimbie's Avatar
    rsdjimbie Posts: 96, Reputation: 3
    Junior Member
     
    #1

    Feb 28, 2010, 12:45 PM
    Count a criteria based on a second
    Please refer attachment.

    I need to count a criteria based on a second.

    For sheets "Adjustments" cells "B16" should count "IF" sheets "Prod A-Prod D" columns "C:C"="Charge hand" and columns "X:X"="A".

    For sheets "Adjustments" cells "B17" should count "IF" sheets "Prod A-Prod D" columns "C:C"="Service hand" and columns "X:X"="A".

    And the same criteria for answer in sheet "Adjustments" cells "C16:E17", except columns "X:X" will change to "B-D" respectively.

    How's that? Cannot do it clearer. Thanks.
    rsdjimbie's Avatar
    rsdjimbie Posts: 96, Reputation: 3
    Junior Member
     
    #2

    Feb 28, 2010, 12:47 PM
    Attachment
    Attached Files
  1. File Type: zip Count IF And.zip (81.9 KB, 83 views)
  2. JBeaucaire's Avatar
    JBeaucaire Posts: 5,426, Reputation: 997
    Software Expert
     
    #3

    Feb 28, 2010, 09:16 PM

    In B16:

    =SUMPRODUCT(--('Line A'!$C$1:$C$100=$F$16), --('Line A'!$X$1:$X$100="A"))

    The -- cause the TRUE/FALSE answers inside each array to convert into 1s and 0s, so the SUMPRODUCT() can them add them.

    I also had to adjust the values in F16 and F17 to match the values on your Prod sheets.
    Attached Files
  3. File Type: xls SUMPRODUCTexample.xls (290.5 KB, 184 views)
  4. rsdjimbie's Avatar
    rsdjimbie Posts: 96, Reputation: 3
    Junior Member
     
    #4

    Mar 4, 2010, 10:33 AM

    Now, this is good!
    JBeaucaire's Avatar
    JBeaucaire Posts: 5,426, Reputation: 997
    Software Expert
     
    #5

    Mar 4, 2010, 12:43 PM

    That works for you? Glad to hear.

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Weekly sum (5 days by 5 or 7 by 7.) based on dynamic criteria. [ 4 Answers ]

Hello! I'd like to make a weekly sum but with a dynamic criteria which I can choose. I have a column with a formula that gives me negative and positive values. The weekly sum only starts when this column is above or equal 1. I want to sum 5 by 5 days (5 by cells from another page in the...

Distribute data among agents based on specified criteria [ 2 Answers ]

Respected Sirs, Im new to VB :( and desperately in need of this. I need to distribute loans that are received from different states among agents, in such a way that no single agent receives only one state loan, but the loans(per state) are distributed among all. In case the loans(of a...

2 criteria to count and can't run queries [ 1 Answers ]

I am on a Corporate networked computer and it won't allow queries or macros. I need to count values in one column only if they match with values in another column. Is there no formula (i.e. countif) that can do this for me?

Painting Cabinets - Oil based or Water based? [ 1 Answers ]

Going to be painting my oak kitchen cabinets white. I heard that oil based paint would be best, but don't want to deal with the extra mess. Is there anything wrong with using a good acrylic enamel?


View more questions Search