Above is a snippet of data that I have (in Sheet1). My task is to count the number of times "C" is in, let's say from B to C, (the formula will be written in Sheet2 for this). I have the code for that and it works fine.
But what can I do to get the count based on a particular UserID entered in cell A1 of Sheet2.
For ex: if 'Sheet2'!A1=3 then the count in row 3 of form B to C should be given:
(Result = Countif('Sheet1'!"B2:B4","C"))
Hope my explanation was understandable. I need a formula for this not macro.
I tried to get the row ID using Index Match but I am not able to combine it with CountIf.
Both VLOOKUP and INDEX MATCH can be used only if I want one cell value, but not multiple values in same row.
Result = Countif('Sheet1'!"B2:B4","C")

