![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Apr 2002
Location: Australia
Posts: 52
|
When i use VLOOKUP functions with a range poiting to an external spreadsheet, it gives me errors and ##VALUE responses in my selected fields.
Here is the function i am using: =VLOOKUP(A5,week1.xls!$A$1:$A$10,1) where: -A5 is the word i am searching -week1.xls is the external spreadsheet -$A$1:$A$10 is the range i am using -1 is the column i am getting the result from Thanx |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,319
|
Quote:
|
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Apr 2002
Location: Australia
Posts: 52
|
Yeah, sorry, i did have the sheet open when i was using the formula. And i still got invalid responses to it. Nothing syntactically wrong, just doesnt work.
|
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Feb 2002
Location: Stockton, California
Posts: 281
|
wouldnt you need to define your table with more than one column also? or else what is it vlooking up?
an example would be: =VLOOKUP(A5,$B$5:$C$5,2) this would take the value in a5, search for it in column B, and return the value in Column C which matched the adjacent value in B (which would be your A5 value, if it exists) [ This Message was edited by: robfo0 on 2002-04-12 02:06 ] |
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Apr 2002
Location: Australia
Posts: 52
|
Its getting the information from a second sheet, so it it using more than one column. It stores the result in a seperate column in a seperate worksheet.
|
|
|
|
|
|
#6 |
|
Board Regular
Join Date: Feb 2002
Location: Stockton, California
Posts: 281
|
im not sure if im confused on what vlookup is, or maybe you
|
|
|
|
|
|
#7 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,319
|
Quote:
Here is the function i am using: =VLOOKUP(A5,week1.xls!$A$1:$A$10,1) where: -A5 is the word i am searching -week1.xls is the external spreadsheet -$A$1:$A$10 is the range i am using -1 is the column i am getting the result from =VLOOKUP(A5,[week1.xls]Sheet1!$A$1:$A$10,1,0) You have to say in which sheet of week1.xls $A$1:$A$10 is. So adjust Sheet1 to suit. Note that you're using a 1-column table. I assume that's intentional. [ This Message was edited by: Aladin Akyurek on 2002-04-12 02:30 ] |
|
|
|
|
|
|
#8 |
|
Board Regular
Join Date: Apr 2002
Location: Australia
Posts: 52
|
Thanx Aladin Akyurek,
it worked. But how do you do it for two columns now? like searching two columns in an external worksheet for 1 value. |
|
|
|
|
|
#9 |
|
Board Regular
Join Date: Feb 2002
Location: Stockton, California
Posts: 281
|
oh, maybe it was me that was confused. So whats the purpose of using a 1 column vlookup? it just returns the value it searches for right?
|
|
|
|
|
|
#10 |
|
Board Regular
Join Date: Apr 2002
Location: Australia
Posts: 52
|
robfo0:
We're just testing the function at first, ie trying to understand it. Then use it on larger objectives. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|