Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Vlookup against a different spreadsheet.

I tried to use Vlookup in a spreadsheet to extract data from a different
spreadsheet in the workbook. It complained about having the spreadsheet name
in the table array.

It worked fine if I put the vlookup commands in the same spreadheet.

So the questions is can you use vlookup to lookup data in a different
spreadsheet (same workbook) and if so what is the syntax?

Don C


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Vlookup against a different spreadsheet.

Yes you can use VLOOKUP on another worksheet in a workbook.

In Sheet1 B1

=VLOOKUP(A1,Sheet2!$A$1:$B$10,2,FALSE)

=VLOOKUP(A1,table,2,FALSE)

Assumes table is a defined name in Sheet2


Gord Dibben MS Excel MVP

On Wed, 11 Nov 2009 00:20:47 -0000, "Don C" wrote:

I tried to use Vlookup in a spreadsheet to extract data from a different
spreadsheet in the workbook. It complained about having the spreadsheet name
in the table array.

It worked fine if I put the vlookup commands in the same spreadheet.

So the questions is can you use vlookup to lookup data in a different
spreadsheet (same workbook) and if so what is the syntax?

Don C


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Vlookup against a different spreadsheet.

Hi Gord

This was how I was expecting it to work.
Interestingly when I created the table array details by marking the area, it
complained that there were too many parameters.

When I typed it in manually it was fine !

Don C


"Gord Dibben" <gorddibbATshawDOTca wrote in message
...
Yes you can use VLOOKUP on another worksheet in a workbook.

In Sheet1 B1

=VLOOKUP(A1,Sheet2!$A$1:$B$10,2,FALSE)

=VLOOKUP(A1,table,2,FALSE)

Assumes table is a defined name in Sheet2


Gord Dibben MS Excel MVP

On Wed, 11 Nov 2009 00:20:47 -0000, "Don C" wrote:

I tried to use Vlookup in a spreadsheet to extract data from a different
spreadsheet in the workbook. It complained about having the spreadsheet
name
in the table array.

It worked fine if I put the vlookup commands in the same spreadheet.

So the questions is can you use vlookup to lookup data in a different
spreadsheet (same workbook) and if so what is the syntax?

Don C




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Vlookup against a different spreadsheet.


You can use VLOOKUP in the same workbook or you can use VLOOKUP from
another spreadsheet file. Here is the syntax from another filename:

=VLOOKUP(A2,'C:\Documents and Settings\JTK\My
Documents\Excel\Training\[Filename.xlsx]Sheet1'!$A$1:$B$8,2,FALSE)

HTH,
DataHog

Don C;554451 Wrote:
I tried to use Vlookup in a spreadsheet to extract data from a
different
spreadsheet in the workbook. It complained about having the spreadsheet
name
in the table array.

It worked fine if I put the vlookup commands in the same spreadheet.

So the questions is can you use vlookup to lookup data in a different
spreadsheet (same workbook) and if so what is the syntax?

Don C



--
J_Knowles
------------------------------------------------------------------------
J_Knowles's Profile: http://www.thecodecage.com/forumz/me...hp?userid=1159
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=152837

Microsoft Office Help

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
VLookup: Get a value from a different spreadsheet Simon Excel Worksheet Functions 3 March 24th 08 10:04 PM
Can Vlookup from one spreadsheet and not another Melinda Excel Worksheet Functions 2 January 25th 06 09:41 PM
help with vlookup spreadsheet apple jacks Excel Worksheet Functions 1 September 23rd 05 02:46 AM
VLOOKUP for spreadsheet compare bbquestion2003 Excel Programming 1 July 26th 04 08:36 PM
vLookup to another open spreadsheet Jill[_7_] Excel Programming 12 June 20th 04 08:35 PM


All times are GMT +1. The time now is 10:26 PM.

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"