Alternative to INDIRECT

MarkfromDorsetUK

New Member
Joined
Nov 25, 2023
Messages
2
Office Version
  1. 2021
Platform
  1. Windows
## my first post! ##

I need an alternative solution to using the INDIRECT function to pick up a specific sheet name from a tab and use it within a formula. Additionally, I want to use a named range containing the sheet names in a formula, currently SUMPRODUCTS, to sum across the selected sheet names. I have the selected sheet names in a named range currently.

Ideally I'm looking for a formula based solution as my XLS has 500 lines and 300 columns and each cell currently uses INDIRECT and SUMPRODUCTS.

The problem is fully described in sample XLS I've created - which Mr Excel doesn't seem to allow me to attach - understandably! I've uploaded a screen short showing current formula in D2 using INDIRECT and picking the sheet name up from B11 to look at the value in V8 on the sheet named in B11.
 

Attachments

  • MrExcel1.png
    MrExcel1.png
    54.2 KB · Views: 36

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Welcome to the MrExcel Board! You may be able to use an alternative approach, but what issue are you trying to address? Is the worksheet sluggish because so many volatile functions are being used? How many other worksheets need to be accessed? Are the ranges to access on those other worksheets always single cells (as shown in your screenshot). I’m not sure how to advise at the moment without more detail. You might be able to use INDEX or CHOOSE functions to effectively replace INDIRECT, or perhaps consider a UDF, but more information is needed. If you follow the link in my signature block to the XL2BB add-in, you can download, install, and then use it to post small working examples of worksheets. Alternatively, especially if XL2BB doesn’t quite convey everything you are attempting to do, you can upload the workbook to a file-sharing site (e.g. Dropbox, Box, Google Drive, etc). and share the link so that others can access the file.
 
Upvote 0
Thanks KRice. The issue is a very slow running XLS due to the volatile INDIRECT Formulae. XLS has around 45 sheets. INDIRECT is used to summarise financial results pulling data from around 38 sheets representing 38 company's. Each of two sheets where the data is summarised has 500 lines and 300 columns representing months over 5 years (COL) and profit and loss, cash flow and balance sheet lines (ROWS). A Sample XLS I've created is saved in a dropbox folder here. Please make a copy of you modify it and save into the same directory. Thanks in advance for any help!
Alternative to INDIRECT
 
Upvote 0

Forum statistics

Threads
1,215,071
Messages
6,122,963
Members
449,094
Latest member
Anshu121

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top