Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Data lookup on 2nd excel sheet.

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!

  #2   Report Post  
Posted to microsoft.public.excel.programming
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!


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Data lookup on 2nd excel sheet.

On Sep 6, 9:16 pm, Kevin B wrote:
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!


Thanks Kevin!

One wierd thing is that when i get it working, and then copy and paste
the formula into a new cell, it pops up an open dialog asking for
where that file is. Any idea why, even though it's coded correctly?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lookup and match then return data from another sheet Charlie510 Excel Worksheet Functions 6 October 23rd 08 09:14 PM
LookUp (Date) Value from Forecast Data - From 2nd Sheet Bam Excel Worksheet Functions 3 September 24th 08 10:20 PM
Cross-sheet hyperlinking, data insert,lookup csaba kobol Excel Programming 1 July 16th 07 11:36 AM
Lookup on a sheet so that every time when file open it copes data from another file sheet Anna Excel Programming 1 December 19th 06 02:02 AM
lookup data in another sheet Teacher Karen Excel Programming 2 November 18th 04 11:33 PM


All times are GMT +1. The time now is 11:35 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"