Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ice ice is offline
external usenet poster
 
Posts: 1
Default Indirect reference

Hi,
I want to use the indirect() function.

A1 of the current sheet says sheet 2
So I do the =INDIRECT("'" & $A$1 & "'! & B2")
Which returns the contents of Sheet 2 B2, which is great...but what I
want to do is have B2 be relative,
When I do a copy paste into the following 20 rows, I want it to be
B3..B22. If I take it out of quotes it references the B2..b22
contents of the current sheet. in the quotes it stays B2 through out.
Basically I want
='Sheet 2'!B2
='Sheet 2'!B3
='Sheet 2'!B4
..
..
='Sheet 2'!B22

But the part I want to reference is the Sheet 2 part
Any idea, thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Indirect reference

=INDIRECT("'" & $A$1 & "'! & B" & ROW(B2))
--
David Biddulph

"ice" wrote in message
...
Hi,
I want to use the indirect() function.

A1 of the current sheet says sheet 2
So I do the =INDIRECT("'" & $A$1 & "'! & B2")
Which returns the contents of Sheet 2 B2, which is great...but what I
want to do is have B2 be relative,
When I do a copy paste into the following 20 rows, I want it to be
B3..B22. If I take it out of quotes it references the B2..b22
contents of the current sheet. in the quotes it stays B2 through out.
Basically I want
='Sheet 2'!B2
='Sheet 2'!B3
='Sheet 2'!B4
.
.
='Sheet 2'!B22

But the part I want to reference is the Sheet 2 part
Any idea, thanks



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 523
Default Indirect reference


=INDIRECT("'" & $A$1 & "'!" & "B" & ROW())


You'll have to change ROW() to ROW()+x if you're putting the function x rows
after row 2 etc.

"ice" wrote:

Hi,
I want to use the indirect() function.

A1 of the current sheet says sheet 2
So I do the =INDIRECT("'" & $A$1 & "'! & B2")
Which returns the contents of Sheet 2 B2, which is great...but what I
want to do is have B2 be relative,
When I do a copy paste into the following 20 rows, I want it to be
B3..B22. If I take it out of quotes it references the B2..b22
contents of the current sheet. in the quotes it stays B2 through out.
Basically I want
='Sheet 2'!B2
='Sheet 2'!B3
='Sheet 2'!B4
..
..
='Sheet 2'!B22

But the part I want to reference is the Sheet 2 part
Any idea, 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
Convert Indirect row reference Harry Stevens Excel Worksheet Functions 5 July 21st 08 09:33 PM
INDIRECT.EXT reference pdabill Excel Discussion (Misc queries) 1 August 25th 06 12:28 AM
Indirect Reference Danny Lewis Excel Discussion (Misc queries) 5 July 14th 06 10:45 AM
Indirect reference (again?) Hundikoer Excel Worksheet Functions 6 October 25th 05 05:12 PM
indirect reference BorisS Excel Worksheet Functions 3 June 15th 05 03:40 PM


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