ich habe ein Problem und hoffe, dass mir jemand damit weiterhelfen kann. Und zwar habe ich in Spalte A verschiedene Locations, die sehr oft doppelt vorkommen und immer eine Reisezeit zu irgendeiner anderen Location (Spalte B) haben.
Ungefähr so:
A(Start) B (Ziel) C (Reisezeit in Minuten)
1 Location 1 Location 100 34
2 Location 1 Location 321 31
3 Location 2 Location 322 15
4 Location 2 Location 292 120
5 Location 3 Location 83 54
6 Location 3 Location 433 32
Dies ist jetzt auch nur ein Ausschnitt meiner Tabelle, diese Tabelle wird noch sehr lang, deswegen ist eine einfache Formel auf jeden Fall besser als viele Formeln einzeln einzutragen.
Nun möchte, dass jede Startlocation (Spalte A) nur ein einziges Mal in meiner Tabelle auftaucht und zwar mit der kürzesten Reisezeit aus Spalte C und egal welche die Ziellocation in Spalte B ist. Also jede Startlocation soll nur eine Ziellocation haben. Da die Tabelle, wie gesagt sehr sehr lang wird will ich nicht bei jeder Location schauen welche die kürzeste Reisezeit ist.
Kennt jemand eine Lösung, wie ich eine neue Tabelle erstelle wo jede Startlocation nur einmal vorkommt?
Also das Ergebnis soll dann ungefähr so aussehen:
Location 1 Location 321 31 Min
Location 2 Location 322 15 Min
Location 3 Location 433 32 Min
Vielen Dank, Ricarda
Hallo Ricarda,
sortiere die Spalte C aufsteigend. In D2 kommt dann die Formel
=ZÄHLENWENN(A$1:A2;A2)
die Du dann runterkopierst.
Tabelle1 | A | B | C | D |
1 | A(Start) | B (Ziel) | C (Reisezeit in Minuten) | |
2 | Location 2 | Location 322 | 15 | 1 |
3 | Location 1 | Location 321 | 31 | 1 |
4 | Location 3 | Location 433 | 32 | 1 |
5 | Location 1 | Location 100 | 34 | 2 |
6 | Location 3 | Location 83 | 54 | 2 |
7 | Location 2 | Location 292 | 120 | 2 |
Formeln der Tabelle |
Zelle | Formel | D2 | =ZÄHLENWENN(A$1:A2;A2) |
|
Gruß Uwe
Hallo, für Power Query kein Problem..: (interessiert?)
Arbeitsblatt mit dem Namen 'Tabelle1' |
| A | B | C | D | E | F | G |
1 | Start | Ziel | Reisezeit in min | | | | |
2 | Location 1 | Location 100 | 34 | | Start | Ziel | Reisezeit in min |
3 | Location 1 | Location 321 | 31 | | Location 1 | Location 321 | 31 |
4 | Location 2 | Location 322 | 15 | | Location 2 | Location 322 | 15 |
5 | Location 2 | Location 292 | 120 | | Location 3 | Location 433 | 32 |
6 | Location 3 | Location 83 | 54 | | | | |
7 | Location 3 | Location 433 | 32 | | | | |
Verwendete Systemkomponenten: [Windows (32-bit) NT 6.01] MS Excel 2010 |
Diese Tabelle wurde mit Tab2Html (v2.6.0) erstellt. ©Gerd alias Bamberg |
Hallo Uwe,
vielen Dank für deine Hilfe. Hat mir weitergeholfen
Gruß Ricarda
Hallo Jörg, auch dir Danke für deine Antwort und deine Mühe. Ich habe allerdings noch nie mit der Power Query gearbeitet. Ich bin nicht ganz so Excel begabt.
Gruß Ricarda
Hi,
ich würde es ganz ohne Formeln mit einer PivotTable auswerten:
Arbeitsblatt mit dem Namen 'Tabelle1' |
| A | B | C | D | E | F | G | H |
1 | A(Start) | B (Ziel) | C (Reisezeit in Minuten) | | | | | |
2 | Location 2 | Location 322 | 15 | | | Zeilenbeschriftungen | Min. von C (Reisezeit in Minuten) | |
3 | Location 1 | Location 321 | 31 | | | Location 1 | 31 | |
4 | Location 3 | Location 433 | 32 | | | Location 2 | 15 | |
5 | Location 1 | Location 100 | 34 | | | Location 3 | 32 | |
6 | Location 3 | Location 83 | 54 | | | | | |
7 | Location 2 | Location 292 | 120 | | | | | |
8 | | | | | | | | |
Verwendete Systemkomponenten: [Windows (32-bit) NT 10.00] MS Excel 2016 |
Diese Tabelle wurde mit Tab2Html (v2.6.0) erstellt. ©Gerd alias Bamberg |
[
attachment=19268]
(18.08.2018, 11:38)Rabe schrieb: [ -> ]Hi,
...
ich würde es (...) mit einer PivotTable auswerten...
Hallo Ralf, ja nee. Is klar.
Noch!!!
Außerdem sehe ich nur die halbe Lösung... ... wo ist denn die Spalte C (Ziel) . Zeilenbeschriftung für Start..? Sieht das "schön" aus..?
Nöööö!!!