[Solved] Pivot tables or alternate arrangement

Discuss the spreadsheet application
Post Reply
me231
Posts: 127
Joined: Sat Nov 02, 2013 4:31 pm

[Solved] Pivot tables or alternate arrangement

Post by me231 »

i have a ledger that has column headings
rows have entries
column A is an invoice number
the entries are scattered across the column headings
I want the column headings to be the row titles and the values sorted....?
basically the opposite if what i have now
Attachments
sample.ods
(20.46 KiB) Downloaded 107 times
Last edited by Hagar Delest on Sat Jul 17, 2021 10:06 am, edited 1 time in total.
Reason: tagged solved.
openOffice 4.0.0 on macOS
Matareuz
Posts: 23
Joined: Fri Nov 20, 2020 4:33 pm
Location: Venezuela

Re: Pivot tables or alternate arrangement

Post by Matareuz »

You can do it using INDIRECT and ADDRESS functions and archive that easily.
Attachments
sample2.ods
(24.42 KiB) Downloaded 103 times
LibreOffice 6.3.2.2 Windows 7 Ultimate
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Pivot tables or alternate arrangement

Post by Villeroy »

I normalized your table and boiled it down to 24 relevant records.
Attachments
t105711.ods
(26.83 KiB) Downloaded 108 times
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
gpgrego
Posts: 39
Joined: Fri Jan 31, 2020 4:04 pm

Re: Pivot tables or alternate arrangement

Post by gpgrego »

Try this, all automated with a macro. Just a Click!
Attachments
sample.ods
(19.28 KiB) Downloaded 121 times
openoffice 4.1.6 - Windows 10
me231
Posts: 127
Joined: Sat Nov 02, 2013 4:31 pm

Re: Pivot tables or alternate arrangement

Post by me231 »

wow - thank you all for the homework - I ended up pasting special - but I am going to dig in to the suggestions - thank you
openOffice 4.0.0 on macOS
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: [Solved] Pivot tables or alternate arrangement

Post by Villeroy »

I forgot to add a pivot table.
From the most simple list on Sheet3 I made a pivot table (menu:Data>Pivot>Create...). It includes all the sums that you calculated by means of formulas. Storing raw data in pivot tables makes no sense. You store too much non-information in blank cells. However, you can easily derive all kinds of information from a simple 3-column list by means of formulas, filtering, sorting, pivot tables.
Attachments
t105711_2.ods
(28.56 KiB) Downloaded 89 times
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
me231
Posts: 127
Joined: Sat Nov 02, 2013 4:31 pm

Re: [Solved] Pivot tables or alternate arrangement

Post by me231 »

this is perfect - i could not wrap my head around the "plan" to get it all as I wanted - did not really occur to me to do it multi steps - still not thinking out of the box... thank you again for the help..
openOffice 4.0.0 on macOS
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: [Solved] Pivot tables or alternate arrangement

Post by Villeroy »

Sheet2 uses formulas to transpose data from Sheet1 into a simple list with 3 columns.
I copied the resulting values to Sheet3, filtered by value=zero, deleted all rows with that null information and removed the filter which gives the boiled down list.
Then I created the pivot table from the simple list on Sheet3. A pivot table is a table derived from another table aggregating numbers by categories. In this case it calculates the sums for each case number in rows and each category in columns. This works like a database query without any formulas.
You maintain the simple list by simply inserting a row of new cells for each record. The order of records does not matter at all. You can sort and filter the list any way you want or not at all. The pivot table is updated by right-click>Refresh or Data>Pivot>Refresh.
https://wiki.openoffice.org/wiki/Docume ... /DataPilot
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Post Reply