#1   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

=IF(SUM(COUNTIF(A1:E1,{"SS","LS"})) 0, 1, 0)

or more compactly:

=--(SUM(COUNTIF(A1:E1,{"SS","LS"})) 0)


In article ,
"Natalie" wrote:

Sorry, I still can't make it work -

I want to add all the SS and LS together, and if they are more than one,
have a 1 appear, and if the answer is 0 then a 0 appear?

Thanks for all your help

"JE McGimpsey" wrote:

One way:

=COUNTIF(A1:E1,"SS")

In article ,
"Natalie" wrote:

What if I wanted to count the number of SS or LS in these cells?


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:17 PM.

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

About Us

"It's about Microsoft Excel"