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

I am trying to get the following to work to calculate percent change:

=INDIRECT(("'"&$E$1&"'!" &$C$2& "42" - "'"&$E$1&"'!" &$D$2&
"42")/"'"&$E$1&"'!" &$D$2& "42")

whe $E$1 holds the sheet name(in same workbook) containing the data and
$C$2 and $D$2 hold the row references such that without the Indirect it would
read:

=('Data'!X43-'Data'!W43)/('Data'!W43)

I need the Indirect becuase I have 35 cases in which I need to do this
calculation and if all I have to do is change the row reference I am golden!

Any help is appreciated. Thanks!
--
javablood
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Indirect function

You've basically got to have your INDIRECT three times in the formula,
once for each term - the only arithmetic you can do within the
INDIRECT function is that which affects the cell reference (eg adding
onto the row). So, try this:

=(INDIRECT("'"&$E$1&"'!"&$C$2&"42") - INDIRECT("'"&$E$1&"'!"&$D
$2&"42")) / INDIRECT("'"&$E$1&"'!"&$D$2&"42")

Hope this helps.

Pete

On Feb 11, 2:14*pm, javablood
wrote:
I am trying to get the following to work to calculate percent change:

=INDIRECT(("'"&$E$1&"'!" &$C$2& "42" - "'"&$E$1&"'!" &$D$2&
"42")/"'"&$E$1&"'!" &$D$2& "42")

whe $E$1 holds the sheet name(in same workbook) containing the data and
$C$2 and $D$2 hold the row references such that without the Indirect it would
read:

=('Data'!X43-'Data'!W43)/('Data'!W43)

I need the Indirect becuase I have 35 cases in which I need to do this
calculation and if all I have to do is change the row reference I am golden!

Any help is appreciated. *Thanks!
--
javablood


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

Thanks Pete! It works!
--
javablood


"Pete_UK" wrote:

You've basically got to have your INDIRECT three times in the formula,
once for each term - the only arithmetic you can do within the
INDIRECT function is that which affects the cell reference (eg adding
onto the row). So, try this:

=(INDIRECT("'"&$E$1&"'!"&$C$2&"42") - INDIRECT("'"&$E$1&"'!"&$D
$2&"42")) / INDIRECT("'"&$E$1&"'!"&$D$2&"42")

Hope this helps.

Pete

On Feb 11, 2:14 pm, javablood
wrote:
I am trying to get the following to work to calculate percent change:

=INDIRECT(("'"&$E$1&"'!" &$C$2& "42" - "'"&$E$1&"'!" &$D$2&
"42")/"'"&$E$1&"'!" &$D$2& "42")

whe $E$1 holds the sheet name(in same workbook) containing the data and
$C$2 and $D$2 hold the row references such that without the Indirect it would
read:

=('Data'!X43-'Data'!W43)/('Data'!W43)

I need the Indirect becuase I have 35 cases in which I need to do this
calculation and if all I have to do is change the row reference I am golden!

Any help is appreciated. Thanks!
--
javablood


.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Indirect function

You're welcome - thanks for feeding back.

Pete

On Feb 11, 5:17*pm, javablood
wrote:
Thanks Pete! *It works!
--
javablood



"Pete_UK" wrote:
You've basically got to have your INDIRECT three times in the formula,
once for each term - the only arithmetic you can do within the
INDIRECT function is that which affects the cell reference (eg adding
onto the row). So, try this:


=(INDIRECT("'"&$E$1&"'!"&$C$2&"42") - INDIRECT("'"&$E$1&"'!"&$D
$2&"42")) / INDIRECT("'"&$E$1&"'!"&$D$2&"42")


Hope this helps.


Pete


On Feb 11, 2:14 pm, javablood
wrote:
I am trying to get the following to work to calculate percent change:


=INDIRECT(("'"&$E$1&"'!" &$C$2& "42" - "'"&$E$1&"'!" &$D$2&
"42")/"'"&$E$1&"'!" &$D$2& "42")


whe $E$1 holds the sheet name(in same workbook) containing the data and
$C$2 and $D$2 hold the row references such that without the Indirect it would
read:


=('Data'!X43-'Data'!W43)/('Data'!W43)


I need the Indirect becuase I have 35 cases in which I need to do this
calculation and if all I have to do is change the row reference I am golden!


Any help is appreciated. *Thanks!
--
javablood


.- Hide quoted text -


- Show quoted text -


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
INDIRECT Function Paul Moles Excel Worksheet Functions 9 November 11th 09 04:25 PM
Using INDIRECT Function and INDEX Function ChristopherG Excel Discussion (Misc queries) 1 June 10th 09 04:07 PM
INDIRECT function F. Lawrence Kulchar Excel Discussion (Misc queries) 4 June 2nd 08 10:21 AM
INDIRECT function inside AND function Biff Excel Worksheet Functions 3 September 23rd 06 07:20 PM
Help with INDIRECT function. DaveO Excel Worksheet Functions 12 January 18th 06 09:52 AM


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