Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Conditional Vlookup - Cherry picking information from the table ar

I have managed to figure out how to use the Vlookup command to find
information in a column and to return information using the following
formula:

In this example, I find two like values and return some data or a message -
=IF(ISNA(VLOOKUP(E2,$B$2:$E$1957,3,FALSE))=TRUE, "Product Number is not
found", VLOOKUP(E2,$B$2:$E$1957,3,FALSE))

However, I need to understand how to find T1234 in list that contains
T1234_TEST, I want the lookup command to match the "T1234" portion of the
project name. Is there some way to key on the first 5 characters and
consider this a match? In the earlier example, it was easy to find the value
with the exact name - this is a bit more tricky..

Please help

FACTS:
Lookup Value = T1234
Table Array = T1234_Test
The problem is the N/A is return and I need it to be smart enough to say,
yes we've matched the first 5 characters in T1234_Test.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Conditional Vlookup - Cherry picking information from the table ar

=vlookup(e2&"*",$b$2:$e$1957,3,false)

or maybe

=vlookup(left(e2,5)&"*",$b$2:$e$1957,3,false)





Wannabe Efficient wrote:

I have managed to figure out how to use the Vlookup command to find
information in a column and to return information using the following
formula:

In this example, I find two like values and return some data or a message -
=IF(ISNA(VLOOKUP(E2,$B$2:$E$1957,3,FALSE))=TRUE, "Product Number is not
found", VLOOKUP(E2,$B$2:$E$1957,3,FALSE))

However, I need to understand how to find T1234 in list that contains
T1234_TEST, I want the lookup command to match the "T1234" portion of the
project name. Is there some way to key on the first 5 characters and
consider this a match? In the earlier example, it was easy to find the value
with the exact name - this is a bit more tricky..

Please help

FACTS:
Lookup Value = T1234
Table Array = T1234_Test
The problem is the N/A is return and I need it to be smart enough to say,
yes we've matched the first 5 characters in T1234_Test.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default Conditional Vlookup - Cherry picking information from the table ar

First of all, you *don't* need the " =TRUE " in your formula.

Next ... is the " T1234 " in E2... or do you intend to "hard code" it into
the formula itself?

If it's in cell E2, try this:

=IF(ISNA(VLOOKUP(E2&"*",$B$2:$E$1957,3,0)),"Produc t Number is not
found",VLOOKUP(E2&"*",$B$2:$E$1957,3,0))

If you're going to hard code it, try this:

=IF(ISNA(VLOOKUP("T1234*",$B$2:$E$1957,3,0)),"Prod uct Number is not
found",VLOOKUP(E2&"*",$B$2:$E$1957,3,0))
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Wannabe Efficient" <Wannabe wrote in
message ...
I have managed to figure out how to use the Vlookup command to find
information in a column and to return information using the following
formula:

In this example, I find two like values and return some data or a
message -
=IF(ISNA(VLOOKUP(E2,$B$2:$E$1957,3,FALSE))=TRUE, "Product Number is not
found", VLOOKUP(E2,$B$2:$E$1957,3,FALSE))

However, I need to understand how to find T1234 in list that contains
T1234_TEST, I want the lookup command to match the "T1234" portion of the
project name. Is there some way to key on the first 5 characters and
consider this a match? In the earlier example, it was easy to find the
value
with the exact name - this is a bit more tricky..

Please help

FACTS:
Lookup Value = T1234
Table Array = T1234_Test
The problem is the N/A is return and I need it to be smart enough to say,
yes we've matched the first 5 characters in T1234_Test.


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default Conditional Vlookup - Cherry picking information from the table ar

That second formula needs to be changed to this:

=IF(ISNA(VLOOKUP("T1234*",$B$2:$E$1957,3,0)),"Prod uct Number is not
found",VLOOKUP("T1234*",$B$2:$E$1957,3,0))

--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"RagDyer" wrote in message
...
First of all, you *don't* need the " =TRUE " in your formula.

Next ... is the " T1234 " in E2... or do you intend to "hard code" it into
the formula itself?

If it's in cell E2, try this:

=IF(ISNA(VLOOKUP(E2&"*",$B$2:$E$1957,3,0)),"Produc t Number is not
found",VLOOKUP(E2&"*",$B$2:$E$1957,3,0))

If you're going to hard code it, try this:

=IF(ISNA(VLOOKUP("T1234*",$B$2:$E$1957,3,0)),"Prod uct Number is not
found",VLOOKUP(E2&"*",$B$2:$E$1957,3,0))
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Wannabe Efficient" <Wannabe wrote in
message ...
I have managed to figure out how to use the Vlookup command to find
information in a column and to return information using the following
formula:

In this example, I find two like values and return some data or a
message -
=IF(ISNA(VLOOKUP(E2,$B$2:$E$1957,3,FALSE))=TRUE, "Product Number is not
found", VLOOKUP(E2,$B$2:$E$1957,3,FALSE))

However, I need to understand how to find T1234 in list that contains
T1234_TEST, I want the lookup command to match the "T1234" portion of the
project name. Is there some way to key on the first 5 characters and
consider this a match? In the earlier example, it was easy to find the
value
with the exact name - this is a bit more tricky..

Please help

FACTS:
Lookup Value = T1234
Table Array = T1234_Test
The problem is the N/A is return and I need it to be smart enough to say,
yes we've matched the first 5 characters in T1234_Test.



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Conditional Vlookup - Cherry picking information from the tabl

Change your "false" to true, or leave it blank. Then sort your look up table
by column 1.

anitadai

"Dave Peterson" wrote:

=vlookup(e2&"*",$b$2:$e$1957,3,false)

or maybe

=vlookup(left(e2,5)&"*",$b$2:$e$1957,3,false)





Wannabe Efficient wrote:

I have managed to figure out how to use the Vlookup command to find
information in a column and to return information using the following
formula:

In this example, I find two like values and return some data or a message -
=IF(ISNA(VLOOKUP(E2,$B$2:$E$1957,3,FALSE))=TRUE, "Product Number is not
found", VLOOKUP(E2,$B$2:$E$1957,3,FALSE))

However, I need to understand how to find T1234 in list that contains
T1234_TEST, I want the lookup command to match the "T1234" portion of the
project name. Is there some way to key on the first 5 characters and
consider this a match? In the earlier example, it was easy to find the value
with the exact name - this is a bit more tricky..

Please help

FACTS:
Lookup Value = T1234
Table Array = T1234_Test
The problem is the N/A is return and I need it to be smart enough to say,
yes we've matched the first 5 characters in T1234_Test.


--

Dave Peterson



  #6   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Conditional Vlookup - Cherry picking information from the table ar

Another fuzzy match play to try ..

Place in say, F2, then array-enter the formula by pressing CTRL+SHIFT+ENTER
(instead of just pressing ENTER):
=IF(LEN(E2)=0,"",IF(ISNA(MATCH(TRUE,ISNUMBER(SEARC H(TRIM(E2),TRIM($B$2:$B$1957))),0)),"Product
Number is not
found",INDEX($D$2:$D$1957,MATCH(TRUE,ISNUMBER(SEAR CH(TRIM(E2),TRIM($B$2:$B$1957))),0))))
Copy F2 down
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Wannabe Efficient" wrote:
I have managed to figure out how to use the Vlookup command to find
information in a column and to return information using the following
formula:

In this example, I find two like values and return some data or a message -
=IF(ISNA(VLOOKUP(E2,$B$2:$E$1957,3,FALSE))=TRUE, "Product Number is not
found", VLOOKUP(E2,$B$2:$E$1957,3,FALSE))

However, I need to understand how to find T1234 in list that contains
T1234_TEST, I want the lookup command to match the "T1234" portion of the
project name. Is there some way to key on the first 5 characters and
consider this a match? In the earlier example, it was easy to find the value
with the exact name - this is a bit more tricky..

Please help

FACTS:
Lookup Value = T1234
Table Array = T1234_Test
The problem is the N/A is return and I need it to be smart enough to say,
yes we've matched the first 5 characters in T1234_Test.

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Conditional Vlookup - Cherry picking information from the tabl

I think the wild card suggestion will work.

anitadai wrote:

Change your "false" to true, or leave it blank. Then sort your look up table
by column 1.

anitadai

"Dave Peterson" wrote:

=vlookup(e2&"*",$b$2:$e$1957,3,false)

or maybe

=vlookup(left(e2,5)&"*",$b$2:$e$1957,3,false)





Wannabe Efficient wrote:

I have managed to figure out how to use the Vlookup command to find
information in a column and to return information using the following
formula:

In this example, I find two like values and return some data or a message -
=IF(ISNA(VLOOKUP(E2,$B$2:$E$1957,3,FALSE))=TRUE, "Product Number is not
found", VLOOKUP(E2,$B$2:$E$1957,3,FALSE))

However, I need to understand how to find T1234 in list that contains
T1234_TEST, I want the lookup command to match the "T1234" portion of the
project name. Is there some way to key on the first 5 characters and
consider this a match? In the earlier example, it was easy to find the value
with the exact name - this is a bit more tricky..

Please help

FACTS:
Lookup Value = T1234
Table Array = T1234_Test
The problem is the N/A is return and I need it to be smart enough to say,
yes we've matched the first 5 characters in T1234_Test.


--

Dave Peterson


--

Dave Peterson
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
vlookup on pivot table results = #N/A Louis Excel Worksheet Functions 5 May 13th 23 07:43 PM
charting how many widgets over time [email protected] Charts and Charting in Excel 3 May 1st 06 08:05 PM
VLOOKUP & Conditional Formating Help. Excel'ed Failures Excel Discussion (Misc queries) 6 August 16th 05 04:46 PM
Table Array in VLOOKUP Relies on Data Validation willydlish Excel Worksheet Functions 2 February 16th 05 03:20 AM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


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