Help with indirect function

asad

Well-known Member
Joined
Sep 9, 2008
Messages
1,434
I got the following formula
=IF(INDEX('Leave Approved'!$I$15:$IA$220,MATCH($A16,'Leave Approved'!$I$15:$I$220,0),MATCH(O$2,'Leave Approved'!$I$4:$IA$4,0))=1,-1,IF(OR((TODAY()+7-WEEKDAY(TODAY(),2)) < O$2,ISERROR(VLOOKUP($A16,'[Footscray Roster 15th May 2011TrialAli.xls]Weekly Roster'!$BF$8:$BG$202,2,FALSE))),"",VLOOKUP($A16,'[Footscray Roster 15th May 2011TrialAli.xls]Weekly Roster'!$BF$8:$BG$202,2,FALSE)))
The part in red need to be replaced by indirect function or something similar so that it convers the date in cell O2 in a way that formula still works.
Is it possible?
Asad
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Are you going to be having several workbooks like that referenced at the same time?

Or is it that you want to point all your formulas at a new source file in one go?
 
Upvote 0
I will have lot of workbooks in fact one workbook for every week. I need my formula to look at the respective files to pick up the required information.
The row 2 is filled with dates in each cell. The dates are all week ending dates and it will be same in the workbook name. All workbooks will have weekending date as part of their name.
That's why I want to reference like this.
Asad
 
Upvote 0
INDIRECT will work if you are willing to have all referenced workbooks open at the same time. Otherwise you will need a third-party add-in, like MOREFUNC add-in by Laurent Longre. MOREFUNC had a function named INDIRECT.EXT that does exactly what you want ... are you allowed to load add-ins?

http://xcell05.free.fr/downloads/Morefunc.zip
 
Upvote 0
I am allowed to download addins but the problem is that this file will be used at different location and they may not have that addin in all the computers.
Is there any other way like any other function or VBA or something that will get the data from those files?
 
Upvote 0
Hello Glenn,

I am trying to work out how to use that addin you suggested. Here is a post of the worksheet.
Excel Workbook
ABCDEFGHI
1RDO As OnRDO As On
230/03/201129/05/201124/04/20111/05/20118/05/201115/05/2011
3DF064ADDERLYADDERLY, David Allan40:00:0052:00:000
4DF002ADDICOTTADDICOTT, Steven Charles20:00:0032:00:000
5DF078AGGETTAGGETT, Brian Charles30:00:0042:00:000
6DF129AKHTARAKHTAR, Tahir Mamhood15:00:0027:00:000
7DF032ALBOUSWEILEMAL BOUSWEILEM, Mostafa40:00:0052:00:000
8DF012ALATSASALATSAS, Dimitrios20:00:0032:00:000
9DF136AMARASINGHEAMARASINGHE, Lakshman15:00:0027:00:00
10DF019AMATYAAMATYA, Raj Bahadur40:00:0052:00:000
11DF125ANTONOVICHANTONOVICH, Glen Anthony20:00:0032:00:000
12DF021ARDONARDON, Moises15:00:0027:00:000
13DF116AWADAWAD, George40:00:0050:00:00-1
14DS001AWADAWAD, Michil20:00:0032:00:00
15DF134BACH. DBACH, Dominique Thanh Tan30:00:0042:00:000
16DF004BACH. RBACH, Hung Tan15:00:00#REF!#REF! 1
RDO


Can you please tell me what is wrong with the formula? The answer should be 1 for both H column and I column. But it comes blank with indirect.ext function.:banghead: I have tried and tried but it comes back as blank.
Any help will be appreciated.

Asad
 
Upvote 0
I just found out the formula is working but only when the source workbook is open.
But, indirect.ext function is supposed to work with the closed workbooks as well.
How can I fix this problem?
Any ideas anybody??????????
 
Upvote 0
Why are you entering these formulas as arrays?
 
Upvote 0
I thought that that's the way to work with it. As you can see the whole formula includes working with index function as well as with vlookup function. So entred it as an array formula.
If I enter it as a normal formula, it gives me #N/A.
 
Upvote 0

Forum statistics

Threads
1,224,585
Messages
6,179,706
Members
452,939
Latest member
WCrawford

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