Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / May 2008

Tip: Looking for answers? Try searching our database.

VLOOKUP using 2 Cells

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RoadKill - 09 May 2008 22:31 GMT
What I want is the lookup to use cells B2 and B3 when it looks up a value

Here is my formula now: =VLOOKUP($B$2&$B$3, 'Apr Sups'!$B$2:$J$13,6,0)

What am I doing wrong?
Mike H - 09 May 2008 22:40 GMT
your fromula works fine for me but bear in mind the concatenated B2&b3 will
be text so for example if B2=Cat and B3=Dog it will look for CatDog in column
B of the lookup range and return colum 6. If B2 & b3 are 2 & 1 it wont find
the number 21 in the lookup range because the 21 is text

Mike

Mike

> What I want is the lookup to use cells B2 and B3 when it looks up a value
>
> Here is my formula now: =VLOOKUP($B$2&$B$3, 'Apr Sups'!$B$2:$J$13,6,0)
>
> What am I doing wrong?
JE McGimpsey - 09 May 2008 22:45 GMT
Hard to tell what you're doing wrong - there's nothing *inherently*
wrong with your formula, so it must be your logic.

What result are you getting, and what do you expect?

What values do you have in B2 & B3, and does any cell in 'Apr
Sups'!B2:B13 contain the concatenation of the two?

> What I want is the lookup to use cells B2 and B3 when it looks up a value
>
> Here is my formula now: =VLOOKUP($B$2&$B$3, 'Apr Sups'!$B$2:$J$13,6,0)
>
> What am I doing wrong?
Max - 10 May 2008 02:42 GMT
> =VLOOKUP($B$2&$B$3, 'Apr Sups'!$B$2:$J$13,6,0)

Maybe one of these guesses:
=VLOOKUP(TRIM($B$2&$B$3), 'Apr Sups'!$B$2:$J$13,6,0)
=VLOOKUP(TRIM($B$2&" "&$B$3), 'Apr Sups'!$B$2:$J$13,6,0)
Signature

Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

Max - 11 May 2008 04:21 GMT
> =VLOOKUP($B$2&$B$3, 'Apr Sups'!$B$2:$J$13,6,0)

Presume it's ensured that the vlookup's match col B ie 'Apr Sups'!$B$2:$B$13
does contain the concatenated strings for correct matching? You might want to
check that. Also maybe try a TRIM to clean up the concat strings if you are
getting #N/As where apparently there should be matches.
Signature

Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.