== XLSX == Spec name: Office Open XML Part 4 - Markup Language Reference.pdf === Column Width === Spec location: 3.3.1.12 col (Column Width & Formatting) (page 1946) Column width measured as the number of characters of the maximum digit width of the numbers 0, 1, 2, ..., 9 as rendered in the normal style's font. There are 4 pixels of margin padding (two on each side), plus 1 pixel padding for the gridlines. width = Truncate([{Number of Characters} * {Maximum Digit Width} + {5 pixel padding}]/{Maximum Digit Width}*256)/256 Using the Calibri font as an example, the maximum digit width of 11 point font size is 7 pixels (at 96 dpi). In fact, each digit is the same width for this font. Therefore if the cell width is 8 characters wide, the value of this attribute shall be Truncate([8*7+5]/7*256)/256 = 8.7109375. === Row Height === 11.1 Spec location: 3.3.1.71 row (Row) (page 2012) Row height measured in point size. There is no margin padding on row height. == ODS == === Column Width & Row Height === Name Value Spec doesn't say much, but it appears that the order of these elements is significant & determines which column gets which automatic style, from left to right.