Sub groupRowField()
Set WSD = ActiveSheet
FinalRow = WSD.Cells(Application.Rows.Count, 1).End(xlUp).Row
FinalCol = WSD.Cells(1, Application.Columns.Count).End(xlToLeft).Column
Set PRange = WSD.Cells(1, 1).Resize(FinalRow, FinalCol)
PRange.Select
Set PTCache = ActiveWorkbook.PivotCaches.Add(xlDatabase, SourceData:=PRange)
Set PT = PTCache.CreatePivotTable(TableDestination:=Cells(1, 6), TableName:="PivotTable1")
PT.AddFields RowFields:=Array("Sales Name", "Inv Date"), _
ColumnFields:="Sales Region" ', PageFields:="Sales Region"
With PT.PivotFields("Amount") .Orientation = xlDataField .NumberFormat = "#,##0"
End With
PT.PivotFields("Inv Date").LabelRange.Group Start:=True, _ End:=True, Periods:=Array(False, False, False, False, True, False, True)
End Sub
malaysia booker Excel Pivot Table - Grouping a Row Field | |
1 Likes | 1 Dislikes |
2,060 views views | 491 followers |
Education | Upload TimePublished on 22 Aug 2010 |
Related keywords
pivot table sort,pivot table median,malaysia pargo,malaysia flight,pivot table sql,grouping rows in excel,pivot table slicer,malaysian trumpet snails,pivot table practice,pivot table calculated field,malaysian people,pivot table google sheets,pivot table count unique values,pivot table pandas,pivot table in r,pivot table sort by value,malaysia airlines flight 17,grouping_id,malaysian food near me,pivot table example,malaysian food,pivot table shortcut,malaysian hair,malaysian restaurant,pivot table weighted average,malaysia airlines,malaysian currency,grouping traduction,grouping expressions sequence is empty,malaysia 370,pivot table tutorial,pivot table excel tutorial,malaysia news,grouping sets,grouping sets sql,malaysia map,pivot table count unique,groupingby kotlin,malaysia pargo ig,groupingby,grouping lines in excel,pivot table excel,grouping sql,malaysia flight 370,malaysia airlines 370,pivot table group by month,malaysia language,pivot table not refreshing,grouping row wise data frame strips rowwise nature,grouping factor must have exactly 2 levels,grouping sets oracle,malaysia flag,grouping variation,grouping in excel,
Không có nhận xét nào:
Đăng nhận xét