Vlookup question

lynx1971

New Member
Joined
Oct 13, 2010
Messages
22
Hi,

I have three columns in a worksheet as under

120 1760ABCD12 6062100000
130 1760ABCD13 6062100001
140 1760ABCD14 6062100002
150 1760ABCD15 6062100003
160 1760ABCD16 6062100004

On the lower half of the worksheet, I have an area where I would like to just type in the codes from the first column and then have the data in the 2nd and 3rd columns appear one below the other after the first code like this:

120
1760ABCD12
6062100000


How would I do this? I think it uses the IF, VLOOKUP and ISERROR functions, but I can't remember how.

Thanks in advance,

Lynx
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
For the first code:

=VLOOKUP(C1,A1:C5,2,FALSE)

For the second code:

=VLOOKUP(C1,A1:C5,3,FALSE)

Where C1 is the code you type in (120), A1:A5 is the table of data and 2/3 is the column index.
 
Upvote 0
Try like this

Excel Workbook
ABC
11201760ABCD126062100000
21301760ABCD136062100001
31401760ABCD146062100002
41501760ABCD156062100003
51601760ABCD166062100004
6
7120
81760ABCD12
96062100000
Sheet3
 
Upvote 0
SOLVED Re: Vlookup question

Hi there, JamesW and VoG!

Thank you very much for your replies. They helped immensly!!!

Cheers,

Lynx
 
Upvote 0

Forum statistics

Threads
1,224,582
Messages
6,179,670
Members
452,936
Latest member
anamikabhargaw

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top