Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default pivot table more than 1 column?

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default pivot table more than 1 column?

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.

--
Regards,
Tom Ogilvy


"tango" wrote in message
m...
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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Keep a column of comments "with" pivot table as pivot tables datachanges, causing rows to be added and deleted. Tim Richardson Excel Discussion (Misc queries) 0 August 31st 09 02:53 AM
New Column In Pivot Table Robert_DubYa Excel Discussion (Misc queries) 0 July 1st 08 08:28 PM
Pivot Table - how to add column on the same row Negda Excel Worksheet Functions 2 April 5th 08 06:57 PM
Sorting a Pivot Table Column that is not the first column... [email protected] Excel Worksheet Functions 1 October 10th 07 09:02 PM
pivot table, how to add 1 column only Daniel Excel Discussion (Misc queries) 0 July 24th 07 08:10 PM


All times are GMT +1. The time now is 11:45 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright 2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"