TechRepublic : A ZDNet Tech Community

Microsoft Office

Host: Susan Harkins
Contact

You can use Excel’s Lookup functions to build a worksheet that can be used to search a database table. For example, say you’ve imported the following table from your Access database to Sheet2 of your Excel workbook:

To build a worksheet that can be used to look up an intern’s pay rate by entering the intern’s ID, follow these steps:

  1. Open the workbook, click the Sheet2 tab, and select the range A2:H5.
  2. Click in the Name box, type Interndata, and then press [Enter].
  3. Click on the Sheet1 tab.
  4. Click cell D6 and enter Employee ID.
  5. Click cell D8 and enter Name.
  6. Click cell E8 and enter the following function:
=VLOOKUP(E6,Interndata,3,FALSE)&" "&VLOOKUP(E6,Interndata,2,FALSE)
  1. Click in D10 and enter Pay Rate.
  2. Click in E10 and enter the following function:
=VLOOKUP(E6,Interndata,8,FALSE)
  1. Change the cell format of E6, E8, and E10 to match the data type of the data in the table.
  2. Add a header and formatting as shown here.


Miss an Excel tip?

Check out the Microsoft Excel archive and catch up on other Excel tips.

Help users increase productivity by automatically signing up for TechRepublic’s free Microsoft Office Suite newsletter, featuring Word, Excel, and Access tips, delivered each Wednesday.

Print/View all Posts Comments on this blog

BUT what if you change the reference data tinkerbell2210@... | 06/18/08
Why on Earth would you want to do this? Snak | 06/03/09
RE: Use Excel's Lookup functions to search a database drbobb1@... | 06/18/08
That's baby stuff basil.cinnamon | 06/18/08
Re; Baby Stuff vjanecky@... | 12/16/09
Con of the lookup fuction ab_myer@... | 12/16/09
RE: Use Excel's Lookup functions to search a database Rick_from_BC | 06/18/08

What do you think?

White Papers, Webcasts, and Downloads

Recent Entries

TR on Twitter

Archives

TechRepublic Blogs



500 Things Every Technology Professional Needs to Know
Did you know Microsoft's RegClean does not work with XP but you can use shareware to clean your registry? Did you know most wireless access points don't have encryption enabled by default? Did you know there are 500 tidbits of information contained in TechRepublic's 500 Things Every Technology Professional Needs to Know that will help you become a successful IT professional.
Buy Now
IT Professional's Guide to Policies and Procedures, Third Ed
Whether you're creating policies for management, training, personnel, support, privacy, Internet/e-mail usage, security, or inventory, you'll meet the needs of your entire enterprise with this one download!
Buy Now

SmartPlanet

Click Here