Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
fcjssc
 
Posts: n/a
Default Allow refence in the "table_array" position of Lookup functions

Should add the ability to use Functions or References to determine the
"table_array" name in Lookup functions. Is there a work around better than
nested IF statements?
  #2   Report Post  
Max
 
Posts: n/a
Default

"fcjssc" wrote

Should add the ability to use Functions or References
to determine the "table_array" name in Lookup functions.


Think using INDIRECT() would be one way

Example:

Assume TBL1 and TBL2 are the defined names
of 2 table_arrays.

And you have in

A5: TBL
B5: 1
C5: 2

Then something like this:

In B6: =VLOOKUP(A6,INDIRECT($A$5&B$5),2,0)
with B6 copied across to C6

will give the same returns as having

in B6: =VLOOKUP($A6,TBL1,2,0)
in C6: =VLOOKUP($A6,TBL2,2,0)

Is there a work around better than
nested IF statements?


Using VLOOKUP might be one consideration to look at

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----


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
Tab list position in Excel RRe Excel Discussion (Misc queries) 1 January 9th 05 12:12 AM
multi-level subtotals are in the wrong position Worksheet Guru need Excel Worksheet Functions 1 December 6th 04 05:22 PM
I am trying to link based on a text value instead of cell position John Links and Linking in Excel 3 December 3rd 04 06:29 PM
Saving a position dinamically Manu Palao Excel Worksheet Functions 1 November 10th 04 03:08 PM
getpivotdata() by position choop Excel Worksheet Functions 3 November 4th 04 06:17 PM


All times are GMT +1. The time now is 05:36 AM.

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"