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 Replacing cell referance with value in INDIRECT-formula

Hi!
Can anyone please guide me on how to change part of cell reference in this
formula:
=INDIRECT("'[" & $A$19 & "]Sheet1'!$B$2")

The formula is in Sheet2, and I would like to change the reference $B$2 with
the value from cell H1 in sheet2.
I have tried with =INDIRECT("'[" & $A$19 & "]Sheet1'!$B$(=INDIRECT( H1)"),
but it gives error #REF.

Any help would be appreciated.
--
HebbeLille
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,276
Default Replacing cell referance with value in INDIRECT-formula

Hi,
I assume that you want to get the value from column A and from the row
indicated in cell H1 if that is the case use

=INDIRECT("A" & $H$1)

if not please provide an example, thanks

"HebbeLille" wrote:

Hi!
Can anyone please guide me on how to change part of cell reference in this
formula:
=INDIRECT("'[" & $A$19 & "]Sheet1'!$B$2")

The formula is in Sheet2, and I would like to change the reference $B$2 with
the value from cell H1 in sheet2.
I have tried with =INDIRECT("'[" & $A$19 & "]Sheet1'!$B$(=INDIRECT( H1)"),
but it gives error #REF.

Any help would be appreciated.
--
HebbeLille

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Replacing cell referance with value in INDIRECT-formula

Try the below (row reference from Sheet2 H1)

=INDIRECT("'["&$A$19&"]Sheet1'!$B$" & Sheet2!H1)

If this post helps click Yes
---------------
Jacob Skaria


"HebbeLille" wrote:

Hi!
Can anyone please guide me on how to change part of cell reference in this
formula:
=INDIRECT("'[" & $A$19 & "]Sheet1'!$B$2")

The formula is in Sheet2, and I would like to change the reference $B$2 with
the value from cell H1 in sheet2.
I have tried with =INDIRECT("'[" & $A$19 & "]Sheet1'!$B$(=INDIRECT( H1)"),
but it gives error #REF.

Any help would be appreciated.
--
HebbeLille

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 913
Default Replacing cell referance with value in INDIRECT-formula

On Thu, 30 Jul 2009 10:12:01 -0700, HebbeLille
wrote:

Hi!
Can anyone please guide me on how to change part of cell reference in this
formula:
=INDIRECT("'[" & $A$19 & "]Sheet1'!$B$2")

The formula is in Sheet2, and I would like to change the reference $B$2 with
the value from cell H1 in sheet2.
I have tried with =INDIRECT("'[" & $A$19 & "]Sheet1'!$B$(=INDIRECT( H1)"),
but it gives error #REF.

Any help would be appreciated.



If it is only the 2 in the $B$2 that should be replaced, try this:

=INDIRECT("'[" & $A$19 & "]Sheet1'!$B$"&H1)

Hope this helps / Lars-Åke
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default Replacing cell referance with value in INDIRECT-formula

HebbeLille wrote...
Can anyone please guide me on how to change part of cell reference in this
formula:
=INDIRECT("'[" & $A$19 & "]Sheet1'!$B$2")

The formula is in Sheet2, and I would like to change the reference $B$2 with
the value from cell H1 in sheet2.
I have tried with =INDIRECT("'[" & $A$19 & "]Sheet1'!$B$(=INDIRECT( H1)"),
but it gives error #REF.

....

You don't need the $s in the INDIRECT call. You could use

=INDIRECT("'[" & $A$19 & "]Sheet1'!B" & H1)

if transition-formula evaluation is disabled, or

=INDIRECT("'[" & $A$19 & "]Sheet1'!B" & TEXT(H1,"0"))

just to be safe.

If you have fewer than 30 different worksheet names that could appear
in cell A19, you don't even need to use INDIRECT. For example, you
could use something like

=INDEX(CHOOSE(MATCH($A$19,ListOfWorkbookNames,0),S heet1!$B:$B,Sheet2!
$B:$B,...,Sheet29!$B:$B),H1)


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Replacing cell referance with value in INDIRECT-formula

Thanks! It worked just nice!!
--
HebbeLille


"Lars-Ã…ke Aspelin" wrote:

On Thu, 30 Jul 2009 10:12:01 -0700, HebbeLille
wrote:

Hi!
Can anyone please guide me on how to change part of cell reference in this
formula:
=INDIRECT("'[" & $A$19 & "]Sheet1'!$B$2")

The formula is in Sheet2, and I would like to change the reference $B$2 with
the value from cell H1 in sheet2.
I have tried with =INDIRECT("'[" & $A$19 & "]Sheet1'!$B$(=INDIRECT( H1)"),
but it gives error #REF.

Any help would be appreciated.



If it is only the 2 in the $B$2 that should be replaced, try this:

=INDIRECT("'[" & $A$19 & "]Sheet1'!$B$"&H1)

Hope this helps / Lars-Ã…ke

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Replacing cell referance with value in INDIRECT-formula

Thank you!

It works nice now, and saved me for some boring work!
--
HebbeLille


"Jacob Skaria" wrote:

Try the below (row reference from Sheet2 H1)

=INDIRECT("'["&$A$19&"]Sheet1'!$B$" & Sheet2!H1)

If this post helps click Yes
---------------
Jacob Skaria


"HebbeLille" wrote:

Hi!
Can anyone please guide me on how to change part of cell reference in this
formula:
=INDIRECT("'[" & $A$19 & "]Sheet1'!$B$2")

The formula is in Sheet2, and I would like to change the reference $B$2 with
the value from cell H1 in sheet2.
I have tried with =INDIRECT("'[" & $A$19 & "]Sheet1'!$B$(=INDIRECT( H1)"),
but it gives error #REF.

Any help would be appreciated.
--
HebbeLille

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
get currency format from souce cell(s) of a formula or referance batunar Excel Discussion (Misc queries) 4 April 22nd 08 07:12 AM
how do i referance an adjacent cell from a search? UH-60 Crew Chief Excel Discussion (Misc queries) 4 May 18th 07 08:35 PM
Help with a formula. Lookup? referance? Joe Excel Worksheet Functions 5 February 4th 07 02:06 AM
Formula that referance a Cell MESTRELLA29 Excel Discussion (Misc queries) 1 February 10th 05 11:18 PM
Cell referance for formula ParTeeGolfer Excel Worksheet Functions 2 January 1st 05 01:01 AM


All times are GMT +1. The time now is 12:32 PM.

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"