IF with Search/Find???

  • Thread starter TotallyConfused
  • Start date
T

TotallyConfused

I have tried several ways to identify a rows in a column with the first three
characters are the same "BSB". The data reads in the column like:
ColA
row 5 - BSB12345
row 6 - John Doe
row 7 - date
row 8 - blank
row 9 - blank
row 10 - BSB78945
row 11 - Jane Doe
row 12 - date
row 13 - blank
row 14 - blank
so forth - I need to identify only the rows that start with BSB with a
"Yes", "No" . I have tried:
=SEARCH("BSB*", A5,1) (this does not fill the other rows).
=IF(ISTEXT(SEARCH("BSB*",A5)),1,0) (this did not work)
=IF(ISTEXT(A5)="BSB*",1,0) (this did not work either)

Thank you for any help you can provide.
 
T

TotallyConfused

This worked!! Thank you so much. Can you please explain? I don't
understand the "--". First time I see this used. Thank you.
 
T

TotallyConfused

I pressed the "Yes" button. Is there any other uses for "--"? Are there
any other situations where I could use? Thank you very much.
 
R

RagDyeR

You could also use it to change text numeric values to real numbers.

With say, a 4 digit numerical list in Column A,
and you're trying to find the 1st number in a datalist:

=Vlookup(--Left(A1),C1:E100,3,0)
--

HTH,

RD
=====================================================
Please keep all correspondence within the Group, so all may benefit!
=====================================================

message
I pressed the "Yes" button. Is there any other uses for "--"? Are there
any other situations where I could use? Thank you very much.
 

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