vlookup instruction help

albertldee

Board Regular
Joined
Aug 22, 2002
Messages
65
hi i have to do a mail merge with letter can anyone share some idea how to do it

i have a workbook with 2 sheet, sheet 2 has the following info

sheet 2 cell has the following info
A1=END IN, B1=UNIT, C1=SLEEP, D1=DISC

A1= END IN (table headder)
A2= 1 bedroom
A3= 2 bedroom
A4= 4 bedroom
A5= Studio

SHEET 1 HAS THE FOLLOWING

this is what i want to do sheet 1 has

A1= ROOM, E1=DISC, F1=UNIT, I1=SLEEP

how can i used the vlookup function for cell E1, F1 AND I1 in sheet 1
so when i enter 1 bedroom in cell A2 it will look up the info in sheet 2 that correspond with 1 bedroom and put it in E1, F1 AND I1

Thanks in advace
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

venkat1926

Well-known Member
Joined
Aug 21, 2005
Messages
4,824
=vlookup(a2,sheet2!$A$2:$A$20,4,false)
assuming you have data upto row no. 20
copy this formula wherever you want you get
DESC of that type of flat which you fill in sheet1-col A
in sheet 2 desc is in D1 4th column from col A being 1
that is why the third argument is 4
similar for others
I am sure now you get hang of it.
remember that the the type of flat llike 1 bedroom, studio etc
should be inthe first column of the database
in both the sheets
 

albertldee

Board Regular
Joined
Aug 22, 2002
Messages
65
i'm getting error with that code
invalid code reference error i have the same info in seet2 A1 that i'm putting in Sheet1 A2 i format all the cell to text when i paste the code in cell E2 (disc) i get a error
 

venkat1926

Well-known Member
Joined
Aug 21, 2005
Messages
4,824
can you please send small extract of sheet 2 and sheet1 so that I can find whre I have done the mistake.
 

Forum statistics

Threads
1,141,937
Messages
5,709,430
Members
421,636
Latest member
kelseyacheson

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
Top