CountA() with cell reference.

welshgasman

Well-known Member
Joined
May 25, 2013
Messages
1,332
Office Version
  1. 2007
Platform
  1. Windows
Hi all,
I have a workbook, that we are going to use as an address book for the local community car scheme I volunteer for.
There are tabs for each character of the alphabet.

I want to create a Stats sheet that shows quickly how many are on each sheet.
So in the stats sheet column A, I have values A to Z by using formula =CHAR(ASC(63+ROW()))

I now want to add in column B the COUNTA() of each particular sheet, but refer to cell in column A for the sheet name.

I cannot get the concatenation correct. I have tried = & "COUNTA(" & A2 & "!A:A")-1 and a few other permutations, but just get an error message.
Is it possible to refer to a cell value like this?, and if so, what is the syntax please.?

I know I could just hard code it, as there are only 26, but the logic could come in useful in the future.

TIA
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

Forum statistics

Threads
1,216,159
Messages
6,129,210
Members
449,493
Latest member
JablesFTW

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