Much better than measuring bars to seat is to measure bottom bracket to seat. For seat position - you want the right relationship between the pivot at your hip and the pedal circle. Then adjust your handlebars to work. Next bike - duplicate the vertical and horizontal distances for both the seat and handlebars to the bottom bracket.
I put a piece of tape midway along the seat and measure both along the seat tube and horizontally from bottom bracket to the tape at the saddle centerline. (This is approximate. Different seats put my hips in different places. I ride and bring the wrench(es) to dial it in. For height, I look at (and feel) knee bend.)