Share via

Spreadsheet table - differential formatting attributes

Jan Havlicek 20 Reputation points
2026-04-30T15:55:27.1333333+00:00

I have a question about differential formatting attributes of table element in a spreadsheet. The element 18.5.1.2 table defines several attributes that reference differential formatting:

  • dataDxfId
  • headerRowBorderDxfId
  • headerRowDxfId
  • tableBorderDxfId
  • totalsRowBorderDxfId
  • totalsRowDxfId

My problem is that most of them don't seem to work or do anything. The only one that works is the tableBorderDxfId attribute (border of the dxfs is applied to the border and non-border parts of dxf are applied to the whole table).

Sidenote: I know I can use different approach to get the desired result, this is about the specification.

As an example: When I define a dxf that is bold and has borders (relevant parts of XML:)


<b>

the table is formatted per dxf upon opening the file.

User's image

But when I replace the tableBorderDxfId attribute with any other different dxf attribute the table doesn't seem to apply the formatting:


</b><table name="Table2">

		</table><b>

User's image

I looked at OI-29500 and haven't seen any additional info. Do any dxf attributes other than tableBorderDxfId do anything in Excel? If so, under what conditions?

</b><table name="Table2"></table>

Microsoft 365 and Office | Open Specifications
Microsoft 365 and Office | Open Specifications

Technical documents for protocols, computer languages, standards support, and data portability. The goal with Open Specifications is to help developers open new opportunities to interoperate with Windows, SQL, Office, and SharePoint.


Answer accepted by question author

Tom Jebo 2,451 Reputation points Microsoft Employee Moderator
2026-05-01T21:58:46.99+00:00

Hi Jan Havlicek,

I have to take back some of my previous comment. I discussed this with our Excel team and while the full story is going to be way more complex than we need to go into here, I can give you a more general rule of thumb. I have a little more testing to verify all the dxf related attributes for Table (from 18.5.1.2) but I wanted to get this to you now to clear up some confusion.

Tables deal with dxf's a little differently than other components and elements. The main thing is that when you specify those dxf related attributes, they do actually get processed by Excel but will only (in general) show up as different formatting (if there is a difference from the style or direct formatting of the table definition) when you grow the table, for example when you add a new column or row. They do not affect existing cells in the table.

I have a simple example using headerRowDxfId. I've attached the style and table parts to demonstrate. If you use these in your test workbook and add a column, you'll see that the new column header does respect the desired differential formatting index referenced by headerRowDxfId.

Note: if you insert a new column or row, table style or direct formatting of existing cells is respected but not dxf formatting.

styles.xml

table1.xml

table2.xml

Once I have tested with all of the dxf related attributes to make sure they follow this, I will file a bug to get some general explanation added to MS-OI29500 saying that basically Table dxf processing only affects new cells added to a table but not existing cells.

Let me know if you have more questions about this or if it's not clear.

Best regards,
Tom Jebo 
Microsoft Open Specifications Support

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.