Consulting

Results 1 to 2 of 2

Thread: Count formla for three criteria

  1. #1
    VBAX Tutor
    Joined
    Jan 2006
    Posts
    248
    Location

    Count formla for three criteria

    I have the following formula which I want to alter to only count matching data in 1 column
    =SUMPRODUCT(--(B2:B30=H1),--(E2:E30=I1))
    Currently it checks if value in H1 is in column B and if other criteria is met in cell I1 then counts the results, at the moment it counts columns C & D.

    I have searched & tried to make alterations to the code so it only counts column D not results in both.

    Thanks for any advice

  2. #2
    VBAX Tutor
    Joined
    Jan 2006
    Posts
    248
    Location
    I have found my answer in xld's tutorial on sumproduct by modify ranges in this formula
    =SUMPRODUCT((A1:A6="X")*(B1:B6>4)*(C1:C6="M"))
    thanks again xld for your knowledge.

Posting Permissions

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