It is a bit more complicated than that I'm afraid.
I would advise visiting a shop and trying a few bikes out.
I have more than one bike and the frame size is different from one to another depending on what I am using them for - my racing frame is 63cm, my audax frame is 60cm, my pootling about frame is 58cm. Seatpost length and stem length also make a difference. Etc, etc.
I am sure someone else will maybe try to tell you what size you need, but do not believe them