Results 1 to 2 of 2
  1. #1
    Bronze Lounger
    Join Date
    Sep 2007
    Posts
    1,203
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I think I need sumproduct here?? and would appreciate some help.

    Range("U13").Formula = "="

    I need to count (DataSheet!M2:M5000) IF:

    (DataSheet!M2:M5000) is not ""
    If N is not "X" or "Y" or "Z"
    IF K begins with "11" or "80"

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    Range("U13").Formula = "=SUMPRODUCT((M2:M5000<>"""")*(N2:N5000<>""X"")*(N 2:N5000<>""Y"")*(N2:N5000<>""Z"")*((LEFT(K2:K5000, 2)=""11"")+(LEFT(K2:K5000,2)=""80"")))"

Posting Permissions

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