You are on page 1of 7

Day 6: Working

with data
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
Right click – Hide field
buttons, format Axis –
Insert – Pivot Chart – Bar
Text Options - Categories
in reverse order

Creating Change your pivot: we


charts from Data labels
wan to know the revenue
(unit price*quantity by
category
Pivot-tables

Remove Salespeson Add Category to Rows


• 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.
Recording • When you create a macro, you are recording
your mouse clicks and keystrokes.
macros • 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.
• Developer – Record Macro
• Macro name, Shorcut: Ctrl+k, OK
• Perform the following actions VERY
Macro: CAREFULLY:
Conditional 1. Select the table
2. Home, Conditional formatting, choose the
formatting + formating you prefer
3. Type Average in A13
Average 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-741
130ca-080d-49f5-9471-1e5fb3d581a8
• https://www.youtube.com/watch?v=nvWpFdo7EO0
• https://www.mcstech.net/add-buttons-instead-of-commands-to-run-ma
cros-in-excel/

You might also like