Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default vlookup - lookup with an array in another workbook?

I am trying to lookup values in one workbook from an array in another
workbook. Can this be done? I am getting #N/A errors from a perfectly good
vlookup formula. I am assuming that it does not like the second workbook.
If that is an incorrect assumption, let me know what else I should check.
Here's the formula for those that want to check it: =VLOOKUP(A6,'[2008
Projection.xls]08 PROJ'!A$9:C$191,3). Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,344
Default vlookup - lookup with an array in another workbook?

Hi,

Not sure what you mean by "with an array"

The following formula works just fine.

=VLOOKUP(A1,tblBookSales.xls!$A$1:$E$101,3,FALSE)

Note you are doing an approximate match so the lookup column, the first
column in the lookup table must be sorted in Ascending order.

--
Cheers,
Shane Devenshire


"Cobaum" wrote:

I am trying to lookup values in one workbook from an array in another
workbook. Can this be done? I am getting #N/A errors from a perfectly good
vlookup formula. I am assuming that it does not like the second workbook.
If that is an incorrect assumption, let me know what else I should check.
Here's the formula for those that want to check it: =VLOOKUP(A6,'[2008
Projection.xls]08 PROJ'!A$9:C$191,3). Thanks in advance.

  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default vlookup - lookup with an array in another workbook?

=VLOOKUP(A6,'[2008 Projection.xls]08 PROJ'!A$9:C$191,3)

As-is, you need to ensure that the values in the table array's lookup col
are sorted in ascending order

Alternatively, amend it for exact matching, viz.:
=VLOOKUP(A6,'[2008 Projection.xls]08 PROJ'!A$9:C$191,3,0)
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,500 Files:358 Subscribers:55
xdemechanik
---
"Cobaum" wrote:
I am trying to lookup values in one workbook from an array in another
workbook. Can this be done? I am getting #N/A errors from a perfectly good
vlookup formula. I am assuming that it does not like the second workbook.
If that is an incorrect assumption, let me know what else I should check.
Here's the formula for those that want to check it: =VLOOKUP(A6,'[2008
Projection.xls]08 PROJ'!A$9:C$191,3). Thanks in advance.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default vlookup - lookup with an array in another workbook?

On my Excel it calls it a "table_array" meaning lookup table. What do you
mean by an "approximate match"? How do I change the formula to pick up
values if the lookup column is not in numerical order? Thanks.

"ShaneDevenshire" wrote:

Hi,

Not sure what you mean by "with an array"

The following formula works just fine.

=VLOOKUP(A1,tblBookSales.xls!$A$1:$E$101,3,FALSE)

Note you are doing an approximate match so the lookup column, the first
column in the lookup table must be sorted in Ascending order.

--
Cheers,
Shane Devenshire


"Cobaum" wrote:

I am trying to lookup values in one workbook from an array in another
workbook. Can this be done? I am getting #N/A errors from a perfectly good
vlookup formula. I am assuming that it does not like the second workbook.
If that is an incorrect assumption, let me know what else I should check.
Here's the formula for those that want to check it: =VLOOKUP(A6,'[2008
Projection.xls]08 PROJ'!A$9:C$191,3). Thanks in advance.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default vlookup - lookup with an array in another workbook?

Dear All,

I have had accurate results with INDEX and MATCH functions combined. The
best part is, the data need not be in ascending order. Regardless of the
arrangement of data, one can easily look up the values with ease.

Best regards,
Satadru

"Max" wrote:

=VLOOKUP(A6,'[2008 Projection.xls]08 PROJ'!A$9:C$191,3)


As-is, you need to ensure that the values in the table array's lookup col
are sorted in ascending order

Alternatively, amend it for exact matching, viz.:
=VLOOKUP(A6,'[2008 Projection.xls]08 PROJ'!A$9:C$191,3,0)
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,500 Files:358 Subscribers:55
xdemechanik
---
"Cobaum" wrote:
I am trying to lookup values in one workbook from an array in another
workbook. Can this be done? I am getting #N/A errors from a perfectly good
vlookup formula. I am assuming that it does not like the second workbook.
If that is an incorrect assumption, let me know what else I should check.
Here's the formula for those that want to check it: =VLOOKUP(A6,'[2008
Projection.xls]08 PROJ'!A$9:C$191,3). Thanks in advance.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,344
Default vlookup - lookup with an array in another workbook?

Hi,

If its not sorted then you must use an exact match - that means the 4th
argument in my example would be TRUE.

Note: For exact matches the table does not need to be sorted on the lookup
column, but for approximate matches it does.

--
Cheers,
Shane Devenshire


"Cobaum" wrote:

On my Excel it calls it a "table_array" meaning lookup table. What do you
mean by an "approximate match"? How do I change the formula to pick up
values if the lookup column is not in numerical order? Thanks.

"ShaneDevenshire" wrote:

Hi,

Not sure what you mean by "with an array"

The following formula works just fine.

=VLOOKUP(A1,tblBookSales.xls!$A$1:$E$101,3,FALSE)

Note you are doing an approximate match so the lookup column, the first
column in the lookup table must be sorted in Ascending order.

--
Cheers,
Shane Devenshire


"Cobaum" wrote:

I am trying to lookup values in one workbook from an array in another
workbook. Can this be done? I am getting #N/A errors from a perfectly good
vlookup formula. I am assuming that it does not like the second workbook.
If that is an incorrect assumption, let me know what else I should check.
Here's the formula for those that want to check it: =VLOOKUP(A6,'[2008
Projection.xls]08 PROJ'!A$9:C$191,3). Thanks in advance.

  #7   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default vlookup - lookup with an array in another workbook?

.. best part is, the data need not be in ascending order.

Not necessarily. Like VLOOKUP, MATCH, in the INDEX/MATCH, must be set for an
exact match in order for the above to hold true, eg: MATCH(5,B2:B10,0)
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,500 Files:358 Subscribers:55
xdemechanik
---


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 in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Vlookup - Array not selecting in other workbook Erinayn Excel Discussion (Misc queries) 0 March 21st 07 03:03 PM
vLookup with multiple lookup value in table array [email protected] Excel Worksheet Functions 2 September 26th 06 04:12 PM
VLOOKUP keeping array lookup reference rebdk Excel Discussion (Misc queries) 3 July 4th 06 08:46 PM
VLOOKUP CONDITION TO RETURN BLANK CELL WHERE LOOKUP VALUE IS NOT IN TABLE ARRAY Scott Lolmaugh Excel Worksheet Functions 3 March 9th 06 11:05 PM


All times are GMT +1. The time now is 02:43 PM.

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

About Us

"It's about Microsoft Excel"