View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.misc
Mex Mex is offline
external usenet poster
 
Posts: 19
Default Count rows and insert number to count them.

Thanks for your help Don. n I was able to find an easier formula from an
earlier posting. Here is the link
http://www.j-walk.com/ss/excel/usertips/tip035.htm

"Don Guillett" wrote:

This is a macro. You would have to copy paste into a module and execute
using f8 or assign to a button. In your case it might be better to use the
formula suggested.

--
Don Guillett
SalesAid Software

"Mex" wrote in message
...
Sorry Don but I'm new at this. Do you mean that I need to type this all in
as
one formula?
thx
"Don Guillett" wrote:

try

Sub countnonblanks()
lr = Cells(Rows.Count, "a").End(xlUp).Row
br = Range(Cells(1, 1), Cells(lr,
1)).SpecialCells(xlCellTypeBlanks).Count
MsgBox lr - br
End Sub

--
Don Guillett
SalesAid Software

"Mex" wrote in message
...
How do I get excel to automatically count the number of rows with data
in
them and insert the row number in a colum. I don't want to count any
blank
rows.