Home |
Search |
Today's Posts |
#10
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Barry, see if this code from Bob Philips is of help. It was to me
Sub Test() Dim iLastRow As Long Dim i As Long Dim tmpSub As Double, tmpTotal As Double iLastRow = Cells(Rows.Count, "A").End(xlUp).Row tmpSub = Range("A1").Value For i = 2 To iLastRow + 1 If Cells(i, "A") < "" Then tmpSub = tmpSub + Cells(i, "A").Value Else Cells(i, "A").Value = tmpSub tmpTotal = tmpTotal + tmpSub tmpSub = 0 End If Next i Cells(i, "A").Value = tmpTotal End Sub -- HTH Bob Phillips -- Robert |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
data, sort option is grayed. how to sort on a column? | Excel Discussion (Misc queries) | |||
Pls. reply Sort Data and copy to next coulmn when sort order chang | Excel Programming | |||
Sort Data and copy to next coulmn when sort data changes | Excel Programming | |||
Sort Data and copy to next coulmn when sort data changes | Excel Programming | |||
How do I sort a column of data and have each data row sort accordi | Excel Discussion (Misc queries) |