pivot table more than 1 column?

  • Thread starter Thread starter tango
  • Start date Start date
T

tango

dear all, may i know if pivot table column can have 2 which is weight
and prc? i tried many times but still cannot. the column is 1 on top
of another and not side by side. another thing is the vba pivotfields
can have more than 1? currently only can have price. any way to add 1
more which is weight?
pls advise.
thks


desc weight prc
abc 50 43
drf 45 90
qwe 12 50
abc 45 76
abc 33 67


ActiveSheet.PivotTables("PivotTable1").AddFields _
RowFields:="Desc"

ActiveSheet.PivotTables("PivotTable1").PivotFields("Price").Orientation
= xlDataField
 
Once the pivot table is built, go to the pivot table and select the data
button. Drag it slightly to the right (until you get some visible feeback)
and release. This should give you two columns.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

VBA Pivot Table Error 1
Format Pivot total rows 2
Pivot Table Error 1
Pivot table help 8
Pivot table 2
syntax in VBA to create a pivot table 2
Pivot Table with no "Blanks" 1
pivot and vba !!! 5

Back
Top