Forum Discussion

Gallus's avatar
Gallus
Copper Contributor
Dec 18, 2021
Solved

Strukturierter Verweis mit absolutem Spaltenbezug

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

    • PeterBartholomew1's avatar
      PeterBartholomew1
      Silver Contributor

      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})
      • Gallus's avatar
        Gallus
        Copper Contributor
        Wonderful, even a more smart solution. Thx you very much!
    • Gallus's avatar
      Gallus
      Copper Contributor
      Thy, Riny, perfect solution!