Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
ramsdesk
 
Posts: n/a
Default Problem with LOOKUP & VLOOKUP


I have data like this...

A B C D
Name Plan1 Plan2 Plan3
Tom 101 201 301
Alan 102 202 302
Mike 103 203 303
Brad 104 204 304
John 105 205 305

I need to get the correct value from D1 or D2 or D3 based on the name.
So I tried with both LOOKUP & VLOOKUP as below..

(i) =LOOKUP("Tom",$A2:$A6,$B2:$B6) -- So the result should be 101
(ii) =VLOOLUP("Tom",$A2:$D6,1) -- Which should also be same...

But in both cases, I get the value for "John". I tried to sort the Name
in ascending order but didnt work either...

Any clues...

TIA.


--
ramsdesk
------------------------------------------------------------------------
ramsdesk's Profile: http://www.excelforum.com/member.php...o&userid=15705
View this thread: http://www.excelforum.com/showthread...hreadid=314224

  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
try
=VLOOKUP("Tom",A1:C6,2,0)

"ramsdesk" wrote:


I have data like this...

A B C D
Name Plan1 Plan2 Plan3
Tom 101 201 301
Alan 102 202 302
Mike 103 203 303
Brad 104 204 304
John 105 205 305

I need to get the correct value from D1 or D2 or D3 based on the name.
So I tried with both LOOKUP & VLOOKUP as below..

(i) =LOOKUP("Tom",$A2:$A6,$B2:$B6) -- So the result should be 101
(ii) =VLOOLUP("Tom",$A2:$D6,1) -- Which should also be same...

But in both cases, I get the value for "John". I tried to sort the Name
in ascending order but didnt work either...

Any clues...

TIA.


--
ramsdesk
------------------------------------------------------------------------
ramsdesk's Profile: http://www.excelforum.com/member.php...o&userid=15705
View this thread: http://www.excelforum.com/showthread...hreadid=314224


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
lookup combine vlookup with hlookup Doug Excel Worksheet Functions 2 April 23rd 23 11:42 AM
how do i get mutiple values using vlookup in excel, lookup value . Abhijeet Excel Discussion (Misc queries) 4 May 19th 05 04:30 AM
HELP -- probably a LOOKUP problem Liz-In-USA Excel Discussion (Misc queries) 3 December 9th 04 12:18 AM
Problem with vlookup Jeff Excel Discussion (Misc queries) 2 November 26th 04 05:29 PM
double lookup, nest, or macro? Josef.angel Excel Worksheet Functions 1 October 29th 04 09:50 AM


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