Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
OCONUS
 
Posts: n/a
Default Trying to match a text string to a data table, any suggestions?

Trying to match the first six characters of a text string to text characters
in a data table. I'm trying to use the VLOOKUP Function, but I keep getting
the contents of the second to last cell in my designated column. I'm having
a problem both with truncating the text string, and also using text to search
for things. Anyway to convert similar text characters to unique numbers?
Looking for any suggestions
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default Trying to match a text string to a data table, any suggestions?

Are you using FALSE or 0 as lookup type? If not, that can explain it,
otherwise post the formulas and a little bit more info on what you are
trying to do


--

Regards,

Peo Sjoblom

"OCONUS" wrote in message
...
Trying to match the first six characters of a text string to text

characters
in a data table. I'm trying to use the VLOOKUP Function, but I keep

getting
the contents of the second to last cell in my designated column. I'm

having
a problem both with truncating the text string, and also using text to

search
for things. Anyway to convert similar text characters to unique numbers?
Looking for any suggestions



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
OCONUS
 
Posts: n/a
Default Trying to match a text string to a data table, any suggestions

I'm using TRUE because I don't have exact matches. I'm trying to figure out
how I could get exact matches but I would need to eliminate part of the
origional text string. For example, I'm trying to match zzz-abcdefg to the
data source which has only zzz-abcd. Here is an example of a formula I'm
trying:
=VLOOKUP(P5,[DATA.xls]Sheet1!$1:$65536,6,TRUE)

I'm also considering the OR(EXACT function as a possibility, but I'm not
sure if I can find the corresponding data for the cell in the array that
makes the function return TRUE.

thanks for your help

"Peo Sjoblom" wrote:

Are you using FALSE or 0 as lookup type? If not, that can explain it,
otherwise post the formulas and a little bit more info on what you are
trying to do


--

Regards,

Peo Sjoblom

"OCONUS" wrote in message
...
Trying to match the first six characters of a text string to text

characters
in a data table. I'm trying to use the VLOOKUP Function, but I keep

getting
the contents of the second to last cell in my designated column. I'm

having
a problem both with truncating the text string, and also using text to

search
for things. Anyway to convert similar text characters to unique numbers?
Looking for any suggestions




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default Trying to match a text string to a data table, any suggestions

Is the value always the first 8 characters? If So

=VLOOKUP(LEFT(P5,8),[DATA.xls]Sheet1!$A$1:$F$1000,6,0)

if the zzz-abcdefg is in the table instead of P5 and the beginning is
always the same you can use a wildcard

=VLOOKUP(P5&"*",[DATA.xls]Sheet1!$A$1:$F$1000,6,0)

I noted that you use the whole workbook 1:65536, I strongly recommend using
something more precise if possible like in my example


"OCONUS" wrote in message
...
I'm using TRUE because I don't have exact matches. I'm trying to figure

out
how I could get exact matches but I would need to eliminate part of the
origional text string. For example, I'm trying to match zzz-abcdefg to

the
data source which has only zzz-abcd. Here is an example of a formula I'm
trying:
=VLOOKUP(P5,[DATA.xls]Sheet1!$1:$65536,6,TRUE)

I'm also considering the OR(EXACT function as a possibility, but I'm not
sure if I can find the corresponding data for the cell in the array that
makes the function return TRUE.

thanks for your help

"Peo Sjoblom" wrote:

Are you using FALSE or 0 as lookup type? If not, that can explain it,
otherwise post the formulas and a little bit more info on what you are
trying to do


--

Regards,

Peo Sjoblom

"OCONUS" wrote in message
...
Trying to match the first six characters of a text string to text

characters
in a data table. I'm trying to use the VLOOKUP Function, but I keep

getting
the contents of the second to last cell in my designated column. I'm

having
a problem both with truncating the text string, and also using text to

search
for things. Anyway to convert similar text characters to unique

numbers?
Looking for any suggestions






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
Pivot table - Text in Data field pum75 Excel Discussion (Misc queries) 2 November 17th 05 03:44 PM
how do i show text in the data field of a pivot table? pum75 Excel Discussion (Misc queries) 1 November 16th 05 09:05 PM
Sort pages? David Excel Discussion (Misc queries) 15 May 13th 05 11:33 PM
Pulling data from 1 sheet to another Dave1155 Excel Worksheet Functions 1 January 12th 05 05:55 PM
Data Table - does it work with DDE links and Stock Tickers? Post Tenebras Lux Excel Worksheet Functions 0 December 1st 04 05:17 PM


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