Consulting

Results 1 to 3 of 3

Thread: Solved: Excel countif multiple criteria

  1. #1
    VBAX Regular WYLIE's Avatar
    Joined
    Apr 2012
    Posts
    12
    Location

    Solved: Excel countif multiple criteria

    I’m having trouble doing a count of multiple conditions in different columns in excel.

    The condition I am trying to count is when it meets my initials "CW" against one of the conditions "MHA SOAD" and how many times does it occur.

    I have tried numerous of code using the Google search but it's still not working correctly.

    i.e.
    =COUNTIF(RecordedLog!C4:C57,AND(RecordedLog!C4:C57="CW",RecordedLog!F4:F71= "MHA SOAD"))

    Please find MHlog.zip attached
    Attached Files Attached Files

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    This should do it

    =SUMPRODUCT(--(RecordedLog!C4:C52="CW"),--(RecordedLog!F4:F52= "MHA SOAD"))

    BTW, what is your avatar a picture of?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Regular WYLIE's Avatar
    Joined
    Apr 2012
    Posts
    12
    Location
    Thanks for you help xld, I came across =SUMPRODUCT on a search and works

    The avatar picture is of me in Tanzania on safari last year, just a little reminder of where I want to be.

Posting Permissions

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