If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > pivot table custom subtotal

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-11-04, 14:36
msequeira msequeira is offline
Registered User
 
Join Date: Feb 2004
Posts: 2
pivot table custom subtotal

I have a pivot table with 3 columns, I would like to generate another pivot table by subtotalling according to the first 3 numbers in the first column.

For example: Existing Pivot Table

Code Description Amount
4107100 MEDITECH SERVER SUPPLIES $255.00
4109200 OFFICE SUPPLIES $22,973.68
4109210 OFFICE EQUIP<$500 $22,766.42
4150000 HSKPG SUPPLIES COMB $9,272.77
4151000 DISP PAPER SUPPLIES $11,991.61
4152000 CLEANING AGENTS $22,431.00
4200000 LAUN.SUPPL.COMBINED $326.12
4201000 DETERGENTS/SOAPS ETC $19,908.22

I would like to subtotal by the first 3 digits. End result would look like:

Code Amount
410 $45995.0996
415 $43695.377
420 $20234.34

If anyone has any ideas/code it's greatly appreciated.
Reply With Quote
  #2 (permalink)  
Old 02-12-04, 01:23
kengi2 kengi2 is offline
Registered User
 
Join Date: Jul 2003
Posts: 7
just an idea no expert here, but would you be able to use the left function to seperate out the first 3 characters of code in the table.

if would be like =left(b2,3)
this assuming that code starts at b2 and just drag down. This would provide you with an extra field that would have to be named. but it could be used in the page field property of your pivot table or dragged around the pivot table to whatever view you would like
Reply With Quote
  #3 (permalink)  
Old 02-12-04, 01:29
kengi2 kengi2 is offline
Registered User
 
Join Date: Jul 2003
Posts: 7
forgot to attach this file without macros
Attached Files
File Type: zip possible solution.zip (8.7 KB, 31 views)
Reply With Quote
  #4 (permalink)  
Old 02-16-04, 18:20
msequeira msequeira is offline
Registered User
 
Join Date: Feb 2004
Posts: 2
Thanks for that idea and the example - great I'll use it.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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