![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 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. |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,319
|
Quote:
|
|
|
|
|
|
|
#3 |
|
Banned
Join Date: Feb 2002
Posts: 1,582
|
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 |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|