OOXML mystery integer values

Celly

Board Regular
Joined
Jan 29, 2015
Messages
84
Office Version
  1. 2016
Platform
  1. Windows
Hello!

This may seem odd but I'm getting into the nitty gritty of Open Office XML (OOXML) and have a question. I'm looking at one of the sheet xml files under xl/worksheets/. I see a lot of churn on these "s" attributes on cell elements. Here is an XML fragment:

<sheetData>
<row r="3" spans="1:16" x14ac:dyDescent="0.25">
<c r="E3" s="286" t="s">
<v>839</v>
</c>
</row>
</sheetData>

So this is cell E3 which has a value of 839. I get that part, but what is the s="286" element? These "s" elements move up or down in small increments when a workbook is saved, even if no changes are made. I could sift through the OOXML specification but I'm not intimately familiar with it. Any ideas?
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
So for posterity, the main source of the churn is in the <cellXfs> collection in xl/styles.xml which is a table of cell formatting styles. This table appears to get reordered when you save, which has a ripple effect on all of the cells which reference these entries by index.

I'm testing Excel 2015, perhaps they've improved this behavior in subsequent releases?
 
Upvote 0

Forum statistics

Threads
1,214,915
Messages
6,122,217
Members
449,074
Latest member
cancansova

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top