Formula substitution with cell reference

KGee

Well-known Member
Joined
Nov 26, 2008
Messages
532
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
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)
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

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
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,114
Messages
5,835,462
Members
430,358
Latest member
zzc1128

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
Top