Humans are not all made from the same template, so sizing a bike can be pretty difficult. The main rule to follow is that the bike should always fit the rider, not the other way around. If you can get the frame size close enough, then you can make fine adjustments by tweaking the seat and handlebar configuration and maybe changing the stem to increase or decrease reach.
The chart below should give you some idea of the size to aim for based on either your height or your inseam.