A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

IF with Search/Find???



 
 
Thread Tools Display Modes
  #1  
Old August 1st, 2008, 02:29 AM posted to microsoft.public.excel.worksheet.functions
totallyconfused
external usenet poster
 
Posts: 304
Default IF with Search/Find???

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.
  #2  
Old August 1st, 2008, 03:10 AM posted to microsoft.public.excel.worksheet.functions
Max
external usenet poster
 
Posts: 8,574
Default IF with Search/Find???

Try in say, B5: = --(LEFT(A5,3)="BSB")
Copy down
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:16,400 Files:356 Subscribers:53
xdemechanik
---
"TotallyConfused" wrote:
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.

  #3  
Old August 1st, 2008, 03:28 AM posted to microsoft.public.excel.worksheet.functions
totallyconfused
external usenet poster
 
Posts: 304
Default IF with Search/Find???

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

"Max" wrote:

Try in say, B5: = --(LEFT(A5,3)="BSB")
Copy down
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:16,400 Files:356 Subscribers:53
xdemechanik
---
"TotallyConfused" wrote:
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.

  #4  
Old August 1st, 2008, 04:42 AM posted to microsoft.public.excel.worksheet.functions
Max
external usenet poster
 
Posts: 8,574
Default IF with Search/Find???

Welcome, but pl take a moment to press the "Yes" button below

The "--" will coerce the TRUE/FALSE returns from the check:
LEFT(A5,3)="BSB"
to 1's/0's
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:16,400 Files:356 Subscribers:53
xdemechanik
---
"TotallyConfused" wrote:
This worked!! Thank you so much. Can you please explain? I don't
understand the "--". First time I see this used. Thank you.


  #5  
Old August 1st, 2008, 06:14 AM posted to microsoft.public.excel.worksheet.functions
totallyconfused
external usenet poster
 
Posts: 304
Default IF with Search/Find???


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


"Max" wrote:

Welcome, but pl take a moment to press the "Yes" button below

The "--" will coerce the TRUE/FALSE returns from the check:
LEFT(A5,3)="BSB"
to 1's/0's
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:16,400 Files:356 Subscribers:53
xdemechanik
---
"TotallyConfused" wrote:
This worked!! Thank you so much. Can you please explain? I don't
understand the "--". First time I see this used. Thank you.


  #6  
Old August 1st, 2008, 10:05 AM posted to microsoft.public.excel.worksheet.functions
Max
external usenet poster
 
Posts: 8,574
Default IF with Search/Find???

That's the main use of it.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:16,400 Files:356 Subscribers:53
xdemechanik
---
"TotallyConfused" wrote:
I pressed the "Yes" button. Is there any other uses for "--"? Are there
any other situations where I could use? Thank you very much.

  #7  
Old August 1st, 2008, 04:33 PM posted to microsoft.public.excel.worksheet.functions
RagDyeR
external usenet poster
 
Posts: 3,482
Default IF with Search/Find???

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!
================================================== ===

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


"Max" wrote:

Welcome, but pl take a moment to press the "Yes" button below

The "--" will coerce the TRUE/FALSE returns from the check:
LEFT(A5,3)="BSB"
to 1's/0's
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:16,400 Files:356 Subscribers:53
xdemechanik
---
"TotallyConfused" wrote:
This worked!! Thank you so much. Can you please explain? I don't
understand the "--". First time I see this used. Thank you.




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:26 PM.


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