View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sing Chung Sing Chung is offline
external usenet poster
 
Posts: 1
Default using worksheet name in a formula but not current worksheet

I have a workbook that has 1 worksheet for everyday of current month. So for
July, it has worksheets 1, 2, 3,....31. The name of worksheets correspond to
the date, i.e., 1, 2, 3...31. I have a summary worksheet to do calculation,
in column 1 I put in the dates 1, 2, 3...31, formatted to display "dd". Then
in other columns I put in the formula to do the calculation, sample:
1 =COUNTIF('1'!$E$4:$E$600,"No") =COUNTIF('1'!A4:A600,"0")
2 =COUNTIF('2'!$E$4:$E$600,"No") =COUNTIF('2'!A4:A600,"0")
3 =COUNTIF('3!$E$4:$E$600,"No") =COUNTIF('4'!A4:A600,"0")
4 =COUNTIF('4'!$E$4:$E$600,"No") =COUNTIF('4'!A4:A600,"0")

My question is how do I make these formulae dynamic, so that the worksheet
name can be referred to the cell in column A, instead of manually put in 1,
2, 3, 4...? Something like: =countif('A2'!$E$4:$E$600,"No").