Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Help on index addressing using variable sheets & cell references

I wish to reference data in variable cells, on variable worksheets, from a
fixed worksheet :

Sheet 1.A1 = name of variable worksheets (Sheet 2, Sheet 3 ...) to get data
from
Sheet 1.A2 = variable row on chosen variable worksheet to get data from
The column on the variable worksheet will always be the same, say "B"
Data to be displayed in Sheet 1.A3

All the forum Q/As I have seen reference fixed cells on Sheet 2,3 etc, not
variable.
cells. I would also be interested to know the formula if the row was fixed
and the column was variable.

Can anyone help ?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Help on index addressing using variable sheets & cell references

Hi

try this =INDIRECT(A1&"!B"&A2)

"Greggers" wrote:

I wish to reference data in variable cells, on variable worksheets, from a
fixed worksheet :

Sheet 1.A1 = name of variable worksheets (Sheet 2, Sheet 3 ...) to get data
from
Sheet 1.A2 = variable row on chosen variable worksheet to get data from
The column on the variable worksheet will always be the same, say "B"
Data to be displayed in Sheet 1.A3

All the forum Q/As I have seen reference fixed cells on Sheet 2,3 etc, not
variable.
cells. I would also be interested to know the formula if the row was fixed
and the column was variable.

Can anyone help ?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default Help on index addressing using variable sheets & cell references

"junior52" wrote...
try this =INDIRECT(A1&"!B"&A2)

....

Much more robust to enclose the worksheet name in single quotes.

=INDIRECT("'"&A1&"'!B"&A2)


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Help on index addressing using variable sheets & cell referenc

The 'more robust' approach of using single quotes worked, as the worksheet
names have a space in them.

Many thanks
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
Multiple or Variable cell references in Solver (Excel 97) Coreyhotlin Excel Worksheet Functions 1 February 14th 06 01:36 PM
variable cell references ???? kiethb Excel Discussion (Misc queries) 2 February 10th 06 08:22 PM
Creating cell references with variable values to use in Vlookup jackebro Excel Discussion (Misc queries) 2 December 14th 05 02:46 PM
Can the column index in a cell address be made variable? cyberdude Excel Discussion (Misc queries) 1 November 20th 05 02:47 AM
Addressing cells on inactive sheets John Duffus Excel Discussion (Misc queries) 4 October 22nd 05 06:13 PM


All times are GMT +1. The time now is 07:27 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"