Formula substitution with cell reference

KGee

Well-known Member
Joined
Nov 26, 2008
Messages
524
I have table of contents which lists all sheets in my workbook. I am trying to write a formula next to the sheet name that provides the number of items on each sheet that need to be reviewed. Basically a count of rows in column A of each sheet starting with row 5. The sheets are numbered like so but the description after each is unique.
01. abc
02. def
03. ghi
...etc

<tbody>
</tbody>

I was trying to substitute the sheet name from the table contents with a COUNTA formula using single/double quotes but couldn't get it to work. Is it possible to do something like that? And I used 10,000 for the ending row as I know the hghest total from any sheet is ~800. Thanks
Code:
=COUNTA('01. abc'!$A$5:$A$10000)
 

Some videos you may like

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Computerman

Board Regular
Joined
Mar 3, 2016
Messages
91
KGee,
If every cell in Column A (or Col B, C, D, etc) has a value in it. I would use the LastRow formula.
Code:
   lastrow=Sheet1.range("A1000").end(xlup).row
change the A to what every column you want to check. I also lessend the check value to 1000 rows. Using this formula, lastrow will
return the number of the last row that has data. Just check to see if the value returned is 5 or less, as you are starting on line 5.
HTH
Computerman
 

Watch MrExcel Video

Forum statistics

Threads
1,114,422
Messages
5,547,834
Members
410,813
Latest member
Vhinzvirgo
Top