Hi, I'm working on a few different projects, which all have one unusual thing in common: I'm trying to pass the text contents of a cell to a function/formula in a different cell. I included a truncated version of one of these projects as an attachment, which I'll refer to in this post.
Over to the right of this spreadsheet, I'm using COUNTIF to count the number of times a name occurs in the larger range. Right now, I just have everything hard-coded, e.g. Lucy in one cell, and then =COUNTIF($A$2:$F,"Lucy") in the cell beside it. But what I'd like to do is set up the formula such that it will automatically reference the string contents of the cell beside it. Something like =COUNTIF($A$2:$F, at H11), although that's obviously not the syntax that will properly pass the contents of cell H11 as a parameter to the COUNTIF function.
It is entirely possible that what I'm trying to do is, well, impossible, not something that can be done in Google Sheets. I just felt like it should be something that should be possible, and so I wanted to ask. I've tried to search for stuff like "pass cell value to function" or "use cell contents in formula" but I haven't had any luck so far.
Bookmarks