Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi, all!
There is an option in Excel to count all used rows in active sheet: ActiveSheet.UsedRange.Rows.Count I would like to count rows in one column, that is shorter then other. How do I specify certain column to count? Something like: Columns("M:M").UsedRange.Rows.Count Reg. VK |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
this will find the last cell in col M with data
Sub countm() MsgBox Cells(Rows.Count, "M").End(xlUp).Row End Sub -- Don Guillett SalesAid Software "VK" wrote in message ... Hi, all! There is an option in Excel to count all used rows in active sheet: ActiveSheet.UsedRange.Rows.Count I would like to count rows in one column, that is shorter then other. How do I specify certain column to count? Something like: Columns("M:M").UsedRange.Rows.Count Reg. VK |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Don Guillett wrote:
this will find the last cell in col M with data Sub countm() MsgBox Cells(Rows.Count, "M").End(xlUp).Row End Sub That is! Thanks! Is it possible to count rows in column with active autofilter? Reg, VK |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Have a look at the SUBTOTAL function using the count parameter
-- Don Guillett SalesAid Software "VK" wrote in message ... Don Guillett wrote: this will find the last cell in col M with data Sub countm() MsgBox Cells(Rows.Count, "M").End(xlUp).Row End Sub That is! Thanks! Is it possible to count rows in column with active autofilter? Reg, VK |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Don Guillett wrote:
Have a look at the SUBTOTAL function using the count parameter Thanks, again! It works! |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
glad to help
-- Don Guillett SalesAid Software "VK" wrote in message ... Don Guillett wrote: Have a look at the SUBTOTAL function using the count parameter Thanks, again! It works! |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Don Guillett wrote:
Have a look at the SUBTOTAL function using the count parameter I overseen, that I'm using m = Cells(Rows.Count, "I").End(xlUp).Row Cells(m + 2, 9).Formula = "=Subtotal(9,I2:I94)" I would like instead of I2:I94 m = Cells(Rows.Count, "I").End(xlUp).Row Cells(m + 2, 9).Formula = "=Subtotal(9,Cells(2,9):Cells(m,9)" Of course it doesn't work. How do I specify range in formula dynamically? Reg, VK |
#8
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
VK wrote:
Don Guillett wrote: Have a look at the SUBTOTAL function using the count parameter I overseen, that I'm using m = Cells(Rows.Count, "I").End(xlUp).Row Cells(m + 2, 9).Formula = "=Subtotal(9,I2:I94)" I would like instead of I2:I94 m = Cells(Rows.Count, "I").End(xlUp).Row Cells(m + 2, 9).Formula = "=Subtotal(9,Cells(2,9):Cells(m,9)" Of course it doesn't work. How do I specify range in formula dynamically? Reg, VK Found: Cells(m + 2, 9).Formula = "=Subtotal(9,I2:I" & m & ")" ;) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Count NonBlank Rows with Criteria in another column | Excel Worksheet Functions | |||
Count all rows in column with data, Except rows 1-5 | Excel Worksheet Functions | |||
count rows in a column for looping | Excel Discussion (Misc queries) | |||
Rows Count of a particular column | Excel Programming | |||
Rows Count of a particular column | Excel Programming |