Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 106
Default Variable table array name in VLOOKUP

I need to retrieve values from an external spreadsheet table, but this table
is variable (one of many). Can anyone help with specifying a variable table
array name??

Example :

field1 = 1
dbname = vlookup(field1;internal_table;fieldindex) --result = "DataArea2"
(or DataArea3 etc)

I need to access DataArea2 (or DataArea3 etc) in C:\WORK\external.xls, which
is an external spreadsheet...

field2 = "something"
my_problem=vlookup(field2;'C:\WORK\external.xls'!& dbname;otherfieldindex)

How can I stuff the contents of variable dbname in the VLOOKUP syntax??
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 106
Default Variable table array name in VLOOKUP

HELLO!!! Anyone???

Please advise - if this is impossible I should change the logic of my
spreadsheet. ANY answer will be deeply appreciated

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Variable table array name in VLOOKUP

I very new to programming so I might not now exactly what you are asking but
I had a similar problem. Dave Peterson wrote some code for me that works for
what I needed. The strings where you can find this have the subject line
"VLookup in Multiple Arrays" and "Trouble wth Looping".
"DoctorG" wrote in message
...
HELLO!!! Anyone???

Please advise - if this is impossible I should change the logic of my
spreadsheet. ANY answer will be deeply appreciated



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
array table and vlookup DV Excel Worksheet Functions 7 October 25th 07 04:09 PM
VLOOKUP variable array references Simon Excel Discussion (Misc queries) 1 June 22nd 07 07:09 PM
Variable Table Array in Lookup Function matt_the_brum Excel Worksheet Functions 6 August 4th 06 05:07 PM
VLOOKUP - 3 Table Array tangomj Excel Worksheet Functions 1 August 1st 06 05:43 PM
are variable table-array names in functions possible? JimH Excel Discussion (Misc queries) 2 April 7th 05 09:51 PM


All times are GMT +1. The time now is 01:58 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"