Home |
Search |
Today's Posts |
#12
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Optionally...
Function GetLastGroupedCols(Rng As Range) Dim Col1&, Col2& Col1 = Cells(Rng.Row, Columns.Count).End(xlToLeft).Column Application.Volatile If Cells(Rng.Row, Col1).Offset(0, -1) = "" Then GetLastGroupedCols = 1 Else Col2 = Cells(Rng.Row, Col1).End(xlToLeft).Column GetLastGroupedCols = Col1 - Col2 + 1 End If End Function -- Garry Free usenet access at http://www.eternal-september.org Classic VB Users Regroup! comp.lang.basic.visual.misc microsoft.public.vb.general.discussion |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to count the number of cells not empty? | Excel Discussion (Misc queries) | |||
Count the number of columns on row that are not empty within a ran | Excel Discussion (Misc queries) | |||
Continous number box | Excel Discussion (Misc queries) | |||
count number of non empty columns | Excel Programming | |||
Count Empty Cells in Range After Cells with Data | Excel Programming |