COUNTIFS or SUMPRODUCT? Match criteria if other criteria is met.

  • Hi Guys,


    This is a grab from the actual sheet.


    I'm trying to formulate cells R and T from source sheet into L22 on working sheet.


    Source sheet (label; TRACKER)
    [TABLE="class: grid, width: 500"]

    [tr]


    [td][/td]


    [td]

    R

    [/td]


    [td]

    S

    [/td]


    [td]

    T

    [/td]


    [td]

    U

    [/td]


    [/tr]


    [tr]


    [td]

    3

    [/td]


    [td]

    (12) Active

    [/td]


    [td]

    01/03

    [/td]


    [td][/td]


    [td][/td]


    [/tr]


    [tr]


    [td]

    4

    [/td]


    [td]

    (12) Expired -C

    [/td]


    [td]

    07/03

    [/td]


    [td]

    (12) Active

    [/td]


    [td]

    08/03

    [/td]


    [/tr]


    [tr]


    [td]

    5

    [/td]


    [td]

    (12) Expired -D

    [/td]


    [td]

    09/03

    [/td]


    [td][/td]


    [td][/td]


    [/tr]


    [tr]


    [td]

    6

    [/td]


    [td]

    Decline

    [/td]


    [td]

    09/03

    [/td]


    [td][/td]


    [td][/td]


    [/tr]


    [tr]


    [td]

    7

    [/td]


    [td]

    (6) Expired -C

    [/td]


    [td]

    12/03

    [/td]


    [td]

    (6) Expired -C

    [/td]


    [td]

    13/03

    [/td]


    [/tr]


    [/TABLE]


    Working sheet
    [TABLE="class: grid, width: 500"]

    [tr]


    [td][/td]


    [td]

    K

    [/td]


    [td]

    L

    [/td]


    [/tr]


    [tr]


    [td]

    21

    [/td]


    [td]

    ACTIVE

    [/td]


    [td][/td]


    [/tr]


    [tr]


    [td]

    22

    [/td]


    [td]

    INACTIVE

    [/td]


    [td][/td]


    [/tr]


    [/TABLE]



    L21 is simply the total of values equal to active in range R:R and T:T


    There is no disqualifier to an active value. I have this one working.


    =COUNTIF(TRACKER!R:R,"*ACTIVE*")+COUNTIF(TRACKER!T:T,"*ACTIVE*")


    L22 needs to be the total of values not equal to active in R:R and T:T.


    This is where the fun begins.


    if T:T != active & is not blank then count = 1
    if R:R != active & T:T != active then count = 1
    if R:R != active & T:T = active then count = 0


    So in real terms, what i am trying to establish is this.


    Where R = new client contract
    And T = client recontract


    How many clients are no currently contracted?


    I only want to count the out of contract cell in R, if there is no corresponding recontract cell in T.


    Help is much appreciated.

  • Re: COUNTIFS or SUMPRODUCT? Match criteria if other criteria is met.


    Welcome to the forum!


    What is the answer you are expecting to get in L22?

    Ali :)


    Enthusiastic self-taught user of MS Excel who's always learning!
    If anyone has helped you towards solving a problem, then you can thank them by clicking on the like icon bottom right.

    :!:Forum Rules

  • Re: COUNTIFS or SUMPRODUCT? Match criteria if other criteria is met.


    Hello AliGW .. :wink:


    Just noticed ....
    https://www.mrexcel.com/forum/excel-questions/997615-countif-sumproduct-if-adjecent-cell-not-string.html


    Cheers

    If you feel like saying "Thank You" for the help received, do not hesitate to click the "Smiley" icon, below, in the bottom right corner :)

  • Re: COUNTIFS or SUMPRODUCT? Match criteria if other criteria is met.


    Well-spotted!


    MODERATOR NOTICE: This topic has also been posted on other sites and may already have an answer elsewhere. Please take this into consideration when answering this question

    *

    Ali :)


    Enthusiastic self-taught user of MS Excel who's always learning!
    If anyone has helped you towards solving a problem, then you can thank them by clicking on the like icon bottom right.

    :!:Forum Rules

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!