countif question

C

carl

I have a table:

BOB 1 2 3
JIM 1 2
SAM 1 1 1

I would like to create a Countif formula that will
produce the following table...

ALEX 0
BOB 3
CHUCK 0
JIM 2
SAM 3

Thank you in advance.
 
A

Aladin Akyurek

Let A2:D4 house the data sample you provided.

Assuming that you have ALEX in G2, BOB in G3, etc...

In H2 enter & copy down:

=IF(ISNUMBER(I2),COUNT(INDEX($B$2:$D$4,I2,0)),0)

In I2 enter & copy down:

=MATCH(G2,$A$2:$A$4,0)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top