Gruppe
UDF
Bereich
Bereich
Thema
Letzter Wert in Zeile
Problem
Wie ermittle ich den letzten Text-Wert im Bereich A1:A500?
Lösung
Folgende Matrixformel: =INDEX($A$1:$A$500;MAX(WENN(ISTTEXT($A$1:$A$500);ZEILE($A$1:$A$500)));1)
StandardModule: basMain
Function LastValue(MyArray As Range) As Variant
With MyArray
LastValue = .Cells(.Cells.Count).Value
End With
End Function