How to count cells in a range with a value less than another cell in excel?

前端 未结 3 1749
陌清茗
陌清茗 2020-11-30 15:37

My Table looks like below

\"enter

if \"team1\" value is less than \"general\"

3条回答
  •  醉话见心
    2020-11-30 15:43

    You can use XL4 macros (Excel formula) to count up cells with different backcolor or even font colour in excel :) See this LINK. For Font color the type_num is 24. And for backcolor we will use 63

    1. Open the Name Manager
    2. Give a name. Say BackColor
    3. Type this formula in Refers To =GET.CELL(63,OFFSET(INDIRECT("RC",FALSE),-1,0)) and click OK

    enter image description here

    The explanation of =GET.CELL() is mentioned in the above link.

    Now let's say your workbook looks like this

    enter image description here

    Next put this formula in row 2.

    =backcolor
    

    enter image description here

    Next put =COUNTIF(A2:J2,8) and =COUNTIF(A2:J2,7) in cell C5 and C6 respectively and you will get the total count of colors.

    enter image description here

提交回复
热议问题