Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Referencing a different tab according to a formula result

Hi Team,
I have multiple tabs each with similar but different 2X2 reference data on
them.
On my user input sheet I want the user to input data that then calculates
which tab the rest of the formula should perform the index/vlookup/hlookup
on. I know about =&[Tab] function in the header/footer but can I do a
=[$C$2]! where $C$2 changes?
Thanks
Ditch

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Referencing a different tab according to a formula result

Need more info.

If cell C2 contains a sheet name then to use that in a VLOOKUP formula:

=VLOOKUP(A1,INDIRECT("'"&C2&"'!A:B"),2,0)

This is effectively:

=VLOOKUP(A1,Sheet_name!A:B,2,0)


--
Biff
Microsoft Excel MVP


"Ditch" wrote in message
...
Hi Team,
I have multiple tabs each with similar but different 2X2 reference data on
them.
On my user input sheet I want the user to input data that then calculates
which tab the rest of the formula should perform the index/vlookup/hlookup
on. I know about =&[Tab] function in the header/footer but can I do a
=[$C$2]! where $C$2 changes?
Thanks
Ditch



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Referencing a different tab according to a formula result

You could use INDIRECT

Eg if you have this in C3:
=VLOOKUP(A2,Sheet3!A:B,2,0)

You could use INDIRECT to make the formula flexible
for the sheetname, viz.:
=VLOOKUP(A3,INDIRECT("'"&C$2&"'!A:B"),2,0)
where C2 would contain the required sheetname, ie: Sheet3, Sheet2, etc
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Ditch" wrote:
Hi Team,
I have multiple tabs each with similar but different 2X2 reference data on
them.
On my user input sheet I want the user to input data that then calculates
which tab the rest of the formula should perform the index/vlookup/hlookup
on. I know about =&[Tab] function in the header/footer but can I do a
=[$C$2]! where $C$2 changes?
Thanks
Ditch

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
Advanced formula - Return result & Show Cell Reference of result Irv Excel Worksheet Functions 7 May 6th 06 03:36 AM
need help referencing cell using result of formula nosliw Excel Discussion (Misc queries) 1 April 1st 06 06:54 AM
Median result used in formula gives incorrect result vlatham Excel Worksheet Functions 4 September 21st 05 04:26 PM
referencing autofilter result EH003268 Excel Discussion (Misc queries) 2 August 24th 05 02:43 PM
Referencing a formula Sprout Excel Discussion (Misc queries) 2 August 19th 05 02:57 PM


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