CountA Question
Eliminate Pivot Table Annoyances
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: CountA Question

  1. #1
    New Member
    Join Date
    Mar 2002
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    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. #2
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    81,821
    Post Thanks / Like
    Mentioned
    12 Post(s)
    Tagged
    1 Thread(s)

    Default

    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?


  3. #3
    Rest in Peace
    Join Date
    Feb 2002
    Posts
    1,582
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    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

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 

 
DMCA.com