• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Count number of times a specific number occurs in a string

Here is what I have in A1:
X1100000000

I want to look at the first 6 characters and if the number 1 appears more than once return Yes otherwise return No.
 
for first 6, maybe
=LEFT(A1;6)

for 2nd formula
=IF(LEN(A1)-LEN(SUBSTITUTE(A1,1,""))>1,"Yes","No")
 
Back
Top