Hallo,
möchte ein Makro in Excel 2016 schreiben, kenne mich leider mit vba nicht wirklich aus.
Zwei Tabellen aus zwei verschiedenen Arbeitsblättern sollen zu einer Tabelle im neues Arbeitsblatt über einen JoinKey zusammengeführt werden.
Bsp.:
Tabelle 1 Tabelle 2 Lösung: Tabelle 3
JoinKey |
Artikel-Nummer |
Name |
|
JoinKey |
Jahr |
|
JoinKey |
Artikel-Nummer |
Name |
Jahr |
1 |
123 |
Lena |
|
1 |
2015 |
|
1 |
123 |
Lena |
2015 |
1 |
145 |
Paul |
|
1 |
2016 |
|
1 |
145 |
Paul |
2015 |
1 |
256 |
Lisa |
|
1 |
2017 |
|
1 |
256 |
Lisa |
2015 |
1 |
200 |
Julia |
|
1 |
2018 |
|
1 |
200 |
Julia |
2015 |
|
|
|
|
|
|
|
1 |
123 |
Lena |
2016 |
|
|
|
|
|
|
|
1 |
145 |
Paul |
2016 |
|
|
|
|
|
|
|
1 |
256 |
Lisa |
2016 |
|
|
|
|
|
|
|
1 |
200 |
Julia |
2016 |
|
|
|
|
|
|
|
1 |
123 |
Lena |
2017 |
|
|
|
|
|
|
|
1 |
145 |
Paul |
2017 |
|
|
|
|
|
|
|
1 |
256 |
Lisa |
2017 |
|
|
|
|
|
|
|
1 |
200 |
Julia |
2017 |
|
|
|
|
|
|
|
1 |
123 |
Lena |
2018 |
|
|
|
|
|
|
|
1 |
145 |
Paul |
2018 |
|
|
|
|
|
|
|
1 |
256 |
Lisa |
2018 |
|
|
|
|
|
|
|
1 |
200 |
Julia |
2018 |
Im Grunde ist es die Cross Join Funktion in Access. Konnte leider keine Lösung für Excel Makro finden.
Danke für eure Hilfe!
|