Forum Discussion

SteveMM's avatar
SteveMM
Copper Contributor
May 03, 2021
Solved

Count number of cells in each row assigned different colors through Conditional formatting

Hello community!   I'm new here and have a question on how to count number of cells in each row that have been assigned different colors through Conditional formatting in Excel 365.   I have done...
  • HansVogelaar's avatar
    May 03, 2021

    SteveMM 

    Refer to the conditions instead of to the colors:

     

    In H3:  =COUNTIFS($D3:$F3,">"&$B3,$D3:$F3,"<"&$C3)

    In I3:   =COUNTIF($D3:$F3,$B3)+COUNTIF($D3:$F3,$C3)

    In J3:  =COUNTIFS($D3:$F3,"<"&$B3,$D3:$F3,"<>")+COUNTIFS($D3:$F3,">"&$C3,$D3:$F3,"<>")

     

    Fill down.

Resources