Formula substitution with cell reference

KGee

Well-known Member
Joined
Nov 26, 2008
Messages
537
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

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
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
 
Upvote 0

Forum statistics

Threads
1,214,982
Messages
6,122,573
Members
449,089
Latest member
Motoracer88

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
Back
Top