PC Review


Reply
Thread Tools Rate Thread

Data lookup on 2nd excel sheet.

 
 
radink
Guest
Posts: n/a
 
      6th Sep 2007
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!

 
Reply With Quote
 
 
 
 
=?Utf-8?B?S2V2aW4gQg==?=
Guest
Posts: n/a
 
      7th Sep 2007
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!
>
>

 
Reply With Quote
 
radink
Guest
Posts: n/a
 
      7th Sep 2007
On Sep 6, 9:16 pm, Kevin B <kbackm...@sbcglobal.net.spamBgone> 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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lookup and match then return data from another sheet Charlie510 Microsoft Excel Worksheet Functions 6 23rd Oct 2008 09:14 PM
Lookup on a sheet so that every time when file open it copes data from another file sheet Anna Microsoft Excel Programming 1 19th Dec 2006 02:02 AM
Loading data of a excel sheet or excel sheet format in Rich TextBox Control natrajsr@gmail.com Microsoft C# .NET 3 11th Sep 2006 07:23 PM
lookup data in another sheet =?Utf-8?B?VGVhY2hlciBLYXJlbg==?= Microsoft Excel Programming 2 18th Nov 2004 11:33 PM
Lookup a sheet via a cell's data MACRE0 Microsoft Excel Misc 3 7th Aug 2004 08:56 AM


Features
 

Advertising
 

Newsgroups
 


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