Clever-Excel-Forum

Normale Version: Pro Name nur einen Wert bekommen
Du siehst gerade eine vereinfachte Darstellung unserer Inhalte. Normale Ansicht mit richtiger Formatierung.
  • Hallo liebe Mitglieder,
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

ABCD
1A(Start)B (Ziel)C (Reisezeit in Minuten)
2Location 2Location 322151
3Location 1Location 321311
4Location 3Location 433321
5Location 1Location 100342
6Location 3Location 83542
7Location 2Location 2921202
Formeln der Tabelle
ZelleFormel
D2=ZÄHLENWENN(A$1:A2;A2)

Gruß Uwe
Hallo, für Power Query kein Problem..: (interessiert?)

Arbeitsblatt mit dem Namen 'Tabelle1'
ABCDEFG
1StartZielReisezeit in min
2Location 1Location 10034StartZielReisezeit in min
3Location 1Location 32131Location 1Location 32131
4Location 2Location 32215Location 2Location 32215
5Location 2Location 292120Location 3Location 43332
6Location 3Location 8354
7Location 3Location 43332
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'
ABCDEFGH
1A(Start)B (Ziel)C (Reisezeit in Minuten)
2Location 2Location 32215ZeilenbeschriftungenMin. von C (Reisezeit in Minuten)
3Location 1Location 32131Location 131
4Location 3Location 43332Location 215
5Location 1Location 10034Location 332
6Location 3Location 8354
7Location 2Location 292120
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öööö!!!