1. Welcome to Chandoo.org Forums. Short message for you

    Hi Guest,

    Thanks for joining Chandoo.org forums. We are here to make you awesome in Excel. Before you post your first question, please read this short introduction guide. When posting or responding to questions please remember our values at Chandoo.org are: Humility, Passion, Fun, Awesomeness, Simplicity, Sharing Remember that we have people here for whom English is not there first language and we need to allow for this in our dealings.

    Yours,
    Chandoo
  2. Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  3. When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

COUNTIF and SUMIFS

Discussion in 'Ask an Excel Question' started by peterjack, Jul 17, 2017.

  1. peterjack

    peterjack New Member

    Messages:
    1
    I have multiple data fields but I want the count if I:I is equal to "FLUID", J:J is not equal to "VERIFIED", and L:L has any text that begins in "Y". Then the same for the sum.


    The formulas I have in 2007 that work perfectly. Any suggestions on how to make it work with 2003?


    =COUNTIFS(I12:I1001,"FLUID",J12:J1001,"<>VERIFIED",L12:L1001,"Y*")


    =SUMIFS(G12:G1001,I12:I1001,"FLUID",J12:J1001,"<>VERIFIED",L12:L1001,"Y*")
  2. John Jairo V

    John Jairo V Well-Known Member

    Messages:
    360
    Hi, @peterjack !

    You can use SUMPRODUCT to work with 2003:

    The countifs formula:

    Option 1:
    =SUMPRODUCT(--(I12:I1001="FLUID"), --(J12:J1001<>"VERIFIED"), --(LEFT(L12:L1001)="Y"))

    Option 2:
    =SUMPRODUCT((I12:I1001="FLUID")*(J12:J1001<>"VERIFIED")*(LEFT(L12:L1001)="Y"))

    The sumifs formula:

    Option 1:
    =SUMPRODUCT(--(I12:I1001="FLUID"), --(J12:J1001<>"VERIFIED"), --(LEFT(L12:L1001)="Y"), G12:G1001)

    Option 2:
    =SUMPRODUCT((I12:I1001="FLUID")*(J12:J1001<>"VERIFIED")*(LEFT(L12:L1001)="Y")*G12:G1001)

    I prefer the Option 1 in both formulas, for performance. Blessings!
    Thomas Kuriakose likes this.

Share This Page