Consulting

Results 1 to 4 of 4

Thread: Struggling with Countifs formula

  1. #1
    VBAX Contributor
    Joined
    Jul 2011
    Location
    Manchester
    Posts
    142
    Location

    Struggling with Countifs formula

    Hi folks

    I am really struggling with what should be an easy formula but I cannot get to work. I have worksheet with 4 columns (example attached) and need a countifs formula to look at outstanding work. When struggling with countifs I usually create separate formulas and then string them together but this time the separate components work but will not string together!

    In the example the first formula counts the instances ofapples and gives the answer 4 which is correct, the second then look for anytext cells in column C and returns the answer 2 which is correct and the thirdlook for blank cells in column d and return the answer 3 which is alsocorrect. The combined formula shouldcount matches in column A, with any text in column C and not marked as competedin column D (ie blank) so should return an answer of 1 in this example but it doesn’t!
    Any help or advice as to why or what I have done wrong greatlyappreciated.
    Thank you as always
    Mykal
    Attached Files Attached Files

  2. #2
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,874
    try:
    =COUNTIFS(A1:A10,A1,C1:C10,"*",D1:D10,"<>done")
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

  3. #3
    VBAX Contributor
    Joined
    Jul 2011
    Location
    Manchester
    Posts
    142
    Location
    Thank you, I had tried that but it constantly returned a zero answer. I have been playing all afternoon and literally figured it out 30 mins ago. this is how I used it in my live document: For some reason I had to count non blanks first, then status and finally match it to the criteria!!!!

    =COUNTIFS('Sep 18'!$C$4:$C$300,"<>"&"",'Sep 18'!$D$4:$D$300,"Open",'Sep 18'!$A$4:$A$300,C5)

    Thank you again

  4. #4
    VBAX Contributor
    Joined
    Jul 2011
    Location
    Manchester
    Posts
    142
    Location
    Thank you, I had tried that but it constantly returned a zero answer. I have been playing all afternoon and literally figured it out 30 mins ago. this is how I used it in my live document: For some reason I had to count non blanks first, then status and finally match it to the criteria!!!!

    =COUNTIFS('Sep 18'!$C$4:$C$300,"<>"&"",'Sep 18'!$D$4:$D$300,"Open",'Sep 18'!$A$4:$A$300,C5)

    Thank you again

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •