Forum Discussion

MMHiggins's avatar
MMHiggins
Copper Contributor
Aug 21, 2021
Solved

Need Help: Count a Cell Equals Exact Text ONLY IF another Cell Equals Exact Text

Hello,   I am trying to count cells in column "K" with a text value of "P" ONLY IF cells in column "H" have a text value of "PT." This is my formula but it keeps returning the value "1" when I know...
  • SergeiBaklan's avatar
    SergeiBaklan
    Aug 21, 2021

    MMHiggins 

    With FREQUENCY() that could be

    =SUM(  --( FREQUENCY( IF( LEN(C5:C166)>0, IF( I5:I166="Eng", MATCH(C5:C166,C5:C166,0))),  ROW(C5:C166) - ROW(C5) +1 ) >0))

    If you are not on Excel 365 you shall use above formula as array one. i.e. use Ctrl+Shift+Enter instead of Enter.  Such formula is explained here Excel formula: Count unique text values with criteria | Exceljet

     

    If you are on Excel 365 there are more simple ways to do the same, above formula shall be used as regulars one (just Enter).

Resources