Welcome to the Excel Forum

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Please Register to Remove these Ads

Please Register to Remove these Ads



Reply
  #1  
Old 07-04-2009, 04:14 PM
deadlyduck deadlyduck is offline
Valued Forum Contributor
 
Join Date: 31 Aug 2007
Location: SW Ireland
Posts: 273
deadlyduck is becoming part of the community
Trying to replace INDIRECT with INDEX or another function

Please Register to Remove these Ads

I am working on a spreadsheet which contains a number of reference data sheets (named “Reference data 2009”, “Reference data 2010” etc). As their names suggest, these sheets contain reference data applicable to the particular year. This reference data is used to perform various calculations in a “Calculations” sheet.
On the “Calculations” sheet, the user specifies the year for which they wish to perform calculations. At present, I am using the volatile INDIRECT function to perform various HLOOKUP calculations along the following lines:

=IF(D15>=HLOOKUP('Detailed net pay calculations'!D16, INDIRECT("'Reference data" & 'Detailed method'!$C$2 & 'Detailed net pay calculations'!D1 & "'!$B$43:$Y$52"), 4, FALSE), “Do something”, “Do something else”)


The reason I'm using the INDIRECT function is to identify the sheet with the appropriate year (hence "Reference data"&'Detailed method'!$C$2&'Detailed net pay calculations'!D1 which could be interpreted by Excel as "'Reference data 2009NEW" or "'Reference data 2010", depending on whether there's text in cell D1).

My query
The function I'm using is working perfectly fine but I am wondering if it is possible to replace the INDIRECT function (in red) with INDEX or another non-volatile function in order to reduce the performance impact (I have a fairly large number of these types of functions).

If required, I can post a stripped down version my spreadsheet.
__________________
Excel 2003 user (and starting to warm to Excel 2007)

Last edited by deadlyduck; 07-05-2009 at 01:52 PM.
Reply With Quote
  #2  
Old 07-05-2009, 12:27 PM
Bob Phillips's Avatar
Bob Phillips Bob Phillips is offline
Valued Forum Contributor
 
Join Date: 03 Sep 2005
Location: Wessex
Posts: 365
Bob Phillips has been very helpful
Re: Trying to replace INDIRECT with INDEX or another function

Across sheets, I don't think it is possible.
Reply With Quote
  #3  
Old 07-05-2009, 01:51 PM
deadlyduck deadlyduck is offline
Valued Forum Contributor
 
Join Date: 31 Aug 2007
Location: SW Ireland
Posts: 273
deadlyduck is becoming part of the community
Re: Trying to replace INDIRECT with INDEX or another function

OK- thanks for that Bob- it looked not possible but just thought I should check.

I'll mark this as solved
__________________
Excel 2003 user (and starting to warm to Excel 2007)
Reply With Quote


Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump