BuiltIn Functions › $SUBSCRIPTPOSITION Function
This function returns the position of the subscript (1, 2, or 3). In error processing, use the $ERROR‑SUBSCRIPT function to determine the position of the subscript in error.