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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

finding a value in a string



 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old July 13th, 2004, 07:10 PM
icestationzbra
external usenet poster
 
Posts: n/a
Default finding a value in a string

i am looking for some help in finding a particular value in a string.

i have strings that look like:

ABC_DEF123_IJK_V(1).xls

or

ABC_DEF123_IJK_V2.xls

or

ABC_DEF123_IJK_V3_A.xls

or

ABC_DEF123_IJK_V4_NA.xls

or

ABC_DEF123_IJK_V5.0.xls

or

ABC_DEF123_IJK_6_0.xls

or

ABC DEF123 IJK V7.xls

these are the filenames of various files that users would have created
and made an entry into this one master sheet along a column. i have as
many nomenclatures as i have users.

i need to extract the (1, 2, 3, 4, 5, 6, 7) from the strings. they
denote a certain value that is of importance to other calculations.

now, i have created upto 5 columns with RIGHT, MID, LEFT and WHAT HAVE
YOU and WHAT NOT to extricate the values from the strings. i have over
3000 rows from which to extract data. i have even combined upto 3 IF's
to get the desired output in some cases. only problem is, i have more
variety than the number of IFs allowed (7) incorporating ISNUMBER,
VALUE and ISTEXT functions. actually, after the 3rd IF, the formula has
more number of braces than characters!!! i am not able to create a
single formula that would take care of all the variety i have. over 5-6
columns, and even after that, a little bit of manual tweaking, allows
me to get the right value. however, it is quite cumbersome.

would anyone be able to give me one formula that could pick that number
for me from the string? there is one commonality in those strings. the
number that i require to be picked up resides within 5 places to the
left of the ".xls".

thanks in advance,

mac.


---
Message posted from http://www.ExcelForum.com/

 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question re MailMerge and VB.NET thecoiman Mailmerge 5 May 17th, 2004 04:13 PM
finding certain characters within a string within multiple cells Gav !! Worksheet Functions 1 April 15th, 2004 08:27 AM
Inserting a space into a text string Brian Anderson Worksheet Functions 1 April 6th, 2004 05:39 AM
Finding last name in a first last name string Brian Bonner Worksheet Functions 4 March 31st, 2004 09:41 PM
Finding a text string within a cell Peo Sjoblom Worksheet Functions 6 February 16th, 2004 09:52 PM


All times are GMT +1. The time now is 01:38 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.