Pivot Tables

Isabella

Well-known Member
Joined
Nov 7, 2008
Messages
643
Hi,

Could someone please show me how i can perform a pivot table that will give me the same result as show in Col J-P. I want to avoid using formula if possible.

Excel Workbook
ABCDEFGHIJKLMNOP
42-2930-59
5TypeAmountCCYAgeSourceCCYRateSourceNo. of itemsValue (AUD)ABS (AUD)No. of itemsValue (AUD)ABS (AUD)
6SCR8268.57AUD15Team1AUD1Team1329,268.5729268.57
7SCR20000AUD20Team1EUR0.75581Team216,844.946844.94067
8SCR1000AUD5Team1GBP0.645411Team300.000
9SCR4417.8GBP7Team2JPY82.56223Team41729,314.601803231.35
10SCR2208.9GBP30Team2USD1.00655
11SCR100000AUD40Team3
12LCR1163.22EUR12Team4
13LDR-3320.14EUR39Team4
14LCR9646.51EUR15Team4
15LDR-12618.8EUR40Team4
16LCR476017.8EUR15Team4
17LDR-1688137JPY38Team4
18LCR7187517JPY4Team4
19LDR-6303971JPY15Team4
20LCR108431.3USD15Team4
21LCR15652.36USD15Team4
22LDR-280467USD17Team4
23LCR52025.14USD17Team4
24LCR7589.03USD17Team4
25LCR1965.98EUR3Team4
26LDR-98555.5EUR17Team4
27LDR-33658.3EUR17Team4
28LDR-19670EUR10Team4
29LDR-247310EUR17Team4
30LDR-2068.46EUR13Team4
31LDR-800EUR28Team4
Sheet1
 
It's not that simple. Just like formulas, pivot tables have a specific function - to merge or aggregate data that has the concept of "groups". Your data has this structure so you can get what you need (almost). However, the data has to be in the right format first (this is always a problem with data analysis - getting data in a usable format).

Pivot tables basically collapse and sum/count - think of it like sorting clothes into piles based on what they are - you could have a sock pile, a shirt pile etc. or a "white stuff" pile and a "red stuff" pile. Pivot tables tell us how many white vs red things we have when we look (pivot) one way and how many socks vs shirts when looked at another way (and it can get a lot more complex that that, of course).

All you need to do to get your data in a pivot table friendly manner is to add a column that converts your currencies to AUD. It's much more simple than using no pivot table at all and writing all the formulas out.
 
Upvote 0

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
hi, Isabella

The result is pretty much identical to post #64 in thread http://www.mrexcel.com/forum/showthread.php?t=517419

Just include the Age field and make it a column field - group on it as required.

FYI, ManDrone, the pivot table can combine data from multiple tables. In this case, including a calculation (currency conversion) without adding a column of formulas.

regards, Fazza
 
Upvote 0
Fazza,

I named my main source data as "MainTable" i then named the currency table as "Forex" I then opened a new workbook, clicked Insert and then Pivot Table, i clicked on Use external data source, i pressed choose connections, but all i can see was MsnMoney etc.

What is the next step?










hi, Isabella

The result is pretty much identical to post #64 in thread http://www.mrexcel.com/forum/showthread.php?t=517419

Just include the Age field and make it a column field - group on it as required.

FYI, ManDrone, the pivot table can combine data from multiple tables. In this case, including a calculation (currency conversion) without adding a column of formulas.

regards, Fazza
 
Upvote 0
You could also stick to pivot tables using SQL in the background. It works nicely, but the formulas are OK if you are not familiar with SQL.

FOLLOW Fazza - he is the king of PT with SQL.
 
Upvote 0

I am using Excel 2010 and your method does not work. I am ok until I have named the ranges.

1. I open a new workbook

2. I click on Pivot table from the insert menu

3. I then click "Choose Connection"

4. When i click Connections i can see under "Connections files on this computer" Book1 Forex, Book1 Maintable.

5. When i select maintable, I then use the open button at the bottom of screen box, when i click open i get the Pivot table

I dont know how to edit
 
Upvote 0
OK, Isabella. Thanks for clarifying the steps. I don't have Excel 2010, sorry.

FWIW, prior to Excel 2007 the steps are,
  • ALT-D-P to start pivot table wizard
  • choose "External data source", Next
  • Get Data...
  • from the Databases strip, "Excel files*", OK
  • then follow wizard to the end & take the option to edit in MS Query
This might help you to work out the steps in Excel 2010. Suggest you refer to the help files. Maybe google the Microsoft site?

regards
 
Upvote 0

Forum statistics

Threads
1,217,371
Messages
6,136,169
Members
449,996
Latest member
duraichandra

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top