counting two different values

T

TLAngelo

I have a worksheet where I track who processed documents among other things.
Normally they enter their ititials on the worksheet and I can count how many
of each ititial is in that column. If two people work on one document, they
may enter their initials JD/PD or PD/JD for example. I want to count how
many times either JD/PD or PD/JD exists in the column.

Thanks,

Tania
 
P

Pete_UK

You could do it this way:

=COUNTIF(A:A,"PD/JD") + COUNTIF(A:A,"JD/PD")

Assumes your initials are in column A.

Hope this helps.

Pete
 
T

TLAngelo

Thank you Pete!

Tania

Pete_UK said:
You could do it this way:

=COUNTIF(A:A,"PD/JD") + COUNTIF(A:A,"JD/PD")

Assumes your initials are in column A.

Hope this helps.

Pete
 
T

TLAngelo

Thank you Don.

Tania

Don Guillett said:
try this idea.
=SUMPRODUCT(--(A2:A22={"a","b"}))

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(e-mail address removed)
 

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