I got the following formula
Is it possible?
Asad
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.=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)))
Is it possible?
Asad