#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default Pivot table

In Col A is the Month (Jun,Jul,Aug) of transactions, listed in date sequence
in another column is the last name of the salesman for each transaction.
There are other columns relevant to the transactions, but not to the pivot
table I created. The resulting pivot table listed the salesman, but not in
alphabetical order. In the data columns are the counts of the transactions
for each month with a final column totaling the three monthly columns and a
grand total.

Now the date columns are arranged in this sequence: Jun Aug Jul. I cannot
figure out how to arrange the salesmen's names alphabetically, nor why the
date columns are not listed Jun, Jul Aug.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default Pivot table

Hi

Double click on the last name fieldAdvanceSortAscending
Do the same for your Date field.
If the sort doesn't resolve the month order, then ToolsOptionsListEnter
Jan, Feb ..... Dec in white paneAdd
Then repeat Advanced sort on date field.

--
Regards
Roger Govier

"PatJennings" wrote in message
...
In Col A is the Month (Jun,Jul,Aug) of transactions, listed in date
sequence in another column is the last name of the salesman for each
transaction. There are other columns relevant to the transactions, but not
to the pivot table I created. The resulting pivot table listed the
salesman, but not in alphabetical order. In the data columns are the
counts of the transactions for each month with a final column totaling the
three monthly columns and a grand total.

Now the date columns are arranged in this sequence: Jun Aug Jul. I cannot
figure out how to arrange the salesmen's names alphabetically, nor why the
date columns are not listed Jun, Jul Aug.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default Pivot table

Thanks Roger, your solution worked.

If I may ask additional Questions:

I have two columns indicating the last name and state of the individuals.
The count of months are currently for Jun, Jul and Aug. There will be
additional transactions for Sep, etc.

When that data is entered, will I have to change the range of data, or will
it automatically include the new entries?

Can I create at the end of the table, or outside of it totals for the
monthly transactions by state? (It already gives me the totals for the
person's name by month.

Sincerely,
Pat



"Roger Govier" <roger@technology4unospamdotcodotuk wrote in message
...
Hi

Double click on the last name fieldAdvanceSortAscending
Do the same for your Date field.
If the sort doesn't resolve the month order, then ToolsOptionsListEnter
Jan, Feb ..... Dec in white paneAdd
Then repeat Advanced sort on date field.

--
Regards
Roger Govier

"PatJennings" wrote in message
...
In Col A is the Month (Jun,Jul,Aug) of transactions, listed in date
sequence in another column is the last name of the salesman for each
transaction. There are other columns relevant to the transactions, but
not to the pivot table I created. The resulting pivot table listed the
salesman, but not in alphabetical order. In the data columns are the
counts of the transactions for each month with a final column totaling
the three monthly columns and a grand total.

Now the date columns are arranged in this sequence: Jun Aug Jul. I cannot
figure out how to arrange the salesmen's names alphabetically, nor why
the date columns are not listed Jun, Jul Aug.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default Pivot table

Hi Pat
When that data is entered, will I have to change the range of data, or
will it automatically include the new entries?


The simple answer is No.
However, you can make the data source range grow automatically as you add
more data.
Depending upon your version of Excel, you may have an inbuilt method to
achieve this.
With XL2003 place cursor in your source data rangeDataListCreate List
With XL2007 again place cursor in data rangeInsert tabTable

In each case, if you then right click on the PTBackenter the name of the
table in the source dialogue =Table1, or whatever it is called, then the PT
will automatically include all new data when you Refresh the PT.

If your version is earlier than XL2003 (this also works with 2003 and 2007)
you can create a dynamic range.
Insertnamedefine Name myData Refers to
=$A$1:INDEX($1:$65536,COUNTA($A:$A),COUNTA($1:$1))

The above formula is a general formula that will work for all situations
assuming you have no entries in row 1 beyond the data you want to Pivot, and
that your header starts in A1.

If your data only went to say column H, then you could simplify the range to
something like
=$A$1:INDEX(H:H,COUNTA(A:A))
(I am assuming that column A will always be populated if there is a row of
data in the table.)

Again in the PT wizard, give source as =myData

Can I create at the end of the table, or outside of it totals for the
monthly transactions by state?

You can, but why not create them within the PT?
Drag State to the Row area, and place it above Name.
You will then have a count of Name, within State, and a Subtotal for the
State. If Subtotal is not showing, double click State on the PT and choose
Subtotal Automatic
--
Regards
Roger Govier

"PatJennings" wrote in message
...
Thanks Roger, your solution worked.

If I may ask additional Questions:

I have two columns indicating the last name and state of the individuals.
The count of months are currently for Jun, Jul and Aug. There will be
additional transactions for Sep, etc.

When that data is entered, will I have to change the range of data, or
will it automatically include the new entries?

Can I create at the end of the table, or outside of it totals for the
monthly transactions by state? (It already gives me the totals for the
person's name by month.

Sincerely,
Pat



"Roger Govier" <roger@technology4unospamdotcodotuk wrote in message
...
Hi

Double click on the last name fieldAdvanceSortAscending
Do the same for your Date field.
If the sort doesn't resolve the month order, then
ToolsOptionsListEnter Jan, Feb ..... Dec in white paneAdd
Then repeat Advanced sort on date field.

--
Regards
Roger Govier

"PatJennings" wrote in message
...
In Col A is the Month (Jun,Jul,Aug) of transactions, listed in date
sequence in another column is the last name of the salesman for each
transaction. There are other columns relevant to the transactions, but
not to the pivot table I created. The resulting pivot table listed the
salesman, but not in alphabetical order. In the data columns are the
counts of the transactions for each month with a final column totaling
the three monthly columns and a grand total.

Now the date columns are arranged in this sequence: Jun Aug Jul. I
cannot figure out how to arrange the salesmen's names alphabetically,
nor why the date columns are not listed Jun, Jul Aug.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default Pivot table

Than you Roger, however, I am using 2002, and unfortunately I am having
difficulty creating the name for the data. Do I select the worksheet, or
the rows of existing data, or something else? Is relevant where the cursor
is when creating the name? My pivot tables are on separate worksheets.
Pat

"Roger Govier" <roger@technology4unospamdotcodotuk wrote in message
...
Hi Pat
When that data is entered, will I have to change the range of data, or
will it automatically include the new entries?


The simple answer is No.
However, you can make the data source range grow automatically as you add
more data.
Depending upon your version of Excel, you may have an inbuilt method to
achieve this.
With XL2003 place cursor in your source data rangeDataListCreate List
With XL2007 again place cursor in data rangeInsert tabTable

In each case, if you then right click on the PTBackenter the name of the
table in the source dialogue =Table1, or whatever it is called, then the
PT will automatically include all new data when you Refresh the PT.

If your version is earlier than XL2003 (this also works with 2003 and
2007) you can create a dynamic range.
Insertnamedefine Name myData Refers to
=$A$1:INDEX($1:$65536,COUNTA($A:$A),COUNTA($1:$1))

The above formula is a general formula that will work for all situations
assuming you have no entries in row 1 beyond the data you want to Pivot,
and that your header starts in A1.

If your data only went to say column H, then you could simplify the range
to something like
=$A$1:INDEX(H:H,COUNTA(A:A))
(I am assuming that column A will always be populated if there is a row of
data in the table.)

Again in the PT wizard, give source as =myData

Can I create at the end of the table, or outside of it totals for the
monthly transactions by state?

You can, but why not create them within the PT?
Drag State to the Row area, and place it above Name.
You will then have a count of Name, within State, and a Subtotal for the
State. If Subtotal is not showing, double click State on the PT and choose
Subtotal Automatic
--
Regards
Roger Govier

"PatJennings" wrote in message
...
Thanks Roger, your solution worked.

If I may ask additional Questions:

I have two columns indicating the last name and state of the individuals.
The count of months are currently for Jun, Jul and Aug. There will be
additional transactions for Sep, etc.

When that data is entered, will I have to change the range of data, or
will it automatically include the new entries?

Can I create at the end of the table, or outside of it totals for the
monthly transactions by state? (It already gives me the totals for the
person's name by month.

Sincerely,
Pat



"Roger Govier" <roger@technology4unospamdotcodotuk wrote in message
...
Hi

Double click on the last name fieldAdvanceSortAscending
Do the same for your Date field.
If the sort doesn't resolve the month order, then
ToolsOptionsListEnter Jan, Feb ..... Dec in white paneAdd
Then repeat Advanced sort on date field.

--
Regards
Roger Govier

"PatJennings" wrote in message
...
In Col A is the Month (Jun,Jul,Aug) of transactions, listed in date
sequence in another column is the last name of the salesman for each
transaction. There are other columns relevant to the transactions, but
not to the pivot table I created. The resulting pivot table listed the
salesman, but not in alphabetical order. In the data columns are the
counts of the transactions for each month with a final column totaling
the three monthly columns and a grand total.

Now the date columns are arranged in this sequence: Jun Aug Jul. I
cannot figure out how to arrange the salesmen's names alphabetically,
nor why the date columns are not listed Jun, Jul Aug.







  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default Pivot table

Hi Pat

Whilst on the sheet with the source data
InsertNameDefine enter a name for the data range in the Name box fill in
the formula given in the Refers to box

--
Regards
Roger Govier

"PatJennings" wrote in message
...
Than you Roger, however, I am using 2002, and unfortunately I am having
difficulty creating the name for the data. Do I select the worksheet, or
the rows of existing data, or something else? Is relevant where the
cursor is when creating the name? My pivot tables are on separate
worksheets.
Pat

"Roger Govier" <roger@technology4unospamdotcodotuk wrote in message
...
Hi Pat
When that data is entered, will I have to change the range of data, or
will it automatically include the new entries?


The simple answer is No.
However, you can make the data source range grow automatically as you add
more data.
Depending upon your version of Excel, you may have an inbuilt method to
achieve this.
With XL2003 place cursor in your source data rangeDataListCreate List
With XL2007 again place cursor in data rangeInsert tabTable

In each case, if you then right click on the PTBackenter the name of
the table in the source dialogue =Table1, or whatever it is called, then
the PT will automatically include all new data when you Refresh the PT.

If your version is earlier than XL2003 (this also works with 2003 and
2007) you can create a dynamic range.
Insertnamedefine Name myData Refers to
=$A$1:INDEX($1:$65536,COUNTA($A:$A),COUNTA($1:$1))

The above formula is a general formula that will work for all situations
assuming you have no entries in row 1 beyond the data you want to Pivot,
and that your header starts in A1.

If your data only went to say column H, then you could simplify the range
to something like
=$A$1:INDEX(H:H,COUNTA(A:A))
(I am assuming that column A will always be populated if there is a row
of data in the table.)

Again in the PT wizard, give source as =myData

Can I create at the end of the table, or outside of it totals for the
monthly transactions by state?

You can, but why not create them within the PT?
Drag State to the Row area, and place it above Name.
You will then have a count of Name, within State, and a Subtotal for the
State. If Subtotal is not showing, double click State on the PT and
choose Subtotal Automatic
--
Regards
Roger Govier

"PatJennings" wrote in message
...
Thanks Roger, your solution worked.

If I may ask additional Questions:

I have two columns indicating the last name and state of the
individuals. The count of months are currently for Jun, Jul and Aug.
There will be additional transactions for Sep, etc.

When that data is entered, will I have to change the range of data, or
will it automatically include the new entries?

Can I create at the end of the table, or outside of it totals for the
monthly transactions by state? (It already gives me the totals for the
person's name by month.

Sincerely,
Pat



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
how to create pivot table from existing pivot table in excel 2007 Udayraj Dhulekar Excel Discussion (Misc queries) 2 July 8th 13 08:22 PM
Copying values from pivot table to cells outside pivot table richzip Excel Discussion (Misc queries) 4 January 16th 08 11:03 PM
Filter lines with Pivot table and non pivot table columns Grover Charts and Charting in Excel 4 September 28th 07 03:16 AM
Filter lines with Pivot table and non Pivot table columns Grover Excel Discussion (Misc queries) 1 September 26th 07 12:48 AM
Filter lines containing pivot table and non pivot table data Grover Excel Worksheet Functions 0 September 24th 07 07:20 PM


All times are GMT +1. The time now is 03:09 AM.

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"