CountA Question

brucew

New Member
Joined
Mar 23, 2002
Messages
4
I have the following set of data:
A B C D E F G
1 a e t q t

What I would like to do is output a counta in cell A1 using variables. I would also like this counta to dynamically update as I delete or add to the cells. I have tried to add just a string variable into counta but it does not work. Any suggestions would be greatly appreciated.
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
On 2002-03-24 17:33, brucew wrote:
I have the following set of data:
A B C D E F G
1 a e t q t

What I would like to do is output a counta in cell A1 using variables. I would also like this counta to dynamically update as I delete or add to the cells. I have tried to add just a string variable into counta but it does not work. Any suggestions would be greatly appreciated.

Care to elaborate a bit more? COUNTA just counts every non-empty cell in the range it's given. Are you trying to variablize where its range ends?
 
Upvote 0
Hi Bruce

Do you mean COUNTIF? If so just use:

=COUNTIF(MyDynaRange,B1)
Where B1 could also contain a list from the Validation feature found under Data. The named range MyDynaRange is a dynamic named range that expands/contracts automatically as you you add/delete to/from the range. I have many diferent types of these to be found here:
http://www.ozgrid.com/Excel/DynamicRanges.htm
 
Upvote 0

Forum statistics

Threads
1,214,553
Messages
6,120,182
Members
448,948
Latest member
spamiki

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