Formula substitution with cell reference

KGee

Well-known Member
Joined
Nov 26, 2008
Messages
539
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.
[TABLE="width: 215"]
<tbody>[TR]
[TD]01. abc[/TD]
[/TR]
[TR]
[TD]02. def[/TD]
[/TR]
[TR]
[TD]03. ghi
...etc[/TD]
[/TR]
</tbody>[/TABLE]

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

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
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,224,925
Messages
6,181,790
Members
453,066
Latest member
Firemonte

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