Count number of cells in a range that match the content of a different cell

前端 未结 3 440
我在风中等你
我在风中等你 2021-01-17 11:23

I am trying to use COUNTIF in Excel to find how many items in a range match the contents of a separate cell. The idea is, the range contains everyone\'s answers

3条回答
  •  北荒
    北荒 (楼主)
    2021-01-17 11:40

    Try removing the quotes and equal sign from "=BU18" - that will indicate that you are passing the value at that cell, which I believe is what you're looking for.

    =COUNTIF(C16:BT16,BU18)
    

    Assuming BU18 contains DEN. Your first example ("=BU18") is saying "count if any of these cells have a value of "=BU18", which won't match anything (unless they answered some weird questions :) ).

提交回复
热议问题