Countif cell contents match within a range?
Hello Numbers Community- I've ditched MS Excel and it's fun (and a little awkward).
Goal: Create a function that counts the text content of a range within a certain cell, count it.
Example: A2 contains 'Orange'. I want to be able to create a function that will look in all of column B to count how many times 'Orange' appears.
In numbers, I can do this: COUNTIF(Data::AllData::B,"=Orange") but I have to type 'Orange' into the formula. I need to lookup over 100 strings. In excel, it was pretty easy, countif(A1=B:B)
What is the function to have numbers lookup the string in a cell and then count when found in a range?
Tried this without luck: COUNTIF(MATCH($A2,Data::AllData::B))
Thanks!!