J
Joerg
I'm using Excel 2003. Some cells of my data table contain fairly large text.
As the text is identical in all cells of a column I tried to be smart: I
figured that instead of having copies of this text in all these cells I
could reduce file size by keeping this text only in one cell and just
reference this "master cell" in all other cells. I was pretty much surprised
to see that the file size didn't decreased - it doubled.
I then made a test.
I copied a large text into each cell of A1:J10 and saved the workbook as
Abs.xls
I opened a new workbook and copied the text to A1 only. In all other cells
of range A1:J10 I used the formula =$A$1. I saved the workbook as Ref.xls
Resulting filesize of Abs.xls was considerable smaller than that of Ref.xls.
Looking at the binary code of Abs.xls I could see that the text appears only
once. This means that Excel must employ some form of file compression and
intelligent referencing, so that repeated text is stored only once. Much
different in Ref.xls: The text, which I entered only once, appears 100 times
in the binary code, which explains the increased file size.
Conclusion: Repeating absolute values in a workbook over and over again may
not be smart, but can reduce file size.
Cheers,
Joerg Mochikun
As the text is identical in all cells of a column I tried to be smart: I
figured that instead of having copies of this text in all these cells I
could reduce file size by keeping this text only in one cell and just
reference this "master cell" in all other cells. I was pretty much surprised
to see that the file size didn't decreased - it doubled.
I then made a test.
I copied a large text into each cell of A1:J10 and saved the workbook as
Abs.xls
I opened a new workbook and copied the text to A1 only. In all other cells
of range A1:J10 I used the formula =$A$1. I saved the workbook as Ref.xls
Resulting filesize of Abs.xls was considerable smaller than that of Ref.xls.
Looking at the binary code of Abs.xls I could see that the text appears only
once. This means that Excel must employ some form of file compression and
intelligent referencing, so that repeated text is stored only once. Much
different in Ref.xls: The text, which I entered only once, appears 100 times
in the binary code, which explains the increased file size.
Conclusion: Repeating absolute values in a workbook over and over again may
not be smart, but can reduce file size.
Cheers,
Joerg Mochikun