Sub test()
MsgBox getLastValueHideOrNotHide([A:A])
End Sub
Function getLastValueHideOrNotHide(rng)
Dim ligne
With Application: t = Split(Join(.Transpose(.Index(rng, 0, 1)), ",||"), ","):
getLastValueHideOrNotHide = .IfError(.Match("||", t, 0) - 1, False)
End With
End Function