Need to do vlookup and return differen values

Closed
Farzi - Sep 9, 2008 at 09:10 PM
mubashir aziz Posts 190 Registration date Sunday April 12, 2009 Status Member Last seen February 16, 2010 - Apr 28, 2009 at 03:42 AM
Hello,
Hi,
I need to enter a name. The macro should then find it in a table and return the name and two other numbers in the same row.
Imagine Names are in Col A and Tel numbers in Col B and Mobiles in Col C.
I want to enter the name and see the result of a the name and corresponding numbers in a dialog box. Can anybody help me?
Thanks.

3 responses

mubashir aziz Posts 190 Registration date Sunday April 12, 2009 Status Member Last seen February 16, 2010 166
Apr 28, 2009 at 03:42 AM
Suppose your data is in Sheet from Cell A2 to C8 .....

Now in Sheet2 in Cell A1 write a name which is in sheet1 and now in Sheet 2 write below formula's

A2=VLOOKUP($A$1,Sheet1!$A$2:$C$8,1,FALSE) {It will search name in Sheet 1 on the basis of Sheet2!A1 }
B2=VLOOKUP($A$1,Sheet1!$A$2:$C$8,2,FALSE) {It will return phone number from Sheet 1 on the basis of Sheet2!A1 }
C2=VLOOKUP($A$1,Sheet1!$A$2:$C$8,3,FALSE) {It will return mobile number from Sheet 1 on the basis of Sheet2!A1 }
laptopman Posts 15 Registration date Thursday July 31, 2008 Status Member Last seen October 18, 2008 3
Sep 10, 2008 at 04:10 AM
hey there,

are you trying to do that in excel?

if yes just see the help on macros on the forum itself it might help you
did you figure out how to do this on excel?
Thanks for the reply.
Yes. In Excel. But I could not find help on macros in the forum.