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