Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default Index function with quotes and '&' sign in reference section

I am trying to use a changing reference inside an 'index' function,
however I keep getting a '#value' error. In trying to troubleshoot,
I
simplified the formula down to this:

=INDEX('Jan 07'!$C$22&":$C$24",1)


I still get the '#value' error. Ultimately, I would like to do this:


=INDEX("'X:\Path\[Filename.xls]worksheettab'!
$"&substitute(address(1,10,4),"1","")&"$527"&":$J$ 563",1)


But I think I need to take baby steps. :) The 'substitute(address)'
part of the formula is just to get a column letter to use with the
number $527 to create a cell reference. If there is a simpler way to
do this don't hestitate to tell me. :) Also, I am trying to avoid
using the 'indirect' function.


Thanks!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Index function with quotes and '&' sign in reference section

Linking to closed workbooks isn't supported - so you can't dynamically build
your reference. If you want something like this, use the change event or
the calculate event to hard code the formula in the cell (building the
appropriate link).


If the workbook is open, then you can use the Indirect function to build the
reference.
--
Regards,
Tom Ogilvy

wrote in message
ups.com...
I am trying to use a changing reference inside an 'index' function,
however I keep getting a '#value' error. In trying to troubleshoot,
I
simplified the formula down to this:

=INDEX('Jan 07'!$C$22&":$C$24",1)


I still get the '#value' error. Ultimately, I would like to do this:


=INDEX("'X:\Path\[Filename.xls]worksheettab'!
$"&substitute(address(1,10,4),"1","")&"$527"&":$J$ 563",1)


But I think I need to take baby steps. :) The 'substitute(address)'
part of the formula is just to get a column letter to use with the
number $527 to create a cell reference. If there is a simpler way to
do this don't hestitate to tell me. :) Also, I am trying to avoid
using the 'indirect' function.


Thanks!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,726
Default Index function with quotes and '&' sign in reference section

So what does 'Jan 07'!$C$22 contain.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



wrote in message
ups.com...
I am trying to use a changing reference inside an 'index' function,
however I keep getting a '#value' error. In trying to troubleshoot,
I
simplified the formula down to this:

=INDEX('Jan 07'!$C$22&":$C$24",1)


I still get the '#value' error. Ultimately, I would like to do this:


=INDEX("'X:\Path\[Filename.xls]worksheettab'!
$"&substitute(address(1,10,4),"1","")&"$527"&":$J$ 563",1)


But I think I need to take baby steps. :) The 'substitute(address)'
part of the formula is just to get a column letter to use with the
number $527 to create a cell reference. If there is a simpler way to
do this don't hestitate to tell me. :) Also, I am trying to avoid
using the 'indirect' function.


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
Index function with quotes and '&' sign in reference [email protected] Excel Worksheet Functions 1 February 15th 07 07:43 PM
INDEX function need to have col reference to be formula Pierre Excel Worksheet Functions 2 July 31st 06 09:54 PM
Now With Index -- IF Function Does Not Work With Cell Reference Gary Excel Worksheet Functions 2 June 26th 06 02:16 AM
Obtaining cell reference from index function MH UK Excel Programming 3 February 22nd 06 01:58 PM
Cell reference from previous index function xadnora Excel Programming 3 March 14th 05 08:10 PM


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