Two estimation procedures dominate the cointegration literature: Johansen’s maximum likelihood inference on vector autoregressive error correction models, and estimation of Phillips’ triangular forms. This latter methodology is essentially semiparametric, focusing on estimating long run parameters by means of cointegrating regressions, but it is less used in practice than Johansen’s approach, since its implementation requires prior knowledge of features such as the cointegrating rank and an appropriate set of non-cointegrated regressors. In this paper we develop a simple and automatic procedure (based on unit root and regression-based cointegration testing) which provides an estimator of the cointegrating rank and data-based just-identifying conditions for the cointegrating parameters (leading to a Phillips’ triangular form). A Monte Carlo experiment and an empirical example are also provided.