Jens Kruppa Computer Service

  • Werbung

22 Okt

OpenOffice.org Calc: Nach mehr als drei Spalten oder Zeilen sortieren

Problem:

Eine OpenOffice Tabelle soll nach mehreren Spalten oder Zeilen sortiert werden. Die Suchfunktion ist aber auf drei Suchkriterien beschränkt. OOo Calc verwendet zum Sortieren einen instabilen Sortier-Algorithmus (Quick Sort), daher ist es nicht möglich durch einfaches mehrmaliges Sortieren nach allen Kriterien die Beschränkung auf drei Suchkriterien zu umgehen.

Lösung (Zeilen sortieren):

Man benötigt eine zusätzliche Spalte in der man sich die Sortierung gemerkt wird. Dort trägt man in mind. jeder Zeile in der Einträge stehen die Formel

=ZEILE()

ein. Nun kann man mit dem Sortieren beginnen. Will man z.B. nach den Spalten A, B, C, D, E, F sortieren und hat in Spalte G die obige Formel eingetragen, sortiert man im ersten Schritt nach den Spalten D, E und F. Danach bezieht man die bisherige Sortierung mit ein in dem man nach B, C und G sortiert. Als letzten muss man nur noch nach A und G sortieren.

Lösung (Spalten sortieren):

Man benötigt eine zusätzliche Zeile in der man sich die Sortierung gemerkt wird. Dort trägt man in mind. jeder Spalte in der Einträge stehen die Formel

=SPALTE()

ein. Nun kann man mit dem Sortieren beginnen. Will man z.B. nach den Zeilen 1, 2, 3, 4, 5, 6 sortieren und hat in Spalte 7 die obige Formel eingetragen, sortiert man im ersten Schritt nach den Spalten 4, 5 und 6. Danach bezieht man die bisherige Sortierung mit ein in dem man nach 2, 3 und 7 sortiert. Als letzten muss man nur noch nach 1 und 7 sortieren.

Beispiel:

Es soll die folgende Tabelle nach den Spalten A, B, C, D, E, F sortiert werden.

A B C D E F
2 1 2 2 2 1
1 1 2 2 2 2
1 2 2 2 1 1
1 2 2 2 1 1
1 2 2 1 2 2
1 1 1 1 1 1
2 2 2 2 1 1
2 1 1 2 1 2
2 2 2 2 1 1
2 1 2 1 2 1

Als erstes muss man die zusätzliche Spalte mit der Formel

=ZEILE()

füllen. Man erhält dann

A B C D E F G
2 1 2 2 2 1 1
1 1 2 2 2 2 2
1 2 2 2 1 1 3
1 2 2 2 1 1 4
1 2 2 1 2 2 5
1 1 1 1 1 1 6
2 2 2 2 1 1 7
2 1 1 2 1 2 8
2 2 2 2 1 1 9
2 1 2 1 2 1 10

Nun sortiert man als erstes nach den Spalten D, E und F und erhält folgendes Ergebnis

A B C D E F G
1 1 1 1 1 1 1
2 1 2 1 2 1 2
1 2 2 1 2 2 3
2 2 2 2 1 1 4
2 2 2 2 1 1 5
1 2 2 2 1 1 6
1 2 2 2 1 1 7
2 1 1 2 1 2 8
2 1 2 2 2 1 9
1 1 2 2 2 2 10

Nun sortiert man nach den Spalten B, C und G. Das Ergebnis ist dann

A B C D E F G
1 1 1 1 1 1 1
2 1 1 2 1 2 2
2 1 2 1 2 1 3
2 1 2 2 2 1 4
1 1 2 2 2 2 5
1 2 2 1 2 2 6
2 2 2 2 1 1 7
2 2 2 2 1 1 8
1 2 2 2 1 1 9
1 2 2 2 1 1 10

Als letzes muss dann nur noch nach A und G sortiert werden. Das Endergebnis ist dann

A B C D E F G
1 1 1 1 1 1 1
1 1 2 2 2 2 2
1 2 2 1 2 2 3
1 2 2 2 1 1 4
1 2 2 2 1 1 5
2 1 1 2 1 2 6
2 1 2 1 2 1 7
2 1 2 2 2 1 8
2 2 2 2 1 1 9
2 2 2 2 1 1 10

17 Responses to “OpenOffice.org Calc: Nach mehr als drei Spalten oder Zeilen sortieren”

  1. 1
    alabama montgomery human resources jobs Says:

    State Specific Jobs

    […]we like to honor other sites on the web, even if they aren’t related to us, by linking to them. Below are some sites worth checking out[…]

  2. 2
    Webhosting Vergleich Says:

    Webhosting Vergleich

    Hey there, was just surfing through the internet looking for some stuff and stumbled across your blog. I am impressed by the knowledge that you have on this blog. It shows how well you get this stuff. Bookmarked this blog, will come back for more. You …

  3. 3
    Airsoft Guns From Big 5 Sporting Goods Says:

    Chandler homes for sale

    […]we like to honor other sites on the web, even if they aren’t related to us, by linking to them. Below are some sites worth checking out[…]

  4. 4
    Kamagra bestellen Says:

    Potenzmittel Kamagra

    […]Kamagra Oral Jelly Potenzmittel als Alternative zu Viagra kaufen[…]

  5. 5
    how to get ripped Says:

    Steve’s Blog

    […]below you’ll discover the links to quite a few webpages that we think you ought to visit[…]

  6. 6
    Scrapebox List Says:

    Auto Approve List

    […]Auto Approve List For Scrapebox[…]

  7. 7
    Grado Sr80 Says:

    Steve’s Super Site

    […] You can leave a reply, or trackback from your own personal webpage. Learn more via the original source: Geeked Up: « Tech weblog Share and […]

  8. 8
    cash registers Says:

    Amazing Bloggers

    […]always a big fan of linking to bloggers that I love but don’t get a lot of link love from[…]

  9. 9
    Age Of Empires2 Says:

    Baby Bedding

    […]here are some links to sites that we link to because we think they are worth visiting[…]

  10. 10
    how to lose weight fast Says:

    CNBC NEWS BLOGS

    […] listed below you can find the link to some people website pages in which really think you are going to browse […]

  11. 11
    CieAura Helps Says:

    Cieaura Says Its An Incredible Post Keep It Up

    […] Perfect info; thinking I could add several unrelated data, yet really worthwhile having a look, […]

  12. 12
    Ancona Chicken Says:

    Brahma Chicken

    […]Plealease visit the sites on our links list[…]

  13. 13
    Customer Service Software Says:

    Customer Service Software

    […]below you’ll find the link to some sites that we think you should visit[…]

  14. 14
    Mint Says:

    Econometrics yield surprising results..

    […]interesting contextial information, read with a modicum of criticism[…]

  15. 15
    Instant Penis Enlargement - Add One Inch To Your Penis Length Says:

    […]below you’ll find the link to some sites that we think you should visit[…]

    […]here are some links to sites that we link to because we think they are worth visiting[…]

  16. 16
    Southwest Promo Code Says:

    Travel Deals

    […]these internet sites may certainly not be entirely related to our web site but we most definitely think you really should explore all of them[…]

  17. 17
    http://www.agreensupply.com/pages/Shop.html Says:

    LED Light Bulbs for Offices

    […]we wish to honor other web sites about the internet, even when they aren’t connected to us, by linking to them. Beneath are some internet sites really worth checking out[…]

Leave a Reply

You must be logged in to post a comment.

© 2012 Jens Kruppa Computer Service | Entries (RSS) and Comments (RSS)

Powered by Wordpress, design by Web4 Sudoku, based on Pinkline by GPS Gazette