whatever happens, should you buy off the peg or get a fit such as the Cyfac postural system, do not buy according to a height or size chart.
Size charts do not give consideration to proportions. if you have very long legs for your given height, you will need to look at individual manufacturers geometry to see if that bike has a long headtube/short toptube for its given size.
also disregard the size printed on the frame, this will mean a wide range depending upon bike brand