Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Mostafa
 
Posts: n/a
Default Vlookup for 2 items

Hi
I know the Vlookup formula
=VLOOKUP(A2,B5:C10,2,FALSE)
Can we change the lookup value ( A2 )
To two cells
Thanks

  #2   Report Post  
Anne Troy
 
Posts: n/a
Default

I have done this a few times. In my lookup table, I create a 3rd column,
where I put =A1&B1. This strings 2 values together.
Then you can do a vlookup for A2&B2.
*******************
~Anne Troy

www.OfficeArticles.com


"Mostafa" wrote in message
...
Hi
I know the Vlookup formula
=VLOOKUP(A2,B5:C10,2,FALSE)
Can we change the lookup value ( A2 )
To two cells
Thanks



  #3   Report Post  
CLR
 
Posts: n/a
Default

This will look up the sum of A2 and B2 in your existing table
=VLOOKUP(A2+B2,B5:C10,2,FALSE)

A new column must be added to the left side of your table with the
CONCATENATED values you wish to look up, then a CONCATENATED lookup would
be.........
=VLOOKUP(A2&B2,A5:C10,2,FALSE)

Vaya con Dios,
Chuck, CABGx3




"Mostafa" wrote in message
...
Hi
I know the Vlookup formula
=VLOOKUP(A2,B5:C10,2,FALSE)
Can we change the lookup value ( A2 )
To two cells
Thanks



  #4   Report Post  
Dave Peterson
 
Posts: n/a
Default

I like this syntax:

=index(othersheet!$c$1:$c$10,
match(1,(a2=othersheet!$a$1:$a$100)*(b2=othersheet !$b$1:$b$100),0))



Mostafa wrote:

Hi
I know the Vlookup formula
=VLOOKUP(A2,B5:C10,2,FALSE)
Can we change the lookup value ( A2 )
To two cells
Thanks


--

Dave Peterson
  #5   Report Post  
Alan Beban
 
Posts: n/a
Default

If you use values rather than cell references, something like the
following, array entered into a 2-cell row, will return the sought results:

=VLOOKUP({"ok1","ok2"},B5:C10,2,FALSE)

or =VLOOKUP({"ok1";"ok2"},B5:C10,2,FALSE) array entered into a 2-cell
column.

Alan Beban

Dave Peterson wrote:
I like this syntax:

=index(othersheet!$c$1:$c$10,
match(1,(a2=othersheet!$a$1:$a$100)*(b2=othersheet !$b$1:$b$100),0))



Mostafa wrote:

Hi
I know the Vlookup formula
=VLOOKUP(A2,B5:C10,2,FALSE)
Can we change the lookup value ( A2 )
To two cells
Thanks





  #6   Report Post  
mrwhiteboy
 
Posts: n/a
Default


May I ask what is the meaning of ok1 and ok2?

THanK


--
mrwhiteboy
------------------------------------------------------------------------
mrwhiteboy's Profile: http://www.excelforum.com/member.php...o&userid=25255
View this thread: http://www.excelforum.com/showthread...hreadid=387113

  #7   Report Post  
Alan Beban
 
Posts: n/a
Default

And you can, in fact, use cell references. Array enter into a 2-cell
column, e.g.:

=VLOOKUP((A2:A3),B5:C10,2,FALSE)

Alan Beban

Alan Beban wrote:
If you use values rather than cell references, something like the
following, array entered into a 2-cell row, will return the sought results:

=VLOOKUP({"ok1","ok2"},B5:C10,2,FALSE)

or =VLOOKUP({"ok1";"ok2"},B5:C10,2,FALSE) array entered into a 2-cell
column.

Alan Beban

Dave Peterson wrote:

I like this syntax:

=index(othersheet!$c$1:$c$10,
match(1,(a2=othersheet!$a$1:$a$100)*(b2=othersheet !$b$1:$b$100),0))



Mostafa wrote:

Hi
I know the Vlookup formula
=VLOOKUP(A2,B5:C10,2,FALSE)
Can we change the lookup value ( A2 )
To two cells
Thanks




  #8   Report Post  
Alan Beban
 
Posts: n/a
Default

mrwhiteboy wrote:
May I ask what is the meaning of ok1 and ok2?

THanK


They were just arbitrary values in the range B5:B10 to illustrate that
the formula works if one uses values rather than cell references; but
see my post of 4:49 this morning.

Alan Beban
  #9   Report Post  
jeanette.rimmer
 
Posts: n/a
Default

Hi, Anne

Ive set this up so that I can pick up the pay rate from a lookup table for a
combination of contract and paying agency. I now need to multiply the value
that this look up has given by the hrs that the person worked.

Can I do this with Vlookups? and a sum?


Confused


Jeanette

"Anne Troy" wrote in message
news:195ea$42d641ee$97c5108d$7123@allthenewsgroups .com...
I have done this a few times. In my lookup table, I create a 3rd column,
where I put =A1&B1. This strings 2 values together.
Then you can do a vlookup for A2&B2.
*******************
~Anne Troy

www.OfficeArticles.com


"Mostafa" wrote in message
...
Hi
I know the Vlookup formula
=VLOOKUP(A2,B5:C10,2,FALSE)
Can we change the lookup value ( A2 )
To two cells
Thanks





  #10   Report Post  
Anne Troy
 
Posts: n/a
Default

You should be able to, yes. Something like...

=vlookup(....)*a1
Where a1 contains the number of hours worked.
*******************
~Anne Troy

www.OfficeArticles.com


"jeanette.rimmer" wrote in message
...
Hi, Anne

Ive set this up so that I can pick up the pay rate from a lookup table for

a
combination of contract and paying agency. I now need to multiply the

value
that this look up has given by the hrs that the person worked.

Can I do this with Vlookups? and a sum?


Confused


Jeanette

"Anne Troy" wrote in message
news:195ea$42d641ee$97c5108d$7123@allthenewsgroups .com...
I have done this a few times. In my lookup table, I create a 3rd column,
where I put =A1&B1. This strings 2 values together.
Then you can do a vlookup for A2&B2.
*******************
~Anne Troy

www.OfficeArticles.com


"Mostafa" wrote in message
...
Hi
I know the Vlookup formula
=VLOOKUP(A2,B5:C10,2,FALSE)
Can we change the lookup value ( A2 )
To two cells
Thanks









  #11   Report Post  
jeanette.rimmer
 
Posts: n/a
Default

Thanks Anne

I didnt even think it would be that easy. You are a star


Jeanette


"Anne Troy" wrote in message
news:df60$42dc09e7$97c5108d$11924@allthenewsgroups .com...
You should be able to, yes. Something like...

=vlookup(....)*a1
Where a1 contains the number of hours worked.
*******************
~Anne Troy

www.OfficeArticles.com


"jeanette.rimmer" wrote in message
...
Hi, Anne

Ive set this up so that I can pick up the pay rate from a lookup table
for

a
combination of contract and paying agency. I now need to multiply the

value
that this look up has given by the hrs that the person worked.

Can I do this with Vlookups? and a sum?


Confused


Jeanette

"Anne Troy" wrote in message
news:195ea$42d641ee$97c5108d$7123@allthenewsgroups .com...
I have done this a few times. In my lookup table, I create a 3rd column,
where I put =A1&B1. This strings 2 values together.
Then you can do a vlookup for A2&B2.
*******************
~Anne Troy

www.OfficeArticles.com


"Mostafa" wrote in message
...
Hi
I know the Vlookup formula
=VLOOKUP(A2,B5:C10,2,FALSE)
Can we change the lookup value ( A2 )
To two cells
Thanks









  #12   Report Post  
Anne Troy
 
Posts: n/a
Default

Thanks, Jeanette. :)
*******************
~Anne Troy

www.OfficeArticles.com


"jeanette.rimmer" wrote in message
...
Thanks Anne

I didnt even think it would be that easy. You are a star


Jeanette


"Anne Troy" wrote in message
news:df60$42dc09e7$97c5108d$11924@allthenewsgroups .com...
You should be able to, yes. Something like...

=vlookup(....)*a1
Where a1 contains the number of hours worked.
*******************
~Anne Troy

www.OfficeArticles.com


"jeanette.rimmer" wrote in message
...
Hi, Anne

Ive set this up so that I can pick up the pay rate from a lookup table
for

a
combination of contract and paying agency. I now need to multiply the

value
that this look up has given by the hrs that the person worked.

Can I do this with Vlookups? and a sum?


Confused


Jeanette

"Anne Troy" wrote in message
news:195ea$42d641ee$97c5108d$7123@allthenewsgroups .com...
I have done this a few times. In my lookup table, I create a 3rd

column,
where I put =A1&B1. This strings 2 values together.
Then you can do a vlookup for A2&B2.
*******************
~Anne Troy

www.OfficeArticles.com


"Mostafa" wrote in message
...
Hi
I know the Vlookup formula
=VLOOKUP(A2,B5:C10,2,FALSE)
Can we change the lookup value ( A2 )
To two cells
Thanks











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 not returning results Chris Kellock Excel Worksheet Functions 14 March 19th 08 08:30 AM
Banging head against wall with VLOOKUP David Excel Discussion (Misc queries) 4 July 6th 05 01:49 AM
Which to use - if, vlookup, match, index, offset, vba? punsterr Excel Discussion (Misc queries) 3 June 7th 05 07:42 PM
Array Function with VLOOKUP CoRrRan Excel Worksheet Functions 15 April 8th 05 05:54 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM


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