ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Pivot table (https://www.excelbanter.com/excel-worksheet-functions/85837-pivot-table.html)

Michel Khennafi

Pivot table
 
Good morning guys

I have a table with 3 colums

- First name
- date
- Hours off (number from 1 to 8 to account for vacation)

I would like to do a pivot table where the dates are grouped by months or
year and sum up the hours. for instance the following table

Joe 5/5/05 3
joe 12/5/05 8
Mike 1//1/06 8
Joe 1/10/06 8

Would give the following table
Joe Mike
May 05 3

December 05 8

January 06 8 8


Basically, regrouping the dates by month or year or by month and year in a
pivot table knowing that the source data is expressed in dates




Duke Carey

Pivot table
 
Build your pivot table normally, with Dates in the Row area. When completed,
right-click on Dates and choose Group and Show DetailGroup... from the
pop-up.

Click on Months, then Ctrl-click on Years. Ok your way out of the dialogs

"Michel Khennafi" wrote:

Good morning guys

I have a table with 3 colums

- First name
- date
- Hours off (number from 1 to 8 to account for vacation)

I would like to do a pivot table where the dates are grouped by months or
year and sum up the hours. for instance the following table

Joe 5/5/05 3
joe 12/5/05 8
Mike 1//1/06 8
Joe 1/10/06 8

Would give the following table
Joe Mike
May 05 3

December 05 8

January 06 8 8


Basically, regrouping the dates by month or year or by month and year in a
pivot table knowing that the source data is expressed in dates






All times are GMT +1. The time now is 02:21 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com