ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Contents visible in cell (https://www.excelbanter.com/excel-programming/389419-contents-visible-cell.html)

Kieran H

Contents visible in cell
 
Hi all,

Puzzle!

XL 2000 - Re text file import

A cell formatted as text containing <255 chars displays correctly
A cell formatted as text containing 255 chars and <1025 chars
displays #######
A cell formatted as text containing 1024 chars displays correctly

The cell was originally formatted as text on import to avoid losing
leading zeros and the contents of cells over 255 chars

If the cell is re-formatted as general after the import is seems to
display correctly, however I havn't tested saving or copying the file.

Do I conclude that I should set the cell to text on import and then re-
format as general afterwards?

Any thoughts

Regards

Kieran


Dave Peterson

Contents visible in cell
 
If you have numbers in that field that need to keep their leading 0's, then yep.

But be careful. If you change the whole column back to General, then the next
change you make to one of those numeric cells with the leading 0's will not make
you happy.

Kieran H wrote:

Hi all,

Puzzle!

XL 2000 - Re text file import

A cell formatted as text containing <255 chars displays correctly
A cell formatted as text containing 255 chars and <1025 chars
displays #######
A cell formatted as text containing 1024 chars displays correctly

The cell was originally formatted as text on import to avoid losing
leading zeros and the contents of cells over 255 chars

If the cell is re-formatted as general after the import is seems to
display correctly, however I havn't tested saving or copying the file.

Do I conclude that I should set the cell to text on import and then re-
format as general afterwards?

Any thoughts

Regards

Kieran


--

Dave Peterson


All times are GMT +1. The time now is 09:34 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com