What I want to do: Include a "Statistics" sheet at the end of my document that searches every sheet and counts the number of times that text from a reference cell (e.g., "buffers") is mentioned.
Background: I'm trying to help a student I tutor find his weak areas. For each question we go over, I have a column with 'tags' such as "buffers." Sometimes a question has multiple tags, e.g. "buffers, intermolecular forces" separated by a comma.
I've been using the COUNTIF function like this:
=COUNTIF(Sheet1!E:E,"*buffers*")+COUNTIF(Sheet2!E:E,"*buffers*")+....
This did what I needed. However, I have a lot of tags, so I would rather save time and just write Buffers in a cell in my Statistics sheet, e.g. A3, and write the formula:
=COUNTIF(Sheet1!E:E,A3)+COUNTIF(Sheet2!E:E,A3)+....
which I can then quickly copy for all my tags in separate reference cells.
When I tried this, it was only counting cells that exactly matched "Buffers," so it wasn't counting questions with multiple tags, e.g. "Buffers, intermolecular forces." This is the crux of my problem. Is there a way to format COUNTIF so it can identify cells that contain the text in the reference cell, instead of just cells that match perfectly? Similar to what I was doing with the "*buffers*"
?
Follow-up: I also have a lot of sheets. What would be even better yet, if I were able to search multiple sheets in the same COUNTIF, as opposed to adding separate COUNTIFs, and count cells that only partially match the reference cell.
=COUNTIF({Sheet1!E:E,Sheet2!E:E,Sheet3!E:E},A3)
Any ideas?