#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Bob is offline
external usenet poster
 
Posts: 972
Default IF OR

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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default IF OR

=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" wrote in message
...
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




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:09 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"