VLOOKUP function

KnAsTa

Board Regular
Joined
Apr 11, 2002
Messages
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
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
On 2002-04-12 01:56, KnAsTa wrote:
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

Your formula doesn't tell where the range is in the named file, that is, the sheet name is missing. BTW, the corrected formula will work only when the target file is open.
 
Upvote 0
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.
 
Upvote 0
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
 
Upvote 0
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.
 
Upvote 0
im not sure if im confused on what vlookup is, or maybe you :)....you have your column in the other sheet as $A$1:$A$10. vlookup would take the value from A5 in your first sheet, and find that value in the second sheet in the table you defined as $A$1:$A$10. then you specified column 1, which is the only column in your table....so if it did work, it would return the same value as it started with? wouldnt you need another column, with the values you wanted to look up?
 
Upvote 0
On 2002-04-12 02:04, KnAsTa wrote:
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.


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
 
Upvote 0
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.
 
Upvote 0
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?
 
Upvote 0
robfo0:
We're just testing the function at first, ie trying to understand it. Then use it on larger objectives.
 
Upvote 0

Forum statistics

Threads
1,214,553
Messages
6,120,176
Members
448,948
Latest member
spamiki

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top