The problem of the selection of the wave number of convection rolls by a ramp of the overcriticality is analysed in the two-dimensional situation. It is demonstrated that the configuration which minimizes the Lyapunov functional corresponds to the rolls parallel to the slope of the ramp, while the well-known purely one-dimensional configuration gives rise to a maximum of the functional. It is also demonstrated that, irrespective of the orientation of the rolls, the ramp always selects the wave number coinciding with the centre of the Eckhaus band (which is well-known in the one-dimensional case), except for the above-mentioned case when the rolls are parallel to the ramp's slope. Finally, it is shown that, under certain conditions, the one-dimensional configuration and those close to it may become unstable against infinitesimal disturbance with the wave vector perpendicular to the slope.