Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default search text string within array

Hello,

I am trying to look for partial text within a cell. What I am trying to do
is to find a cell that contains specific text from a cell. I am working from
2 different sheets in the same workbook.
Sheet 1, row A contains the container number I am looking for. Sheet 2 row A
also contains the container numbers, although some of these have 2 container
numbers in the same cell. Sheet 2, row C contains ETA which is what I would
like to return.
As some of the cells contain 2 container numbers, I cannot use a vlookup
find either of them. To put it simply, I want to use a lookup from partial
text and return a value on a corresponding row.

Any help is greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default search text string within array

Sheet 1, row A contains the container number I am looking for

Post several representative samples of these.

Sheet 2 row A also contains the container numbers,
although some of these have 2 container numbers
in the same cell.


Post several representative samples of these, also.

--
Biff
Microsoft Excel MVP


"Geeban" wrote in message
...
Hello,

I am trying to look for partial text within a cell. What I am trying to do
is to find a cell that contains specific text from a cell. I am working
from
2 different sheets in the same workbook.
Sheet 1, row A contains the container number I am looking for. Sheet 2 row
A
also contains the container numbers, although some of these have 2
container
numbers in the same cell. Sheet 2, row C contains ETA which is what I
would
like to return.
As some of the cells contain 2 container numbers, I cannot use a vlookup
find either of them. To put it simply, I want to use a lookup from partial
text and return a value on a corresponding row.

Any help is greatly appreciated.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default search text string within array

Hi,

A B C
D
Container ETA Container
ETA
MSKU APLU
01/11
APLU MSKU CMAU
01/12
CMAU ECMU
01/01
ECMU

To make this a bit less confusing, I will use the above layout on only 1
sheet. Essentially I would like to do a vlookup in column B:

=vlookup($A2,D:E,2,false)
This would return:
B2 = #N/A
B3 = 01/11
B4 = #N/A
B5 = 01/01

This returns an error for MSKU and CMAU as their cell value is not identical
to C3.
How can I lookup a text string in a cell, even if it is not exact but does
contain the text. I would like B2 and B4 to return 01/12.

Any help is greatly appreciated.


"T. Valko" wrote:

Sheet 1, row A contains the container number I am looking for


Post several representative samples of these.

Sheet 2 row A also contains the container numbers,
although some of these have 2 container numbers
in the same cell.


Post several representative samples of these, also.

--
Biff
Microsoft Excel MVP


"Geeban" wrote in message
...
Hello,

I am trying to look for partial text within a cell. What I am trying to do
is to find a cell that contains specific text from a cell. I am working
from
2 different sheets in the same workbook.
Sheet 1, row A contains the container number I am looking for. Sheet 2 row
A
also contains the container numbers, although some of these have 2
container
numbers in the same cell. Sheet 2, row C contains ETA which is what I
would
like to return.
As some of the cells contain 2 container numbers, I cannot use a vlookup
find either of them. To put it simply, I want to use a lookup from partial
text and return a value on a corresponding row.

Any help is greatly appreciated.




  #4   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default search text string within array

=vlookup($A2,D:E,2,false)

Try in B2, copied down: =VLOOKUP("*"&$A2&"*",D:E,2,0)
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:18,000 Files:359 Subscribers:56
xdemechanik
---
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default search text string within array

YES!!!!This works. So simple but thanks a lot for your help.

"Max" wrote:

=vlookup($A2,D:E,2,false)


Try in B2, copied down: =VLOOKUP("*"&$A2&"*",D:E,2,0)
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:18,000 Files:359 Subscribers:56
xdemechanik
---



  #6   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default search text string within array

Welcome. Do take a moment to rate responses which help by pressing the "Yes"
button (like the ones below), from where you're reading this.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:18,000 Files:359 Subscribers:56
xdemechanik
---
"Geeban" wrote:
YES!!!!This works. So simple but thanks a lot for your help.


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
How do a search for a text string using a formula BobbyG Excel Discussion (Misc queries) 1 March 20th 08 02:24 PM
Search text string for ssn and copy to new column mary Excel Discussion (Misc queries) 8 December 28th 07 03:13 AM
Text search within a string using formula esbee Excel Worksheet Functions 6 September 27th 07 06:11 PM
Search, find or lookup defined text in text string zzxxcc Excel Worksheet Functions 9 September 6th 07 09:37 PM
Newbie: How to search a text string from right Frank Krogh Excel Worksheet Functions 5 November 26th 04 07:16 PM


All times are GMT +1. The time now is 10:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"