Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Excel


More Than One Column In Pivot Table

my table has the following fields: Zone (north, East, west, south), depots in each zone (D101, D102 in North and D201, D202 in South),product code (S101, S102...S100) then sales data for three stores 1, 2, 3.

My original table has the depot code, zone it belongs to and sales of each of the product made to each of the store per depot.

In the Pivot table, I shall need to show Branch and the Product codes on the row-side, and require store codes 1,2,3 to appear on the columns. The data area thus needs to be a summation of D101, D102 for North (for each of the product-codes) and D201, D202 for the South region.


I am unable to display 1,2,3 as separate columns.

View Complete Thread with Replies

Sponsored Links:

Related Forum Messages:
Pivot Table Column Alignment
I feel stupid asking this, but for some reason I am having trouble keeping alignment of columns in a Pivot Table....

I have a Column of text in a pivot table and I am just trying to center the darn thing... but no matter what I have tried, when I refresh the table it goes back to left-aligned....

I have Preserve Formatting set on... in the Table Options.

View Replies!   View Related
Description Column In Pivot Table
I often use pivot tables to summarize accounting data. I wish to summarize the data by account number, but also wish to display the account description next to each account number. Both the account number and account description are separate columns in my original table of data.

I've always managed to do this by the use of lookup formulas after the formation of the pivot table in a column outside the pivot table, but it would be preferable to have those descriptions as part of the table.

If I designate both the account number and account description as row labels, they land on two different lines.

View Replies!   View Related
Maximum Value In A Column In A Pivot Table
I am new to working with Pivot tables, and am working on a data set of survey results. We'd like to build a heat chart into the pivot tables for each column of data. To do this, I need to determine what the maximum and minimum values in each column are, and base the cell coloring on the difference between min and max values by quartile. Ideally, this would be able to update when the column headers change (from a list of departments, to countries for instance).

View Replies!   View Related
Pivot Table And Column Headers
I want to include columns in my Pivot Table where there is no data for that column. For example, I want to show 12 columns, one for each month, but my data only has 9 months of values.

View Replies!   View Related
Create Pivot Table: Cannot Open Pivot Table Source File
I'm trying to write a macro that will create a pivot table, and am getting an Error code 1004: Cannot Open Pivot Table Source File "Sheetname". My code is below. I've tried to note what each section does, and it all seems to work well except for the Pivot Table creation.

View Replies!   View Related
Pivot Table Query: Make A Pivot Table To Summarise The Data
attached is a spreadsheet 6 people in my area use daily(ive copied and pasted the sheet in question to a new worksheet, as the file was too big). Ive been trying for about 3 days now to make a pivot table to summarise this data.

View Replies!   View Related
Search Value In Column However To Refresh Pivot Table
Basically my search value is in B4 however to refresh pivot table
this is fine when I enter plain text within B4

I have trouble with an vba code using pivot tables

Private Sub Worksheet_Change(ByVal Target As Range)
'set handler for unexpected issues
On Error GoTo Fatality
'exit unless cell altered is that pertaining to the PT Page Field
If Target.Address(0, 0) "B4" Then Exit Sub
'validate selection
Select Case IsError(Application.Match(Target.Value, Sheets("DATA").Columns(2), 0))
Case True
'invalid selection
MsgBox Target.Value & " Invalid Store Number - PT Not Refreshed & Selection Reset", vbCritical, "Error"
Application.EnableEvents = False

View Replies!   View Related
Insert A Frequency Column In My Pivot Table
I want to insert a frequency column in my pivot table. See frequency.jpg for an example.

The column has to count the number of times "artikel" is represented in the pivot. Is it possible to do this in a pivot table, and if so, how?

View Replies!   View Related
Pivot Table Exceeds Row/Column Limit
Apart from the obvious restriction imposed by the virtual size of a spreadsheet,are there any other factors that would induce a problem with size. I have a set of data with 3000 rows and 15 columns. I would like to organise this using 5 of the data columns as rows in the pivot, 1 as column and 1 as data.

I have a number of sets of data which work perfectly, but one set, the largest, fails when I attempt to add the data field.

View Replies!   View Related
Pivot Table Dynamic Range, Last Used Cell Not Same Column
I've got two pivot table reports working off one dataset.

I've named the range Recharge with the formula as below..

=OFFSET('Recharge'!$A$1,0,0,COUNTA('ABC Recharge'!$A:$A),16)

But this uses column A as the longest column... but sometimes it will be column I - how can the formula be adapted ? or can it be ? i've been looking at the Max function and trying to incorporate that but my limited brainpower has gone to mush.

View Replies!   View Related
Pivot Table Fields, Based On Column References
I have a pivot table which draws data automatically from a database

What I would like it for the customer field of the pivot table to only equal the customers which are present in another worksheet (Column A:A)

View Replies!   View Related
Change The Date On One Of The Pivot Table And Pivot Table Match
I have data that develops 3 to 4 pivot table each day. I would like to know if there is a way to change the date on one of the pivot table and have the other pivot tables date change to match with the first pivot table. At this time I am going to all 3 or 4 pivot table to select the correct date. The date is in the page position of the pivot table. I have attached a small sample of the data and the pivot tables.

View Replies!   View Related
Months To Be Sorted In Ascending Order In Pivot Table, Want To Use Multiple Colors In Pivot Charts
My input data for Pivot table has a column named "Month". The month values are like April 07, April 08, Nov07 in random order for period between Jan 07 to Aug 08.

When I create a pivot Table, this column is sorted alphabetically (April 07 is followed by April 08) but I need it to be sorted in the ascending order with respect to month (April 07 is followed by May 07).

I further use this data to plot a Pivot Chart. There is another issue here. I want to use separate colors for each series. I do not know how to achieve above 2 things.

View Replies!   View Related
Refresh Pivot Tables Linked To Pivot Table
I currently have several pivot table that's linked to a single pivot table(let's call it X) in the same workbook. I'm doing this to limit the file size because the data in X comes from a text file that has millions of lines. However, it's such a pain every time I need to update the tables because simply clicking "refresh" does not update those tables that are linked to X with new data. I would have to instruct the wizard in every linked table to point to X every time. I'm trying to write a small program to re-point to X for each of those other pivot tables whenever i refresh data. However, after trying to record the steps to do this I'm still unable to run these

Sub Macro1()

ActiveSheet.PivotTableWizard SourceType:=xlPivotTable, SourceData:= _

End Sub

View Replies!   View Related
Pivot Table Based Off Multiple Pivot Tables
Is it possible to create pivot table from another multiple pivot table.

Example: I have two diff pivot table "Income" and "Expense" as well
and I need to preapare new pivot table using with those two pivot table

View Replies!   View Related
Change/Move Pivot Table Row Field To Column Field
In building my pivot table my data that I want to show in the column area is showing up as rows stacked on top of each other. In the column section I'm trying to show Total Budgeted Amount next to Total Actual Amount but on the layout it's showing the two stacked on top of each other is there some kind of hidden key that I'm missing?

View Replies!   View Related
How To Mimic A Pivot Table Without A Pivot Table
I have a list of items and their associated quantities, many items appearing multiple times. I need a concise list that summarizes each item and sums all of its quantities.

The obvious solution is a pivot table. However, I update this list frequently and for some reason the pivot table is difficult to update. is there a function or simple vba code that I could put into this workbook that would work better than my unflexible pivot table?

View Replies!   View Related
Pivot Tables: Pivot Table Layout
if there is a way to display a table as column percentages but have the totals as raw numbers.

View Replies!   View Related
Count Pivot Fields In Pivot Table
I am trying to find a way to count the total number of pivot fields in a pivot table so I can remove ghost pivot items that are no longer in the pivot table data. My code for this subroutine is as follows;

Sub RemoveGhostPivotItems()
Dim ghost As PivotItem
Dim pt As PivotTable
Set pt = ActiveSheet.PivotTables(1)
pt.ManualUpdate = True
For Count = 1 To 10
On Error Resume Next
For Each ghost In pt.PivotFields(Count).PivotItems
Next ghost
Next Count
pt.ManualUpdate = False
End Sub

My code makes an assumption that I have 10 Pivot Fields or less. It would be nice to actually know the number of Pivot Fields so my "For Count" Loop would be more efficient. In otherwords;..............

View Replies!   View Related
Import Data From Access Table To Pivot Table - Enable Auto Refresh
I have enable Refresh on Open for my excel pivot table, but user need to click "Enable Automatic Refresh" , only solution i came across is to change the registry setting. Which i dont have access to edit registry(admin disable the access).

Alternate solution i try to use Access macro to automate the process and use Outputto save it as a excel file A. Then use excel file B to update pivot table from excel file A.(as excel A data is always latest)
The problem is i will get "....A file name already you want to overwrite.." prompt.
Which defeat the automate process.

Any other solution to enable the automatic refresh on open the excel workbook?

Or Access can overwrite the exist file or save it as another file name with timestamp ?

View Replies!   View Related
Find Largest Invoice For Each Individual Identifying Code Number In The Table Without Using A Pivot Table
Data Table including-

List of Identifying Code Numbers for customer invoices

Multiple repetitions of individual Identifying Code Numbers in list

Various data in table range including Various Values of invoices from different dates for each repetion of Identifying Code Number.

- Wish to find largest invoice for each Individual Identifying Code Number in the table without using a pivot table.

i have tried combining Max and Large functions with Vlookups etc.

View Replies!   View Related
Apply A Filter In A Pivot Table And Extract Results In A Table
I have made a pivot table and I dlike to identify with a macro the documents with net value over 1000. Then extract these values next to the respective sales documents in an are near the pivot table somewhere. The fields are called Document and Sum of Net value. Of course the pivot is very variable one time it has 3000 records and another 5000.

View Replies!   View Related
Pivot Table An Extract Of Each Data Contained In This Table
i have a pivot table an extract of each data contained in this table.

[img]Count of NAMdate
SERVICENAM12-oct10-déc11-décGrand Total
Commercial-laura Totalgh11

custody-jonathan Totalgh1113

settlement-ludovic Totalgh11

SPQC-elodie Totalgh112

Grand Total1337

View Replies!   View Related
Pivot Table: Table That Shows As A Header The URL
I want for my set of data. The attached .xls is pretty straight forward: the first column is a list of people (identified by their customer number) and the second column is the URL they visited.

Since many people went to multiple pages, there are dupes between the two columns, but all of the rows are unique. What i am looking for is a table that shows as a header the URL (just one) and then the list of people that went to that URL under the header. So it's really just one column of information. It seems like a perfect task for a pivot table.

View Replies!   View Related
Pivot Table With Dynamic, Updatable Chart, But Not A Pivot Chart!
My boss wants me to design a dynamic, updatable chart in Excel 2003. I initially made a Pivot Chart based on a Pivot Table which worked perfectly, but it doesn't look professional enough when printed (or viewed) and she wants me to approach it a different way.

So, I created a graph based on the data in a Pivot Table, and used dynamic ranges as the source for the graph series so that the chart updates when the criteria fields are changed for the Pivot Table. I then added two combo boxes (ie data validation lists) to the Chart sheet, and wrote VBA code so that whenever the combo box values are changed, the Criteria fields for the Pivot Table on the 2nd sheet are updated accordingly, and this in turn causes the graph to be updated as well.

This solution also worked perfectly, but now I've been told to create the graph without macros.

Does anyone have any suggestions? The requirements/details are as follows:

1. The Pivot Table is on sheet "PIVOT", and the graph is on sheet "GRAPH"
2. The Pivot Table has two criteria - School Name and Year Level
3. On sheet "GRAPH" there are two data-validated fields, School and Year, which only allow the selection of valid Schools and Year Levels

Is there any way to make the Pivot Table update when values are changed in the fields on the CHART sheet so that the chart also updates, but without using code nor a Pivot Chart?

View Replies!   View Related
Pivot Table Pop Ups
I have some code that creates a pivot table the only problem is that two small windows keep poping up on the screen, I thought I could use the Application.DisplayAlerts = False at the begining of the script to disable those windows?

The windows that pop up are Pivot Table and pivot table field list.

View Replies!   View Related
% In A Pivot Table
I am trying to add a column to a pivot table that shows the percentage of another column.

I have Sales and Returns listed for my company's products in the pivot table columns.

Lets say the numbers are: Sales are 10 and returns are 4. I show both columns and want to add a 3rd column that shows 40% (4/10).

Does anyone know how to do this in the pivot table? There are plenty of percentage options, but none to do this simple one.

View Replies!   View Related
Add Pivot Table With VBA
The macro does the following:

- Sort products on Partno.
- Per partno, export the file to a new file with an auto name.

I now tried to add a function so in a new workbook it would create
a pivot table. which is easyer for our customers. But the debugger keeps
hammering on the line just beneath the line: With New WB

Sub SplitToNewWorkbooks_CD()
Dim NewWB As Workbook
Dim UR As Range, UniqueList As Range, f As Range
Dim myPath As String, Partno As String
sDate = Replace(FormatDateTime(Now(), vbShortDate), "/", ".")
Application.ScreenUpdating = False
myPath = ThisWorkbook.Path & ""
With Sheets("file")
Set UR = .UsedRange.................

View Replies!   View Related
Value 0 In A Pivot Table
This dataset I have has empty cells, but there is a formula in these cells.

When I make a PT from that dataset, the cells which are empty in the dataset do show up in the PT, as zero's.

Say in the first column of the table are employees, in the second column is a number that is of interest. I want the employees with a number of interest that has value of zero not to show up.

Is there a way to leave those rows out of the table?

View Replies!   View Related
Pivot Table Max Value
I have a number of values for a particular places,
-say, 'A' has 5 values named 1 2 3 4 5 each with a value and 'B' has 3 values names 6 7 8 each with a value and so on.............

-If I use a pivot table to give me the max valuesit will for return the largest value for A, B and so on.

However I also want to know for A, which one is the largest 1 2 3 4 or 5? and for B, 6 7 or 8? and so on.

Basically, is it possible for pivot table return the location of the Max value as well as the max value?

View Replies!   View Related
Pivot Table(VBA) In SAS
I am a green hand in VBSCRIPT. The following code by VBSCRIPT is to
automatically produce Pivot Table for the rawdata below. Actually, both code
and data are generated by SAS. But I always meet problems in process the
VBS code.


View Replies!   View Related
Refresh Pivot Table VS Refresh Pivot Cache
Will someone please tell me the difference (if there is a difference) between the following 2 lines of ....

View Replies!   View Related
Pivot Table - Subtotals
I have a seemingly very simple question but even though I've worked a lot with pivots I can't find the answer.

clientcode Amount countries
a1 1.000,00 kenia
a2 2.000,00 kenia
b3 1.000,00 kenia
b4 3.000,00 kenia
b5 2.000,00 kenia
c5 1.000,00 senegal
c6 3.500,00 senegal
c7 4.000,00 senegal
c8 5.000,00 senegal

Lets say I have a list like this and I want to count the number of clients (3) or countries(2).

I can only get the total of rows per client but not the subtotal 3 for the number of clients.
a - 2
b 3
c - 4

View Replies!   View Related
Pivot Table - Percentages
I am trying despeartely to finish this out. Here is the deal. I created a pivot table (see attached). The issue is that I need the numbers in the red boxes to be a percentage of the total number below - so the 2 should be a percentage of the 9 (22%) and the 3 should be 100% and the 7 should be 78%. I cannot seem to get this to work. Also, there are multiple rescue groups that need this and each needs to be the % of its own total number of animals.

View Replies!   View Related
Pivot Table :: How To Get The % Data Above A Particular Value
I have a excel sheet with following 4 columns

Division Name:

Location Name:

Transformer capacity:

Transformer earth resistance:

Now how can I get answer of following queries in Pivot table. (Excel 2007)

1. % of a particular capacity of transformers in a division say % of 400 capacity transformers in all divisions.

2. % number of transformers having Transformer earth resistance value above a particular value in all divisions. Say % of Transformers having Transformer earth resistance above 2.6 in each division.

View Replies!   View Related
Pivot Table Uses Raw Data
I'm using Excel for bookkeeping and balancing a budget. I've created one sheet for all my raw data and the other is to summarize the data using a pivot table. On the raw data sheet I have labeled my columns for the pivot table. I was hoping that in the pivot table I can select a year and have all the months for that year and data of that year be available, but not other years. I was also trying to have only the month selected of a year selected and that data be available. I also wanted to show an accounting of money spent by item.

Instead, I have a pivot table that is confusing and very unattractive. The example of this will show my limited knowledge in pivot tables. I'm hoping some of you more affluent "guru" members may be able to help me get something usable and presentable.

I tried creating a dynamic named range for the pivot table "BookKeeping" and a dynamic named range for the money out and money in "Accounting", but I'm not sure if I did that right. I did this because more columns will be added over time. This is the reason I'm asking the above two paragraphs.

Should I be using filters some how?

The Summary Sheet also has the balance of available funds that I'm somehow looking to include in this pivot table. Can the pivot table keep a running balance?

View Replies!   View Related
Sorting In Pivot Table
I have created a pivot table that contains the following data:

Country Name
Date as in 5/1/08, 6/1/08, etc
With counts in the cells

I can sort on Country name and get an alphabethical list by country name showing teh numbers for each date

However I want to sort by the largest to smallest number that shows in the date column 01/01/08

Is there a way to sort on that colum-while moveing all the numbers in the other date columns along with it?

View Replies!   View Related
Pivot Table - Just Certain Subtotals
I can't find a way to display "just" subtotals which are > 500k ..

View Replies!   View Related
Count In Pivot Table
I have created a pivot table from a spreadsheet that had around 27 rows for each employee (i.e: each paycheck the employee received). The pivot table turned out great, but I need to know how to make it count how many employees are in each department and show it in the table.

View Replies!   View Related
Alternative To Pivot Table
I have a worksheet that has 5 columns of data, all of which are text. I am looking for a way to present/display the data in a manner similar to that of a pivot table. I'm pretty sure an actual pivot table is no good to me since I'm dealing with text, but I'm looking for something that is functionally the same.

In other words, I would love to be able to "pivot" my data and display the different relationships between the different columns. If a pivot table would display text in the "data items" field, that would be perfect..

View Replies!   View Related
Pivot Table- Sumif
I was wondering if any one could guide me how to use SumIf or any other functions while creating a pivot table from excel data in a very presentable manner.
The data shows - sales in qty to various customers for the month of may. Important columns need to be reported are Item, Qty.
On the second tab (in the attached sheet) i am showing the format how i want. I need to sumif by item code and put the total in the respective company column. I could manually do this by SumIf but if I want to do this for month by month for 4 months then how would i do it quickly.
Is there an easy way report for 4 month's comparative figures to make an analysis to see whihc company orders whihc product and the so on.

View Replies!   View Related
Create Pivot Table In New Tab With New Name
1) I want to create a pivot table in a new tab that has both the prefix “ENG” and the date of creation as the new name of the tab every time a new table is required, using the example headers highlighted in the attached file.

2) Then if possible format the table as in the example, i.e. bordered cells for all the data and the dates only aligned to the right. Example in tab “Eng 01 05 09”

No 1 is the most import question I would like help on. Formatting is not crucial. This is only to make the table easier on the “eye of the beholder”, I am writing this spreadsheet for people who have less knowledge than myself and would like to keep it as simple as possible, (run a macro and get the results).

View Replies!   View Related
Format A Pivot Table
Every time I make a pivot table I change the formatting ie column width but when I press refresh it goes!

View Replies!   View Related
Updating PIVOT Table
I have created a dashboard based on a number of pivot tables. (Using GETPIVOTDATA tags)

One of the fields in the Dash tab is Week which is a drop down menu of 1-13. (GLA Dash C3)

I have two pivot tables in seperate tabs. (BottomQuartile1 and BottomQuartile2) both have Week as Report Filter.

At the moment when I change the week in Dash from 4 to 5 i have to manually go into the two BottomQuartile tabs and alter the week to match.

Is there anyway I can automate this process so that when i update the week in Dash it will update the Week in the other two tabs?

View Replies!   View Related
Dynamic Pivot Table ....
I have a spreadsheet the includes data validation, auto fill fields using formulas and conditional formatting all over the place. The user will be adding rows of data whenever applicable, so I want to create a dynamic pivot table that will update automatically. I think I've done it properly, Insert - Name - Define. In the Refers To field, I've added:-


I've then based the Pivot Table on the defined name. For some reason, when I add a new row of data, the pivot table doesn't update, I have to do it manually. When I go back into Sheet1 and click in the Refers To field, there is an extra "blank" row showing as included in the data range (screen print attached) Is my OFFSET wrong, or does it have anything to do with the fact each row (down to line 300) contains formulas and #N/A's?

View Replies!   View Related
Pivot Table Error
Upon opening an existing file, I receive the following error: Unable to Read File….I then click OK, Enable the macros and upon doing so, the following message appears: Excel Table Report on [Sales] Sheet1 was discarded due to integrity problems.

I have two Pivot tables on the report – Pivot8 and Pivot1 – two separate worksheets but using the same source data. I have placed a button on each worksheet to enable the user to refresh the Pivot Table. Pivot1 is the table that is being discarded and when I click the button on Sheet1, the following Run time error 1004 appears: Unable to get the Pivot Tables property of the Worksheet class….when I select Debug, here’s the code with the bolded section being the point of error:

ActiveSheet.Unprotect Password:="test"
ActiveCell.FormulaR1C1 = "=NOW()"
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False

View Replies!   View Related
Pivot Table Update
I've created a pivot table that summarizes sales and gross profit on a quarterly basis and YTD basis by Market and store. I have a drop down in my source data file which changes the month. I go to update the pivot table and it no longer recognizes the data fields because the headings change to the subsequent month. Is there a way to not have to recreate the pivot table every time a run a new period? See below. Once I run August and then refresh the data it will not recognize these fields any longer.

View Replies!   View Related
Pivot Table Ranges
I have just created a pivot table, however, i have just put the range to the cells that have data in them. The problem is, is that i want to make the cell range bigger, but the cells that i want to include do not have data YET, but will in the future. I have tried creating the pivot tables including the cells with no values, but it ends up puting 1 into the pivot tables cells for some reason.

View Replies!   View Related
Sub Grouping In Pivot Table
The attached is the format of a pivot table i have made from a data. MY primary group is the REGION inside the region i want to group as per the LOCATION HEAD.

This report automatically sorts as per the location id.

How is it possible under region i want to group according to the location head and total. i DONT WANT TO CHANGE THE SEQUENCE OF THE COLUMS AND THE FORMATTING

View Replies!   View Related
Too Many Items For Pivot Table
I have a database table with selling prices. I want to get a count of number of customers by sales price range.

For example:

Price Count
$0-$5 #
$5-$10 #
$10-$15 #

My nose says this is what a pivot table should do but there are too many sales prices and the pivot table craps out. How do I get them into ranges as above and then count them?

View Replies!   View Related
Copyright © 2005-08, All rights reserved