Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
For a sub total in another subtotal I'm look ing for the second
selection. at the moment I'm using this code but this takes very long (it repeats 80 times for 140.000 rows in total) Does anyone have a sugestion tot select the data my second subtotal ' first selection Range("A1").Select Range(Selection, Selection.End(xlToRight)).Select Range(Selection, Selection.End(xlDown)).Select Selection.Subtotal GroupBy:=19, Function:=xlSum, TotalList:=Array(13, 17) _ , Replace:=True, PageBreaks:=False, SummaryBelowData:=True ' second selection Cells.Select Selection.Subtotal GroupBy:=6, Function:=xlSum, TotalList:=Array(13, 17), _ Replace:=False, PageBreaks:=False, SummaryBelowData:=True |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You may find creating a pivottable is quicker.
GBO wrote: For a sub total in another subtotal I'm look ing for the second selection. at the moment I'm using this code but this takes very long (it repeats 80 times for 140.000 rows in total) Does anyone have a sugestion tot select the data my second subtotal ' first selection Range("A1").Select Range(Selection, Selection.End(xlToRight)).Select Range(Selection, Selection.End(xlDown)).Select Selection.Subtotal GroupBy:=19, Function:=xlSum, TotalList:=Array(13, 17) _ , Replace:=True, PageBreaks:=False, SummaryBelowData:=True ' second selection Cells.Select Selection.Subtotal GroupBy:=6, Function:=xlSum, TotalList:=Array(13, 17), _ Replace:=False, PageBreaks:=False, SummaryBelowData:=True -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
pivottable is not an option for the client
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I Subtotal, then Sort by Subtotal Amounts? | Excel Discussion (Misc queries) | |||
pasting to subtotal lines without replacing hidden -non-subtotal l | Excel Discussion (Misc queries) | |||
Bolding the subtotal lines automaticlly When using the Subtotal fu | New Users to Excel | |||
copy subtotal value only, subtotal value can be vlookup by others | Excel Discussion (Misc queries) | |||
Subtotal of Subtotal displays Grand Total in wrong row | Excel Worksheet Functions |