Hi,
I'm new to using the Indirect function within Formula, and I am currently having the following problem.
I have a workbook containing a worksheet for each week of the year starting from week 18 (Week 18, Week 19, Week 20 and so on) which are identical. The is also a 'Summary' worksheet.
Within a cell on the 'Summary' sheet I have the following IF formula which returns the correct data;
=IF(OR('Week 18'!D7="OFF",'Week 18'!D7="HOL",'Week 18'!D7=" ")," ",'Week 18'!D7)
However I now wish to change this and make all occurances of 'Week 18' become 'Week' & what ever week number is entered into F5 on the summary worksheet, depending on which week it is. I beleive this can be done with the use of Indirect function within the formula, something like this;
=IF(OR(INDIRECT(('"Week"&F5&"'!D7)="OFF"),INDIRECT(('"Week"&F5&"'!D7)="HOL"),INDIRECT(('"Week"&F5"'!D7)=" ")," "),INDIRECT('"Week"&F5&"'!D7))
But no matter how many times I try to write the formula or move the ()!'"" characters the formula always returns #REF!.
If anyone has any suggestions on how I can correct this it would be greatly apprecaited.
Regards
I'm new to using the Indirect function within Formula, and I am currently having the following problem.
I have a workbook containing a worksheet for each week of the year starting from week 18 (Week 18, Week 19, Week 20 and so on) which are identical. The is also a 'Summary' worksheet.
Within a cell on the 'Summary' sheet I have the following IF formula which returns the correct data;
=IF(OR('Week 18'!D7="OFF",'Week 18'!D7="HOL",'Week 18'!D7=" ")," ",'Week 18'!D7)
However I now wish to change this and make all occurances of 'Week 18' become 'Week' & what ever week number is entered into F5 on the summary worksheet, depending on which week it is. I beleive this can be done with the use of Indirect function within the formula, something like this;
=IF(OR(INDIRECT(('"Week"&F5&"'!D7)="OFF"),INDIRECT(('"Week"&F5&"'!D7)="HOL"),INDIRECT(('"Week"&F5"'!D7)=" ")," "),INDIRECT('"Week"&F5&"'!D7))
But no matter how many times I try to write the formula or move the ()!'"" characters the formula always returns #REF!.
If anyone has any suggestions on how I can correct this it would be greatly apprecaited.
Regards