View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Kevin B Kevin B is offline
external usenet poster
 
Posts: 1,316
Default Data lookup on 2nd excel sheet.

If the data in the lookup worksheet is arranged as a table you can use a
VLOOKUP worksheet function to look up the values you need.

=VLOOKUP(A1, [LookupFileName.xls]Sheet1!$A$1:$E$25,2)

In the example above the value you're looking up is in cell A1, the table
where you are lookup up the matching value is in a file named
LookUpFileName.xls, in Sheet 1, cells A1 through E25, with the return value
to be found located in column 2 of the lookup table

By default the VLOOKUP does an approximate match, so you'll want to sort the
lookup table in ascending order, or to have it do an exact match add True as
the optional 4th argument value.

=VLOOKUP(A1, [LookupFileName.xls]Sheet1!$A$1:$E$25,2,TRUE)
--
Kevin Backmann


"radink" wrote:

Hey all,

I'm importing a report from a CSV file. Once in, it has a column with
project numbers in it. I would like to have another cell look in the
project number cell and then get the project name and client from a
2nd excel file. Is this something that can be done? I don't want to do
it in access. Thanks!