Stop excel from converting copy-pasted number/text values to date
Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn
-------------------------------------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 2
--
Chapters
00:00 Question
00:47 Accepted answer (Score 3)
01:06 Answer 2 (Score 39)
02:09 Answer 3 (Score 23)
02:25 Answer 4 (Score 11)
02:50 Thank you
--
Full question
https://superuser.com/questions/509963/s...
Question links:
[There is a trick for importing CSV files]: https://stackoverflow.com/q/165042/68422...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#html #microsoftexcel #import #copypaste
#avk47
ANSWER 1
Score 38
This is definately a kluge and it's the only thing I've figured out to do. I came here looking for a more elegant solution.
I do have a slight improvement for this.
- Paste the data into the spreadsheet as is.
- Select all and format as text
- Paste again over what you did the first time but this time as values.
This keeps you from having to count columns and rows, etc.
If you have data you actually want to be numbers, dates, etc, it's much easier to reformat them correctly from this end than it is to do from the other. Since the numbers won't automatically convert, I used text to columns on the column, selecting "delimited" but unchecking all the delimiters. This has the same effect as going into each cell and hitting enter to get Excel to recognize it again. Ugly, but it works.
ANSWER 2
Score 23
The Most simple way.
1. Copy the original Data
2. Paste to Notepad (Prefer Notepad++)
3. Change the Cell Properties to TEXT
4. Copy All from Notepad
5. Paste back to Excel.
ANSWER 3
Score 3
- Open a Blank Workbook
- Click on Data
- Click From Text
- Locate your CSV/txt file
- Click Next
- Choose your Delimiter
- Click Next
- Use the scroll bar to locate the column you wish to protect and click on it
- Select Text from the Column data format
- Click Finish
- Click OK
The data will now have been imported without the date conversion.
ACCEPTED ANSWER
Score 2
Try this, it worked out for me:
Data - Import external data - New web query and follow the wizard
It's so simple.
regards!