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

心不动则不痛 提交于 2019-12-01 15:03:47

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 :) ).

Try this:

=COUNTIF(C16:BT16;BU18)

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

  • 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)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!