Bạn đang xem bài viết Pivot Table Cơ Bạn Trong Excel được cập nhật mới nhất trên website Hoisinhvienqnam.edu.vn. Hy vọng những thông tin mà chúng tôi đã chia sẻ là hữu ích với bạn. Nếu nội dung hay, ý nghĩa bạn hãy chia sẻ với bạn bè của mình và luôn theo dõi, ủng hộ chúng tôi để cập nhật những thông tin mới nhất.
Pivot Table hay Bảng Pivot là một trong những tính năng mạnh nhất của Excel. Bảng Pivot cho phép bạn trích xuất dữ liệu quan trọng từ một tập dữ liệu lớn, chi tiết.
Chèn bảng Pivot
Để chèn một bảng trụ, thực hiện các bước sau.
1. Nhấp vào bất kỳ ô nào bên trong tập dữ liệu.
2. Trên tab Insert, trong nhóm Table, bấm PivotTable.
Hộp thoại sau đây sẽ xuất hiện. Excel sẽ tự động chọn dữ liệu cho bạn. Vị trí mặc định cho bảng Pivot mới là New Sheet (trang tính mới).
3. Nhấp vào OK.
Kéo các trường thuộc tính
Cửa sổPivotTable Fields xuất hiện. Để có được tổng số tiền xuất của mỗi sản phẩm, hãy kéo các trường sau vào các khu vực khác nhau.
1. Trường Mã cổ phiếu đến khu vực Rows.
2. Trường Giá trị đến khu vực Values.
3. Trường Quốc gia đến khu vực Filters.
Sắp xếp
Để có VHC ở đầu danh sách, hãy sắp xếp lại PivotTable.
1. Nhấp vào bất kỳ ô nào bên trong cột Sum of Giá trị.
2. Nhấp chuột phải và nhấp vào Sort, chọn Sort Largest to Smallest.
Kết quả.
Bảng Pivot đã được sắp xếp như sau:
Bộ lọc
Vì chúng tôi đã thêm trường Quốc gia vào khu vực Bộ lọc (Filters area), nên bạn có thể lọc bảng Pivot này theo Quốc gia. Ví dụ, mã cố phiếu nào được đầu tư nhiều nhất bởi các nhà đầu tư đến từ France (Pháp)?
1. Nhấp vào trình đơn thả xuống bộ lọc và chọn France.
Kết quả: FMC là cổ phiếu được đầu tư nhiều nhất bởi các nhà đầu tư Pháp.
Lưu ý: bạn có thể sử dụng bộ lọc tiêu chuẩn (hình tam giác bên cạnh Row Labels) để hiển thị Giá trị của một loại Cổ phiếu cụ thể.
Thay đổi tính toán tóm tắt (Summary calculation)
Theo mặc định, Excel tóm tắt dữ liệu của bạn bằng cách tính tổng hoặc đếm các mục. Để thay đổi loại tính toán mà bạn muốn sử dụng, hãy thực hiện các bước sau.
1. Nhấp vào bất kỳ ô nào bên trong cột Sum of Giá trị.
2. Nhấp chuột phải và nhấp vào Value Field Settings .
3. Chọn loại tính toán bạn muốn sử dụng. Ví dụ, nhấp Count.
4. Nhấp vào OK.
Kết quả. 16 trong số 28 mã giao dịch của các nhà đầu tư Pháp là mã FMC.
Bảng Pivot hai chiều
Nếu bạn kéo một trường vào khu vực Rows và khu vực Column, bạn có thể tạo bảng xoay hai chiều. Đầu tiên, chèn một bảng Pivot. Tiếp theo, để có được tổng giá trị đầu tư từ mỗi quốc gia, của từng mã cố phiếu, hãy kéo các trường sau vào các khu vực khác nhau.
1. Trường Quốc gia đến khu vực Rows.
2. Trường Mã cổ phiếu đến khu vực Column.
3. Trường Giá trị đến khu vực Values.
4. Trường Ngành vào khu vực Filters.
Để dễ dàng so sánh các số này, hãy tạo biểu đồ trục và áp dụng bộ lọc. Có thể đây là một bước quá xa đối với bạn trong giai đoạn này, nhưng nó cho bạn thấy một trong nhiều tính năng bảng xoay mạnh mẽ khác mà Excel cung cấp.
Được gắn thẻ hướng dẫn học pivot table, Pivot Table cơ bản
Pivot Table Trong Excel 2007 2010, Cách Sử Dụng Pivot Table
Cách sử dụng pivot table trong excel 2007 2010 – So với excel 2003, việc sử dụng pivot table trong excel 2007 và excel 2010 có nhiều thay đổi:
Cách tạo bảng pivot table: thuận tiện hơn excel 2003
Giao diện đẹp hơn
Tính năng: được nâng cấp
Thông qua bài viết này, Ad muốn chia sẻ với các bạn cách tạo một bảng Pivot table đơn giản trên excel 2010. Cách thực hiện trên excel 2007 tương tự.
1. Ví dụ cách sử dụng pivot table trong excel 2007 2010
Bảng kê trên tổng hợp doanh số bán hàng trong ngày của từng loại cam và quýt
Yêu cầu: Lập báo cáo bán hàng tổng cho Cam và Quýt.
2. Cách sử dụng pivot table trong excel để xử lý.
Để xử lý yêu cầu của bài đề ra, ngoài việc sử dụng pivot table, chúng ta cũng có thể sử dụng hàm sumif.
Tuy nhiên, đối với việc tổng hợp dữ liệu từ cơ sở dữ liệu lớn thì Pivot table được coi là “VƯƠNG” và không khuyến khích sử dụng hàm trong excel.
Bước 1: Kích chọn một ô bất kỳ trong Bảng kê bán hàng.
Bước 2:
Chọn Insert/ Pivot table
– Kiểm tra Data source:
Ở cửa sổ “Create pivot Table”: Phần đầu tiên là phần kiểm tra lại data source trước khi tạo pivot table.
Chooose the data that you want to analyze:
Table range: ‘pivot table’!$B$4:$E$19
Vùng dữ liệu $B$4:$E$19 là vùng được chọn để tạo pivot table. Đây cũng chính là toàn bộ Bảng kê bán hàng.
Vùng được chọn sẽ có đường kẻ đứt bao quanh và nhấp nháy liên tục. – Chọn nơi Đặt pivot table:
Choose where you want the pivot table report to be replaced
Bạn hãy chọn nơi bạn muốn đặt bảng pivot table.
+ New sheet: Đặt trong một sheet mới
+ Existing sheet: Đặt ngay tại sheet hiện hành: nếu lưu ở sheet hiện hành thì bạn cần chọn một ô nào đó trong sheet hiện hành để đặt pivot table.
Trong ví dụ trên, Ad chọn ô G4 để đặt pivot table:
Ô G4 sẽ sáng lên và nhấp nháy như hình sau.
Sau khi nhấn OK, cửa sổ insert pivot table sẽ biến mất, thay vào đó là
Vùng bảng pivot table
Pivot table Field list
Vùng bảng pivot table sẽ thay đổi theo những lựa chọn bên phần Pivot table field list.
Pivot table field list là nơi bạn kéo thả các trường (field) dữ liệu vào dòng, cột, filter và value) giúp tạo nên bảng dữ liệu pivot table.
+ Choose fields to add to report: Chọn các trường dữ liệu để thêm vào báo cáo pivot table
+ Drag fields between areas below: có 4 vùng để thả các trường dữ liệu được kéo từ “choose fields to add to report”
++ Column labels: Tên cột
++ Row labels: Tên dòng
++ Values: Giá trị muốn hiển thị.
Trong báo cáo bán hàng hoa quả, ad muốn tên các loại hoa quả sẽ nằm ở từng dòng trong 1 cột và tổng giá trị từng loại hoa quả tương ứng ở cột bên cạnh.
Khi đó ad sẽ chọn cột “Loại” – kéo và thả vào phần Row labels.
Tiếp đến là kéo cột “Thành tiền” và thả vào phần Values.
Dữ liệu bên “Báo cáo bán hàng” tự động được tính tổng và sắp xếp theo thứ tự alphabe. Bạn xem hình bên dưới.
Do đó, để hiển thị đúng, ta cần bỏ dòng tổng này ra ngoài báo cáo bán hàng. Cách làm như sau:
Create A Pivot Table In Excel
Follow these easy steps to create an Excel pivot table, so you can quickly summarize Excel data. Watch the short video to see the steps, or follow the written steps. Get the free workbook, to follow along. There’s also an interactive pivot table below, that you can try, before you build your own!
NOTE: This tutorial gives you a quick overview of creating a pivot table. For detailed tutorial, go to the How to Plan and Set Up a Pivot Table page.
Create a Pivot Table
Watch this video, to see the steps for creating a pivot table in Excel 2013 and later. There are written instructions below the video.
Preparing Your Pivot Table Data
Before you create a pivot table, organize your data into rows and columns, and create an Excel Table. There are instructions here.
In this example the source data contains information about food sales, in two regions — East and West.
Creating a Pivot Table
After your source data is prepared, you can create a pivot table. First, see which pivot table layouts are suggested by Excel.
Select any cell in the source data table.
Modifying the Pivot Table
A pivot table is created in your workbook, on a new sheet, in the layout that you selected. When you select a cell within the pivot table, a PivotTable Field List appears, at the right of the worksheet.
You can change the layout of the pivot table, after it’s been created. We’ll add the TotalPrice field to the pivot table.
In the PivotTable Field List, add a check mark to the TotalPrice field. The TotalPrice field is automatically added to the pivot table, in the Values area, as Sum of TotalPrice.
Try This Pivot Table
Before you build your own pivot table, you can see how a pivot table works, by trying the interactive example shown below. Here are a few things you can try:
You can download a copy of the file, to test the pivot table features on your own computer.
Download the Sample File
Video: Create a Pivot Table
Here is a longer version of the video – Create a Pivot Table in Excel. The full transcript is below the video.
VIDEO TRANSCRIPT
A pivot table is a great way to summarize data in Excel. Here we have a table with sales records.
We can see where things were sold, what we sold, and how much and how much money we got on each sale. We can scroll down and see row after row of data.
It opens up a new window, and based on the data that I’ve got here, it’s suggesting some layouts
So the first one is showing the cities and then taking the total price and giving me the total sales in each city. That might be useful if I’m interested in where things are selling.
If we want to know what’s selling, here’s a layout that has the different product categories and then for each region how much we sold.
Below that, we can see those product categories again, and just the total price, instead of broken out by region.
You can scroll down, there are lots more options. If I go down further, we’re looking at the product categories and then the product names below that. This time it’s the quantity, rather than the price.
Here’s the layout that I selected. Now it’s got the quantity. I’m also going to add the total price. Over here, I can see all the fields from that data sheet.
This one went in as Sum of Total Price. This one is Count of Quantity. If I go back and look at my data, I can see that going down the quantity column, there’s one item here that’s text rather than a number.
So Excel sees this not as a number column, but as either text or mixed numbers and text. So it defaults to Count. But we can change that.
So now we can see the total quantity and the total price for each product category and product.
It’s a quick way to get started. You can change the layout after you’ve selected one of the sample layouts, but you’re up and running very quickly.
More Tutorials
FAQs – Pivot Tables How to Plan and Set Up a Pivot Table
Pivot Table Introduction
Last updated: April 22, 2021 7:15 PM
Excel 2022: Intro To Pivottables
Lesson 27: Intro to PivotTables
/en/excel2016/inspecting-and-protecting-workbooks/content/
Introduction
When you have a lot of data, it can sometimes be difficult to analyze all of the information in your worksheet. PivotTables can help make your worksheets more manageable by summarizing your data and allowing you to manipulate it in different ways.
Optional: Download our practice workbook.
Watch the video below to learn more about PivotTables.
Using PivotTables to answer questions
Consider the example below. Let’s say we wanted to answer the question What is the amount sold by each salesperson? Answering it could be time consuming and difficult; each salesperson appears on multiple rows, and we would need to total all of their different orders individually. We could use the Subtotal command to help find the total for each salesperson, but we would still have a lot of data to work with.
Fortunately, a PivotTable can instantly calculate and summarize the data in a way that will make it much easier to read. When we’re done, the PivotTable will look something like this:
Once you’ve created a PivotTable, you can use it to answer different questions by rearranging—or pivoting—the data. For example, let’s say we wanted to answer What is the total amount sold in each month? We could modify our PivotTable to look like this:
To create a PivotTable:
If you change any of the data in your source worksheet, the PivotTable will not update automatically. To manually update it, select the PivotTable and then go to AnalyzeRefresh.
Pivoting data
One of the best things about PivotTables is that they can quickly pivot—or reorganize—your data, allowing you to examine your worksheet in several ways. Pivoting data can help you answer different questions and even experiment with your data to discover new trends and patterns.
To add columns:
So far, our PivotTable has only shown one column of data at a time. In order to show multiple columns, you’ll need to add a field to the Columns area.
Drag a field from the Field List into the Columns area. In our example, we’ll use the Month field.
The PivotTable will include multiple columns. In our example, there is now a column for each person’s monthly sales, in addition to the grand total.
To change a row or column:
Changing a row or column can give you a completely different perspective on your data. All you have to do is remove the field in question, then replace it with another.
Drag the field you want to remove out of its current area. You can also uncheck the appropriate box in the Field List. In this example, we’ve removed the Month and Salesperson fields.
Drag a new field into the desired area. In our example, we’ll place the Region field under Rows.
The PivotTable will adjust—or pivot—to show the new data. In our example, it now shows the amount sold by each region.
To learn more
Once you’re comfortable with PivotTables, check out our Doing More with PivotTables lesson for even more ways to customize and manipulate them.
Challenge!
Open our practice workbook.
Create a PivotTable in a separate sheet.
We want to answer the question What is the total amount sold in each region? To do this, select Region and Order Amount. When you’re finished, your workbook should look like this:
In the Rows area, remove Region and replace it with Salesperson.
Add Month to the Columns area.
Change the number format of cells B5:E13 to Currency. Note: You might have to make columns C and D wider in order to see the values.
When you’re finished, your workbook should look like this:
/en/excel2016/doing-more-with-pivottables/content/
Cập nhật thông tin chi tiết về Pivot Table Cơ Bạn Trong Excel trên website Hoisinhvienqnam.edu.vn. Hy vọng nội dung bài viết sẽ đáp ứng được nhu cầu của bạn, chúng tôi sẽ thường xuyên cập nhật mới nội dung để bạn nhận được thông tin nhanh chóng và chính xác nhất. Chúc bạn một ngày tốt lành!