#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 149
Default vlookup.

given the data below :

a23 paper 5
b14 lamp 15
a23 paper 2
a23 paper 7

i am using the vlookup and i am having a problem.
i am searching for "paper" ....but each time i am typing for a23 i get
"paper" , so how to do in order to differenciate between the words "papers"
in other words .. if i would like to combine a formula whom let me type
a23 in order to search for "paper" and who has number 5 .....how to do
it????
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default vlookup.

You could try something like this, array-entered (press CTRL+SHIFT+ENTER to
confirm the formula):
=INDEX(C1:C4,MATCH(1,(A1:A4="a23")*(B1:B4="paper") ,0))
Adapt the ranges to suit
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"pierre" wrote:
given the data below :

a23 paper 5
b14 lamp 15
a23 paper 2
a23 paper 7

i am using the vlookup and i am having a problem.
i am searching for "paper" ....but each time i am typing for a23 i get
"paper" , so how to do in order to differenciate between the words "papers"
in other words .. if i would like to combine a formula whom let me type
a23 in order to search for "paper" and who has number 5 .....how to do
it????

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 37
Default vlookup.

If you want to stay with the vlookup function, the first column needs to be
in ascending order and there can't be any values that repeat in that column.

"Max" wrote:

You could try something like this, array-entered (press CTRL+SHIFT+ENTER to
confirm the formula):
=INDEX(C1:C4,MATCH(1,(A1:A4="a23")*(B1:B4="paper") ,0))
Adapt the ranges to suit
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"pierre" wrote:
given the data below :

a23 paper 5
b14 lamp 15
a23 paper 2
a23 paper 7

i am using the vlookup and i am having a problem.
i am searching for "paper" ....but each time i am typing for a23 i get
"paper" , so how to do in order to differenciate between the words "papers"
in other words .. if i would like to combine a formula whom let me type
a23 in order to search for "paper" and who has number 5 .....how to do
it????

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default vlookup.

The first column doesn't need to be sorted for =vlookup() to work. Since it's
going to be an exact match (based on text), the fourth parm should be set to
False (look for an exact match).

And there can be repeats in that first column, but =vlookup() will return the
values from the first match.


Brad Vogt wrote:

If you want to stay with the vlookup function, the first column needs to be
in ascending order and there can't be any values that repeat in that column.

"Max" wrote:

You could try something like this, array-entered (press CTRL+SHIFT+ENTER to
confirm the formula):
=INDEX(C1:C4,MATCH(1,(A1:A4="a23")*(B1:B4="paper") ,0))
Adapt the ranges to suit
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"pierre" wrote:
given the data below :

a23 paper 5
b14 lamp 15
a23 paper 2
a23 paper 7

i am using the vlookup and i am having a problem.
i am searching for "paper" ....but each time i am typing for a23 i get
"paper" , so how to do in order to differenciate between the words "papers"
in other words .. if i would like to combine a formula whom let me type
a23 in order to search for "paper" and who has number 5 .....how to do
it????


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 37
Default vlookup.

Put the following in cells A1:B5

How This
When Because
Does Not
What How
Where Why

If you vlookup "When" and return the 2nd column, you will get "How" as the
result, so the first column does need to be in ascending order even if it is
text. Now if you use the Match function and nest it into the vlookup, you
can make it work. Easier to just sort ascending by the first column if
possible though.


"Dave Peterson" wrote:

The first column doesn't need to be sorted for =vlookup() to work. Since it's
going to be an exact match (based on text), the fourth parm should be set to
False (look for an exact match).

And there can be repeats in that first column, but =vlookup() will return the
values from the first match.


Brad Vogt wrote:

If you want to stay with the vlookup function, the first column needs to be
in ascending order and there can't be any values that repeat in that column.

"Max" wrote:

You could try something like this, array-entered (press CTRL+SHIFT+ENTER to
confirm the formula):
=INDEX(C1:C4,MATCH(1,(A1:A4="a23")*(B1:B4="paper") ,0))
Adapt the ranges to suit
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"pierre" wrote:
given the data below :

a23 paper 5
b14 lamp 15
a23 paper 2
a23 paper 7

i am using the vlookup and i am having a problem.
i am searching for "paper" ....but each time i am typing for a23 i get
"paper" , so how to do in order to differenciate between the words "papers"
in other words .. if i would like to combine a formula whom let me type
a23 in order to search for "paper" and who has number 5 .....how to do
it????


--

Dave Peterson



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default vlookup.

=vlookup("when",a1:b5,2,false)
returns "This" for me.


Brad Vogt wrote:

Put the following in cells A1:B5

How This
When Because
Does Not
What How
Where Why

If you vlookup "When" and return the 2nd column, you will get "How" as the
result, so the first column does need to be in ascending order even if it is
text. Now if you use the Match function and nest it into the vlookup, you
can make it work. Easier to just sort ascending by the first column if
possible though.

"Dave Peterson" wrote:

The first column doesn't need to be sorted for =vlookup() to work. Since it's
going to be an exact match (based on text), the fourth parm should be set to
False (look for an exact match).

And there can be repeats in that first column, but =vlookup() will return the
values from the first match.


Brad Vogt wrote:

If you want to stay with the vlookup function, the first column needs to be
in ascending order and there can't be any values that repeat in that column.

"Max" wrote:

You could try something like this, array-entered (press CTRL+SHIFT+ENTER to
confirm the formula):
=INDEX(C1:C4,MATCH(1,(A1:A4="a23")*(B1:B4="paper") ,0))
Adapt the ranges to suit
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"pierre" wrote:
given the data below :

a23 paper 5
b14 lamp 15
a23 paper 2
a23 paper 7

i am using the vlookup and i am having a problem.
i am searching for "paper" ....but each time i am typing for a23 i get
"paper" , so how to do in order to differenciate between the words "papers"
in other words .. if i would like to combine a formula whom let me type
a23 in order to search for "paper" and who has number 5 .....how to do
it????


--

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 in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM
IF(AND(val1=VLOOKUP( );val2>=VLOOKUP( );val2<=VLOOKUP( );VLOOKUP( Oso Excel Worksheet Functions 2 January 26th 05 06:56 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:42 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"