Then you use a process called tacking. This is simply sailing a zig-zag course as close to the wind as possible, sailing NorthEast for a while, turning and sailing NorthWest, then repeating, crossing and recrossing our desired Northerly course.