You are on page 1of 7

Day 6: Working with data

Aniko Balogh
CEU Computer & Statistics Center
balogha@ceu.edu
Pivot-tables
• To create meaningful reports and interactive charts and dashboards.
• Open Practice 5
• We would like to show how much was the revenuefor each salesperson
• Insert – Pivot Table – New Worksheet – Pivot Table Fields, Areas
• Salesperson: drag to Rows, Revenue: drag to Values (filtered Salesperson
summed up revenue)
• Select column, right mouse button, Value field settings, Number format
• Sort – Largest to smallest
Creating charts from Pivot-tables
• Insert – Pivot Chart – Bar
• Right click – Hide field buttons, format Axis – Text Options - Categories
in reverse order
• Data labels
• Change your pivot: we wan to know the revenue (unit price*quantity
by category
• Remove Salespeson
• Add Category to Rows
Recording macros
• If you have tasks in Microsoft Excel that you do repeatedly, you can
record a macro to automate those tasks.
• A macro is an action or a set of actions that you can run as many
times as you want.
• When you create a macro, you are recording your mouse clicks and
keystrokes.
• Show the Developer tab in your Office application
• On the File tab, go to Options > Customize Ribbon.
• Under Customize the Ribbon and under Main Tabs, select
the Developer check box.
Macro: Conditional formatting + Average
• Developer – Record Macro
• Macro name, Shorcut: Ctrl+k, OK
• Perform the following actions VERY CAREFULLY:
1. Select the table
2. Home, Conditional formatting, choose the formating you prefer
3. Type Average in A13
4. Insert the AVERAGE function – OK
5. Copy the function through the row
6. Click the Stop button on the bottom left corner
Working with multiple sheets
• Sum Across Multiple
Sheets in Microsoft
Excel
• Open macro.xls
• Let’s add all the average
results of the 1st paper
from all sheets
• Insert the SUM function
from the finction wizard
Resources
• https://www.excelcampus.com/vba-training-my-first-macro/
• https://
support.office.com/en-us/article/quick-start-create-a-macro-741130c
a-080d-49f5-9471-1e5fb3d581a8
• https://www.youtube.com/watch?v=nvWpFdo7EO0
• https://www.mcstech.net/add-buttons-instead-of-commands-to-run-
macros-in-excel
/

You might also like