Forum Discussion
pycharge
Apr 29, 2024Copper Contributor
Excel: Lookup '1' and return multiple values
This seems rather simple be cannot currently find a solve for this. I am currently in a spreadsheet, which has a column that is returning a binary value on the basis of random sampling. I need to l...
bb5931
Feb 19, 2025Copper Contributor
Hi MAngosto ,
I have a similar question to the OP about return multiple matching values but I'm trying to find a function that counts how many cells contain a matching value (rather than return each of their individual values). Specifically I would like a function to count how many cells in B1:B20 contain "James" where corresponding value in A1:A20 equals "Yes".
Please see attached screenshot to illustrate what I would like.
Thanks for your help!
bb5931
Feb 20, 2025Copper Contributor
Found out! Just a simple COUNTIFS(A:A,"Yes",B:B,"James") !!