Preserve cell formatting

%3CLINGO-SUB%20id%3D%22lingo-sub-2000590%22%20slang%3D%22en-US%22%3EPreserve%20cell%20formatting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2000590%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20using%20an%20excel%20sheet%20to%20upload%20into%20another%20system.%20Different%20users%20are%20using%20these%20upload%20sheets%20and%20these%20sheets%20contain%20large%20data%20records%20(up%20to%20100k).%20There%20is%20a%20column%20which%20represents%20the%20part%20number%20from%20the%20system.%20This%20column%20is%20formatted%20as%20'text'%20and%20needs%20to%20preserve%20this%20formatting.%20When%20users%20edit%20these%20sheets%20(due%20to%20vast%20number%20of%20records)%20they%20copy%20the%20values%20from%20a%20different%20excel%20worksheet%20and%20paste%20into%20the%20target%20part%20number%20column.%20However%2C%20by%20doing%20this%2C%20it%20pastes%20the%20source%20formatting%20to%20the%20target.%20An%20example%2C%20when%20a%20user%20copies%20following%20value%20number%20formatted%20cell%20%22536421554870000002357%22%20it%20will%20automatically%20convert%20the%20target%20cell%20to%20number%20format%20and%20display%20%225.36422E%2B20%22%20which%20fails%20during%20the%20upload%20procedure.%20How%20can%20I%20prevent%20this%20event%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2000590%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2010725%22%20slang%3D%22en-US%22%3ERe%3A%20Preserve%20cell%20formatting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2010725%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F906080%22%20target%3D%22_blank%22%3E%40Patrick_M76210%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fsuperuser.com%2Fquestions%2F413226%2Fwhy-does-excel-treat-long-numeric-strings-as-scientific-notation-even-after-chan%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Earticle%3C%2FA%3E%26nbsp%3Bexplains%20why%20it%20happens.%20The%20best%20way%20to%20bypass%20this%20is%20to%20insert%20an%20apostrophe%20in%20front%20of%20numbers%20to%20convert%20it%20to%20a%20text%20(%3CA%20href%3D%22https%3A%2F%2Fwww.excelhow.net%2Fhow-to-insert-hidden-apostrophe-in-front-of-numbers-to-make-number-convert-to-text-format-in-excel.html%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3ESource%3C%2FA%3E)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2012068%22%20slang%3D%22en-US%22%3ERe%3A%20Preserve%20cell%20formatting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2012068%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F867265%22%20target%3D%22_blank%22%3E%40adversi%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThx%20for%20the%20feedback.%20It%20places%20the%20apostrophe%20in%20front%20which%20is%20now%20seen%20by%20excel%20as%20a%20character.%20When%20importing%20into%20our%20target%20application%2C%20it%20now%20imports%20the%26nbsp%3Bapostrophe%20as%20a%20character%20into%20the%20target%20tables.%20Hopefully%20in%20the%20future%20this%20will%20be%20solved%20through%20a%20standard%20excel%20feature.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2012570%22%20slang%3D%22en-US%22%3ERe%3A%20Preserve%20cell%20formatting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2012570%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F906080%22%20target%3D%22_blank%22%3E%40Patrick_M76210%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETo%20remove%20single%20quote%20in%20front%20of%20numbers%20in%20a%20cell%2C%20you%20can%20highlight%20the%20entire%20column%20where%20the%20pasted%20text%20figure%20will%20be%20and%20Clear%20Formatting.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EGo%20to%20Home%20Tab%20%26gt%3B%20Editing%20Group%26gt%3B%20Clear%20%26gt%3B%20Clear%20Formatting%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I'm using an excel sheet to upload into another system. Different users are using these upload sheets and these sheets contain large data records (up to 100k). There is a column which represents the part number from the system. This column is formatted as 'text' and needs to preserve this formatting. When users edit these sheets (due to vast number of records) they copy the values from a different excel worksheet and paste into the target part number column. However, by doing this, it pastes the source formatting to the target. An example, when a user copies following value number formatted cell "536421554870000002357" it will automatically convert the target cell to number format and display "5.36422E+20" which fails during the upload procedure. How can I prevent this event?

3 Replies

@Patrick_M76210 

This article explains why it happens. The best way to bypass this is to insert an apostrophe in front of numbers to convert it to a text (Source)

@adversi 

Thx for the feedback. It places the apostrophe in front which is now seen by excel as a character. When importing into our target application, it now imports the apostrophe as a character into the target tables. Hopefully in the future this will be solved through a standard excel feature.

@Patrick_M76210 

To remove single quote in front of numbers in a cell, you can highlight the entire column where the pasted text figure will be and Clear Formatting.

 

Go to Home Tab > Editing Group> Clear > Clear Formatting