Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Find a part of a string

Hallo

I would like to check a string e.g C:\Windows\Ger\Test.xls" of Ger is in
that string?

Excuses for the bad Englisch

Thanks

Peter


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default Find a part of a string

In VBA you can use InStr. In Excel you can use Find. Both functions return
the starting point of one string within the other . If the string is not
found then thye return 0.

HTH

"Peter Pantus" wrote:

Hallo

I would like to check a string e.g C:\Windows\Ger\Test.xls" of Ger is in
that string?

Excuses for the bad Englisch

Thanks

Peter



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Find a part of a string

Just to add:
reference using Find in a worksheet; Find is case sensitive. Search is
identical to Find, but is case insensitive.

--
Regards,
Tom Ogilvy


"Jim Thomlinson" wrote in message
...
In VBA you can use InStr. In Excel you can use Find. Both functions return
the starting point of one string within the other . If the string is not
found then thye return 0.

HTH

"Peter Pantus" wrote:

Hallo

I would like to check a string e.g C:\Windows\Ger\Test.xls" of Ger is in
that string?

Excuses for the bad Englisch

Thanks

Peter





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default Find a part of a string

Good Point... :)

"Tom Ogilvy" wrote:

Just to add:
reference using Find in a worksheet; Find is case sensitive. Search is
identical to Find, but is case insensitive.

--
Regards,
Tom Ogilvy


"Jim Thomlinson" wrote in message
...
In VBA you can use InStr. In Excel you can use Find. Both functions return
the starting point of one string within the other . If the string is not
found then thye return 0.

HTH

"Peter Pantus" wrote:

Hallo

I would like to check a string e.g C:\Windows\Ger\Test.xls" of Ger is in
that string?

Excuses for the bad Englisch

Thanks

Peter






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


Similar Threads
Thread Thread Starter Forum Replies Last Post
vlookup part of string... [email protected] Excel Discussion (Misc queries) 6 October 24th 08 01:30 AM
Search/Match/Find ANY part of string to ANY part of Cell Value TWhizTom Excel Worksheet Functions 0 July 21st 08 08:16 PM
How do I use VLOOKUP to find part of string? niatpac Excel Worksheet Functions 3 July 19th 07 07:43 PM
Find and replace part of a text string [email protected] Excel Discussion (Misc queries) 2 July 10th 06 10:34 PM
Extract Part of String [email protected] Excel Worksheet Functions 1 June 9th 05 08:33 AM


All times are GMT +1. The time now is 06:31 AM.

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"