Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / January 2008

Tip: Looking for answers? Try searching our database.

Mining Numbers from text string.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
steve - 12 Jan 2008 08:32 GMT
I have spent some time looking threw existing posts and I can't seem
to find an exact answer to my problem.

If you can help....much thanks in advance.

It boils down to this....I want to do a vlookup for a text string,
instead of a "perfect match".

In other words I'd like to search for A1 (a number/text string) in
Column B:B, and provide data the data contained in columns B, C, and
D.

Thanks again,

Steve
Roger Govier - 12 Jan 2008 11:09 GMT
Hi Steve

In a spare column you could use
=ISNUMBER(SEARCH($A$1,B2))
and copy down

Data>Filter>Autofilter>use dropdown on new column to select TRUE
Signature


Regards
Roger Govier

> I have spent some time looking threw existing posts and I can't seem
> to find an exact answer to my problem.
[quoted text clipped - 11 lines]
>
> Steve
steve - 12 Jan 2008 14:59 GMT
Thanks Roger...you've got me much closer but this isn't quite what I
need. I am getting both incorrect trues and falses.

I have approximately 2000 serial numbers, some of which have alpha
characters. I need to know if any of these SN's are in approx 11k
lines of data that will have various texts strings.

For example. Let's say I have a column of 2000 SN's, the first one is
101M. I need to know if it is somewhere in a column of 11,000 cells/
rows and it could be in a cell such as delkcpm101m or pu kcpm 101m.
RagDyeR - 12 Jan 2008 16:24 GMT
Will there be a *single* match, or the possibility of *numerous* matches?
Signature


Regards,

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

Thanks Roger...you've got me much closer but this isn't quite what I
need. I am getting both incorrect trues and falses.

I have approximately 2000 serial numbers, some of which have alpha
characters. I need to know if any of these SN's are in approx 11k
lines of data that will have various texts strings.

For example. Let's say I have a column of 2000 SN's, the first one is
101M. I need to know if it is somewhere in a column of 11,000 cells/
rows and it could be in a cell such as delkcpm101m or pu kcpm 101m.
steve - 12 Jan 2008 16:42 GMT
Hello RD thanks for "jumping in",

There will possibly be multiple matches (duplicate serial numbers) but
not many and I would gladly look these up manually. I could make them
unique but that too is a long manual process.

I'm getting frustrated...a thought just "hit me", could I do a macro/
routine that would automate the Edit/Find function?

Many thanks,

Steve

> Will there be a *single* match, or the possibility of *numerous* matches?
> --
[quoted text clipped - 5 lines]
> Please keep all correspondence within the Group, so all may benefit !
> ---------------------------------------------------------------------------­--------------------
RagDyeR - 12 Jan 2008 18:53 GMT
Let me rephrase my question:

You say that once you find the serial number that contains a particular
string, you will want the data returned from Columns B, C, and D of that
row.

My question is, whether or not there are exact duplicate serial numbers
containing that particular string, or ... other, different serial numbers
with that string included, will the data in the adjoining Columns B, C, and
D be *different* for each of these occurrences (matches), where you will
want numerous different rows of data returned?

In other words, Vlookup() will return *only* the first occurrence of a
match.
This will give you *one* set of returns from the referenced columns in the
"found" row,

If the duplicate serial numbers in that first column have the identical data
in those referenced columns (B, C, D), then you *don't* need multiple
returns.

Follow?

Say you're looking for a serial number containing the string:
101M
Which you enter in say, G1.

Say you datalist is in A2 to D2000, with the serial numbers listed down
Column A.

This will find the *first* occurrence of a s/n containing that string match,
and return the data from the 2nd column (B):

=VLOOKUP("*"&G1&"*",A2:D2000,2,0)

You could revise this so that you could copy it across columns, along a row,
to return the data in the 3rd and 4th columns (C and D) of the datalist:

=VLOOKUP("*"&$G$1&"*",$A$2:$D$2000,COLUMNS($A:B),0)

*BUT* ... this will give you only *one set* of data.

Is this good enough?
Signature


Regards,

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

Hello RD thanks for "jumping in",

There will possibly be multiple matches (duplicate serial numbers) but
not many and I would gladly look these up manually. I could make them
unique but that too is a long manual process.

I'm getting frustrated...a thought just "hit me", could I do a macro/
routine that would automate the Edit/Find function?

Many thanks,

Steve

On Jan 12, 11:24 am, "RagDyeR" <ragd...@cutoutmsn.com> wrote:
> Will there be a *single* match, or the possibility of *numerous* matches?
> --
[quoted text clipped - 5 lines]
> Please keep all correspondence within the Group, so all may benefit !
> ---------------------------------------------------------------------------­--------------------
steve - 13 Jan 2008 00:01 GMT
RD,

In regards to your comments early in your latest reply...I did want
more initially but began scaling back my "needs vs wants" when it
didn't seem likely....however....

Looks like you may have the answer for me. I didn't know you could
"make" vlookup search for text strings...excellent!!

I will check it out. I am not used to using the --- ("*"&G1&"*", --

Sincere thanks for your assistance.

Steve

> Let me rephrase my question:
>
[quoted text clipped - 47 lines]
> Please keep all correspondence within the Group, so all may benefit !
> ---------------------------------------------------------------------------­--------------------
RagDyeR - 13 Jan 2008 00:23 GMT
You're welcome ... and post back if your "needs" and/or "wants" exceed the
capabilities of that Vlookup formula.
Signature


Regards,

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

RD,

In regards to your comments early in your latest reply...I did want
more initially but began scaling back my "needs vs wants" when it
didn't seem likely....however....

Looks like you may have the answer for me. I didn't know you could
"make" vlookup search for text strings...excellent!!

I will check it out. I am not used to using the --- ("*"&G1&"*", --

Sincere thanks for your assistance.

Steve

On Jan 12, 1:53 pm, "RagDyeR" <ragd...@cutoutmsn.com> wrote:
> Let me rephrase my question:
>
[quoted text clipped - 51 lines]
> Please keep all correspondence within the Group, so all may benefit !
> ---------------------------------------------------------------------------­--------------------
steve - 13 Jan 2008 01:27 GMT
RD,

That was the solution to my problem!

Sincerely appreciate you and all the others who volunteer to assist
others on this and other groups.

Steve
Ragdyer - 13 Jan 2008 04:15 GMT
Glad it worked out for you - appreciate the feed-back.
Signature

Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

> RD,
>
[quoted text clipped - 4 lines]
>
> Steve
Gary''s Student - 12 Jan 2008 11:13 GMT
Consider using AutoFilter rather than =VLOOKUP()

This way you can pick Custom and criteria like "contains", "begins with",
"ends with", etc.

Only the rows matching your criteria will be displayed.
Signature

Gary''s Student - gsnu2007c

> I have spent some time looking threw existing posts and I can't seem
> to find an exact answer to my problem.
[quoted text clipped - 11 lines]
>
> Steve
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.