Indirect…?

How_Do_I

Well-known Member
Joined
Oct 23, 2009
Messages
1,843
Office Version
  1. 2010
Platform
  1. Windows
Hello all,
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p> </o:p>
I have my data set out in the format below:

Excel Workbook
BCDEFGHIJ
42009-20102008-2009Order
5Home09Away09Date09Home08Away08Date082009 - 2010
6DataDataDataData1Data1Data12008 - 2009
7DataDataDataData1Data1Data1
Sheet1

<o:p> </o:p>
The highlighted cells are named ranges…
<o:p> </o:p>
I’ve used INDIRECT a lot in my workbook and it is slow to say the least…
<o:p> </o:p>
INDIRECT and other functions sorted my data by current year down to oldest year.
<o:p> </o:p>
So, when I add this years data I paste it over the oldest data, formulas will change the name in the highlighted cells so all I need to do is re-name the ranges to have my book work.
<o:p> </o:p>
<o:p>
Excel Workbook
BCDEFGHIJ
42009-20102010-2011Order
5Home09Away09Date09Home10Away10Date102010 - 2011
6DataDataDataData3Data3Data32009 - 2010
7DataDataDataData3Data3Data3
Sheet1
</o:p>
<o:p></o:p>
Can anyone see a way of doing this without INDIRECT please… I was thinking perhaps CHOOSE but I just can think how to get this started…
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
I didn't forget to post them Jason, I was lokking for ideas or alternative methods. I wouldn't know which formula involving INDIRECT to send, my book is full of the them...

Shall I sent you a copy of this book so you get a better idea?
 
Upvote 0
Just a couple of examples would give an idea, sometimes INDIRECT can be replaced with something more efficient, but not always, it depends how it's being used.

As an alternative to changing a load of formula, have you considered manual calculation?
 
Upvote 0
I was lokking for ideas or alternative methods

To do what exactly?
You're description is a bit vague to say the least.

You posted 2 screenshots, but they don't appear to be Before and After..

Please show a screenshot of the Source Data and a Screenshot of your expected formula results.
 
Upvote 0
Jason here are some formulas from one of my sheets...

I use the last two digits of a year to "title my ranges"...

Then formulas use INDIRECT to get the data.

Excel Workbook
F
3Season
42009 - 2010
5
6Code
709
810
All Seasons


Excel Workbook
C
26Watford
27WBA
28
29Home09
All Seasons
#VALUE!
</td></tr></table></td></tr></table>
 
Upvote 0
It looks like you're building "Named Ranges" in certain cells, and Indirect is referring to those named ranges...

If so, I don't see any other way to do that specifically.


Generally speaking, if you need to build sheetnames or named ranges with variables, then Indirect is the only way without VBA.
 
Upvote 0
Who provided the named range formula?

Looks like one of Aladin's, so chance of finding a more efficient non VBA solution will be somewhere between extremely remote and non-existant.
 
Upvote 0
No idea where I found the formula. However, I am now using one that Aladin definitely gave me to extract a unique list alphabetically. I've also dropped the naming of ranges by year i.e. Home09, Home08 and just called that range Home1 Home2...<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p></o:p>
I ended up using CHOOSE to get my data from the correct year block... An average time of 70 second to complete a full calculation has now been reduced to 14 seconds...with the removal of 11,175 instances of INDIRECT in my book!!! :confused:<o:p></o:p>
 
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,253
Members
452,900
Latest member
LisaGo

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