Dec 18 2021 02:09 AM - edited Dec 18 2021 02:18 AM
Hallo
Ich verwende bei einem Index mit Verweis die Spalte A als Zeilenbezug und die Kopfzeile 1 als Spaltenbezug. Wenn ich nun die Formel von Spalte B nach Spalte C kopiere, soll der Vergleich auf Spalte A bleiben (absolut), verschiebt sich aber auf Spalte C (relativ) - gibt es ein Zeichen oder eine Möglichkeit, wie das verhindert werden kann?
Danke für eine Rückmeldung.
Beispiel
Tab_Vergleich
Formel | VA2021 | VA2022 |
Aktiven | 1000 | #NV |
Gewinn | 200 | #NV |
Tab_Bilanz
Name | RE202 | VA2021 | VA2022 |
Aktiven | 1150 | 1000 | 1500 |
Passiven | 1150 | 800 | 1400 |
Gewinn | 0 | 200 | 100 |
Formel (B2, korrekt): =INDEX(Tab_Bilanz;VERGLEICH([@Formel];Tab_Bilanz[Name];0);VERGLEICH(Tab_Vergleich[[#Kopfzeilen];[VA2021]];Tab_Bilanz[#Kopfzeilen];0))
Formel (kopiert in B3 korrekt): =INDEX(Tab_Bilanz;VERGLEICH([@Formel];Tab_Bilanz[Name];0);VERGLEICH(Tab_Vergleich[[#Kopfzeilen];[VA2021]];Tab_Bilanz[#Kopfzeilen];0))
Formel (kopiert in C2 falsch): =INDEX(Tab_Bilanz;VERGLEICH([@VA2021];Tab_Bilanz[RE2020];0);VERGLEICH(Tab_Vergleich[[#Kopfzeilen];[VA2022]];Tab_Bilanz[#Kopfzeilen];0))
Dec 18 2021 02:49 AM
Solution@Gallus When you are working with structured table references you can't just copy and past or drag formulae across if you intend them to be absolute. More about that in the attached link.
https://exceloffthegrid.com/excel-tables-absolute-references/
The attached file took your data and now has working formulae. When you open it, all should be in German, automatically.
Dec 19 2021 07:20 AM
Dec 19 2021 08:47 AM
I have added tow further solutions to your workbook. I leave it to your judgement whether you would recommend either. The first continues to use a Table but replaces the first column Structured References by a defined Name (which, in turn, refers to the structured reference). This make the reference absolute.
The second uses tables only for data input an uses dynamic arrays for the formula.
"Table"
= INDEX(Table2[VA2021], MATCH(@Formel,Name,0))
"Dynamic Array"
= INDEX(VA, XMATCH(Formel,Name), {1,2})
Dec 19 2021 09:03 AM
@Peter Bartholomew I approve! :)))
Jan 14 2022 09:56 AM