Vous êtes sur la page 1sur 26

Welcome in Excel

PivotTable
By Anurag Verma
Question:  How do I create a pivot table in Excel 2003 ?
First, our data that we want to use to populate the pivot table resides on Sheet1.

Name Subject Class Marks


Anurag Maths XII 69
Manish Maths XII 54
Anwar Maths XII 66
Hemant Maths XII 58
Aashish Maths XII 99
Anurag Physics XII 65
Manish Physics XII 56
Anwar Physics XII 45
Hemant Physics XII 66
Aashish Physics XII 65
Anurag Computer XII 44
Manish Computer XII 36
Anwar Computer XII 55
Hemant Computer XII 68
Aashish Computer XII 55
Anurag Hindi XII 47
Manish Hindi XII 66
Anwar Hindi XII 57
Hemant Hindi XII 66
Aashish Hindi XII 54
Anurag Chemistry XII 66
Manish Chemistry XII 47
Anwar Chemistry XII 65
Hemant Chemistry XII 45
Aashish Chemistry XII 66
PivotTable wizard should appear. Make sure that the
"Microsoft Excel list or database" and "PivotTable"
options are chosen. Click on the Next button.
Select the range of data for the pivot table and click on the Next button.
In this example, we've chosen data from Sheet1.
Click Layout button
Now drag the fields that you want to appear in the Page, Row, Column, and
Data sections of the pivot table. In this example, dragged the Name
field to the Row section , the Marks to the Data section and subject In column.
Click on the OK button to continue.
Or dragged the Name & Subject field to the Row section , the Marks to the Data section
Click on the OK button to continue.
Select the position to create the new pivot table. It will automatically default to
the cell that was highlighted when you started this process. In this example,
we want to create our pivot table on Sheet2 in cell A1.
Click on the Layout button.
Now click on the Finish button.
Your pivot table should now appear on Sheet. What this pivot table displays
Click PivotTable Toolbar Chart Wizard
Question:  How do I refresh a pivot table in Excel 2003?
Answer:  To refresh a pivot table, right-click on the pivot table and then
select "Refresh“ from the popup menu.
Excel: Automatically refresh pivot table when file is opened in Excel 2003

Question:  In Excel 2003, how do I get a pivot table to automatically refresh


when the Excel spreadsheet is opened?
Answer:  Right-click on the pivot table and then select "PivotTable Options"
from the popup menu.
When the PivotTable Options window appears, check the checkbox called
" Refresh on open". Click on the OK button.
The only tricky thing is this: You have to update the table manually from the Data
menu. A Pivot table does not update itself. If this becomes boring, here is some
macro code that makes the tables update on selecting the worksheet:

Sub Auto_Open()
Application.OnSheetActivate = "UpdateIt"
End Sub

Sub UpdateIt()
Dim iP As Integer
Application.DisplayAlerts = False
For iP = 1 To ActiveSheet.PivotTables.Count
ActiveSheet.PivotTables(iP).RefreshTable
Next
Application.DisplayAlerts = True
End Sub
Click tools Macro again macro enter the macro name Auto_Open then
click on the “create” button.
Enter the macro name Auto _open then
Click on the “create” button.
Changing the original data then to update the pivot Table.
Example second:-

Somord Computech One Month Payment Report


1-Jan-08
NAME POST GROUP SALARY DAYS AMOUNT
RAKESH SINGH TEACHER MS-OFFICE 9880 22 7012
ASHWANI SINGH TEACHER MS-OFFICE 8360 20 5394
GAUTAM KR. SINGH TEACHER MS-OFFICE 8360 25 6742
KM. MADHURI DEVI TEACHER PROGRAMMING 8360 25 6742
GOPAL SINGH TEACHER PROGRAMMING 8360 22 5934
PAWAN KUMAR TEACHER PROGRAMMING 8360 20 5934
HIMANSHU DIWEDI TEACHER WEB DESIGN 8360 24 6473
ABHA SINGH TEACHER WEB DESIGN 6840 25 5517
VINEETA SINGH TEACHER WEB DESIGN 6840 22 4855
ANIL KR. RAWAT TEACHER D.T.P 6840 25 5517
POOJA ROY TEACHER D.T.P 6840 22 4855
PRAMOD SINGH TEACHER D.T.P 4636 25 3739
SANTOSH SINGH TEACHER TALLY 4636 25 3739
RAM KUMAR TEACHER TALLY 3775 25 3045
HEMANT TEACHER TALLY 3775 25 3045

Q.1 PLOT THE ALL MONTHS DATA(ONE YEAR) IN DIFFERENCE SHEETS ?


Q.2 CREATING A PIVOTTABLE AND PIVOTTABLE CHART REPORT IN
THE ABOVE DATA ?
NOTE :- USING ALL THE SHEETS(DATA) IN ONE PIVOTTABLE.

Vous aimerez peut-être aussi