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

前端 未结 3 434
我在风中等你
我在风中等你 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:38
    • If you are using Excel 2010, you are even luckier with COUNTIFS

    • By all means you may use the search range and matching range within countif

      e.g. =COUNTIF(SEARCH RANGE, CRITERIA RANGE)

    0 讨论(0)
  • 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 :) ).

    0 讨论(0)
  • 2021-01-17 11:55

    Try this:

    =COUNTIF(C16:BT16;BU18)
    

    Please note that you may need to use ";" instead of "," depending on your region.

    0 讨论(0)
提交回复
热议问题