• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Preventing Excels Default Behavior

gknath79

New Member
Hello Friends,

I'm encountering an issue when copying records from a database and pasting them into Excel. Excel appears to automatically remove leading and trailing spaces from the data, as well as trim leading zeros, which alters the original format of the data.

I need to preserve the data exactly as it appears in the source. I've tried using Paste Special and also importing the data via Get Data (From File -> From Text/CSV), but neither method has prevented Excel from transforming the data.

Could someone please advise on how to ensure that Excel retains the original formatting of the pasted or imported data from a database?

Thank you in advance for your assistance!
 
Can you also please tell me, where is this Import option under Format located in Microsoft 365 ? I do not see them.
 

Attachments

  • Format.png
    Format.png
    114.5 KB · Views: 4
Last edited:

gknath79

I use other version of Excel.
> Import >
I've only few csv-files ... but ...
it should be possible to do with step 3
Screenshot 2024-04-12 at 10.28.13.png
As written in #4 reply - with a sample file - it's much better to get solutions.

> One possible solution could be format column.
Screenshot 2024-04-12 at 10.24.03.png
 
Back
Top