Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default another look-up problem(three variables)

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default another look-up problem(three variables)

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default another look-up problem(three variables)

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
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
Not at all clear on use of variables and/or object variables JMay-Rke Excel Discussion (Misc queries) 11 July 4th 08 06:36 PM
Table function, 2 variables. Problem with update/refresh lorenzo Excel Worksheet Functions 5 November 25th 06 10:55 PM
Webqueries and variables problem dazman Excel Discussion (Misc queries) 0 August 4th 05 10:31 AM
User Defined Variables in MS query cause a problem to import data snb Excel Discussion (Misc queries) 0 April 13th 05 12:16 AM
Variables Chip Pearson Excel Programming 0 July 9th 04 04:22 PM


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