Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to do a look up based on three variables. The firs
variable determines the worksheet and the second and third ar variables within the various worksheets An example is the first variable is a region with a country and th second and third variables are cities within the region and the answe that comes back is the distance between the cities. Any help would be appreciated -- Message posted from http://www.ExcelForum.com |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Use the indirect worksheet function to form a dynamic range - to inject the
correct sheet. Use offset(base range ,Match for row, Match for column) assumes you have a list of cities down the column and across the top with the distance at the intersection. -- Regards, Tom Ogilvy "mikey6704 " wrote in message ... I am trying to do a look up based on three variables. The first variable determines the worksheet and the second and third are variables within the various worksheets An example is the first variable is a region with a country and the second and third variables are cities within the region and the answer that comes back is the distance between the cities. Any help would be appreciated! --- Message posted from http://www.ExcelForum.com/ |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Tom. I have seen several post using the indirect function, but
have never worked with it. I did getting it doing what I was lookin for. Very useful little tool -- Message posted from http://www.ExcelForum.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Not at all clear on use of variables and/or object variables | Excel Discussion (Misc queries) | |||
Table function, 2 variables. Problem with update/refresh | Excel Worksheet Functions | |||
Webqueries and variables problem | Excel Discussion (Misc queries) | |||
User Defined Variables in MS query cause a problem to import data | Excel Discussion (Misc queries) | |||
Variables | Excel Programming |