so from the end of the bar to the bit in the stem
Just to clarify, this is the height of the handlebar measured in a straight vertical line not a diagonal line from the end of the bar to the centre of the bit that clamps in the stem.
I find it easier to turn the bars upside down and put the bar bar ends on a table or the floor and the bar resting against the wall. Measure in the centre of the bars from the table/floor up to the centre line of the knurled bit (assuming the clamping area is knurled) and then subtract about 11mm to account for not having measured from the centre line of the handlebar grip tube. Blimey, I made that sound hard.