You might also find this website helpful.
Fit Calculator - Competitive Cyclist
For me getting fitted at a shop was the best way , but if you don't have a LBS or don't have one you like , this calculator works well. I was fitted at my LBS , but I ran my measurements through the calculator and the results were spot on. Knowing your size will help narrow your search . Especially if you are shopping for a used bike online.