Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
putting count of the number of rows at the bottom
I have the following lines in a macro that puts the sums of number in column
J at the bottom of all the rows. I want to put the count of rows on the same row as the sums for column J, but in column D. How do I do that? lastrow = Cells(Rows.Count, "J").End(xlUp).Row Cells(lastrow + 1, "J") = Application.Sum(Range(Cells(2, "J"), Cells(lastrow, "J"))) |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Count Number of Rows | Excel Worksheet Functions | |||
COUNT NUMBER OF ROWS | Excel Worksheet Functions | |||
Count how many Rows ago a particular number was hit | Excel Worksheet Functions | |||
Count number of rows, where non relevant rows are hidden | Excel Discussion (Misc queries) | |||
Count rows and insert number to count them. | Excel Discussion (Misc queries) |