IF OR

B

bob

If the values in D4 through G4 = "1B" or "2B" or "3B" or "SS" or "P" or "C",
then count the number of instances of those values and place the result in J4.

example:
D4 through I4 = "CF", "1B", "SS", "P"
The formula should return a value of 3 because 1B, SS, and P each appears
once.

Thanks for your help.

Bob
 
B

Bob Phillips

=SUM(COUNTIF(D4:G4,{"1B","2B","3B","SS","P","C"}))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

bob said:
If the values in D4 through G4 = "1B" or "2B" or "3B" or "SS" or "P" or
"C",
then count the number of instances of those values and place the result in
J4.

example:
D4 through I4 = "CF", "1B", "SS", "P"
The formula should return a value of 3 because 1B, SS, and P each appears
once.

Thanks for your help.

Bob

__________ Information from ESET Smart Security, version of virus
signature database 3832 (20090206) __________

The message was checked by ESET Smart Security.

http://www.eset.com



__________ Information from ESET Smart Security, version of virus signature database 3832 (20090206) __________

The message was checked by ESET Smart Security.

http://www.eset.com
 

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