SOLVED

Strukturierter Verweis mit absolutem Spaltenbezug

Copper Contributor

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

FormelVA2021VA2022
Aktiven1000#NV
Gewinn200#NV

 

Tab_Bilanz

NameRE202VA2021 VA2022
Aktiven115010001500
Passiven11508001400
Gewinn0200100

 

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))

5 Replies
best response confirmed by Gallus (Copper Contributor)
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.

 

 

Thy, Riny, perfect solution!

@Riny_van_Eekelen 

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})
Wonderful, even a more smart solution. Thx you very much!
1 best response

Accepted Solutions
best response confirmed by Gallus (Copper Contributor)
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.

 

 

View solution in original post