Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Here is another solution: Sub Macro1() Dim B as Long, S, E, A B = [A65536].End(xlUp).Row S = ActiveCell.Address Do Do Until ActiveCell = "" ActiveCell.Offset(1, 0).Select E = ActiveCell.Offset(-1, 0).Address Loop A = S & ":" & E Selection = Evaluate("SUM(1/Countif(" & A & "," & A & "))") S = ActiveCell.Offset(1, 0).Address Loop Until Range(E).Row = B End Sub -- Cheers, Shane Devenshire "S Himmelrich" wrote: A macro that fills the next blank row in same column as represented below. Column A A A A N N N N [blank cell] result should be "2" - keep going A A J L F F F [blank cell] result should be "4"- keep going until you get to the end of the spreadsheet. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Count Uniques in Column, put result in next blank cell andcontinue until last row | Excel Programming | |||
Count Uniques in Column, put result in next blank cell and continu | Excel Programming | |||
Repeat entries in rows 5 & 6 into next blank column | Excel Programming | |||
Count blank cell in a column | Excel Programming | |||
Count Uniques within a list based on value of cell... | Excel Discussion (Misc queries) |