Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VB Find String located after "/"



Hi All,

I need to create a macro (to sit within another macro) which looks at a
string of text and copies the 8 characters after it. For example

line:
customer name invoice 1254254875
$12,053.33

String to look for (may be on various lines)
invoice

string to copy
1254254875

Thank you.


--
Sami82
------------------------------------------------------------------------
Sami82's Profile: http://www.excelforum.com/member.php...o&userid=27111
View this thread: http://www.excelforum.com/showthread...hreadid=482117

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,560
Default VB Find String located after "/"

In A1 I have abc/123 and in B1 the formula I used was
=MID(A1,FIND("/",A1,1)+1,LEN(A1)-FIND("/",A1,1))
Hope this helps.
--
David


"Sami82" wrote:



Hi All,

I need to create a macro (to sit within another macro) which looks at a
string of text and copies the 8 characters after it. For example

line:
customer name invoice 1254254875
$12,053.33

String to look for (may be on various lines)
invoice

string to copy
1254254875

Thank you.


--
Sami82
------------------------------------------------------------------------
Sami82's Profile: http://www.excelforum.com/member.php...o&userid=27111
View this thread: http://www.excelforum.com/showthread...hreadid=482117


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VB Find String located after "/"


Hi David,
I have done something similar, the only problem is that the macro puts
in the cell that the formula needs to sit in and the macro has problems
with the formula because of the " marks.

Any suggestions?


--
Sami82
------------------------------------------------------------------------
Sami82's Profile: http://www.excelforum.com/member.php...o&userid=27111
View this thread: http://www.excelforum.com/showthread...hreadid=482117

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
need a formula to find "*" in s string and multiply by preceding andfollowing values Tonso Excel Discussion (Misc queries) 4 April 20th 10 06:01 AM
Converting "uppercase" string data to "lower case" in CSV file [email protected] Excel Discussion (Misc queries) 2 August 12th 08 08:36 PM
text string: "91E10" in csv file auto converts to: "9.10E+11" [email protected] Excel Discussion (Misc queries) 2 August 12th 08 03:13 PM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
small "sum" function usually located @ LR screen is gone Stormy Excel Discussion (Misc queries) 2 March 28th 06 02:37 PM


All times are GMT +1. The time now is 02:37 PM.

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"