Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All,
I am sure this is the easiest thing in the world, but I cannot find the command. I have about 20 columns, with random numbers of entries in each column. I need a command to count the items in each column and store each count in a seperate variable. I have the loop setup and the variables, I just need the command to count the items. Thanks in advance, Chad |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The following will store the count of the non blank cells for the first 20
columns of the active worksheet: Dim myArray(1 To 20) As Integer Dim I As Integer For I = 1 To 20 myArray(I) = Application.CountA(Columns(I)) Next Bob Flanagan Macro Systems http://www.add-ins.com Productivity add-ins and downloadable books on VB macros for Excel "Chad" wrote in message ... Hi All, I am sure this is the easiest thing in the world, but I cannot find the command. I have about 20 columns, with random numbers of entries in each column. I need a command to count the items in each column and store each count in a seperate variable. I have the loop setup and the variables, I just need the command to count the items. Thanks in advance, Chad |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks
"Chad" wrote in message ... Hi All, I am sure this is the easiest thing in the world, but I cannot find the command. I have about 20 columns, with random numbers of entries in each column. I need a command to count the items in each column and store each count in a seperate variable. I have the loop setup and the variables, I just need the command to count the items. Thanks in advance, Chad |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can you count items in a column by color? | Excel Discussion (Misc queries) | |||
SUMPRODUCT to count items with duplicates where another column contains two defined items | Excel Worksheet Functions | |||
How do I sort - and count - items in a column? | Excel Discussion (Misc queries) | |||
How do I count the items in one column if another column is blank | Excel Worksheet Functions | |||
Count number of items in one column that have a value in another? | Excel Worksheet Functions |