Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 249511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T21:26:01+00:00 2026-05-11T21:26:01+00:00

Now this is a weird one We have a project where we are reading

  • 0

Now this is a weird one

We have a project where we are reading some data from an Excel spreadsheet. Obviously this data has to be in a certain format. Some of the fields consists of numbers, but should be treated as text.

To stop Excel from being “smart” and change the cell types, I have set the format in the respective cells to ‘text’.

Now here is the problem: some of the numbers we’re pasting have spacing between the digits. When we remove the white spaces, Excel change the cell format to ‘standard’ and turn the text into the 2.42805E+11 format.

BUT: this only happens when the text is copied from some sources. If a paste a number copied from a textbox, everything turn out fine when we edit the spaces. If we copy the exact same number from a web page, Excel change cell format.

I thought copy-paste would be copy-paste, but obviously some formating or something gets along on the ride.

Does anyone know what causes this, or know have to get Excel to stop being “smart” with the formating?

EDIT: I found a somewhat peculiar solution to this. I recorded a macro that uses the ‘Paste Special’ function with text as parameter, and overrided ctrl-v with it (in that particular spreadsheet). Works like a charm! Feels a bit “hacky”, though. Can anyone think of a scenario where this will backfire?

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T21:26:01+00:00Added an answer on May 11, 2026 at 9:26 pm

    Try using the Edit Paste Special command, it will give you some controls to choose what to do with the data.

    For a taste of the complexity of what is really going on underneath, look in MSDN about Clipboard Formats. In short, it isn’t all Excel’s fault…

    A common user trick copying data out of excel is to paste it into Notepad and cut it back to the clipboard, which flattens all the formatting down to plain text. It won’t help you for pasting data into Excel, however.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is the day of weird behavior. We have a Win32 project made with
I have a problem with my WCF Data Service, and this one is just
I have this weird situation where my form doesn't send any data, but the
Okay this one has me stumped.. mainly because i have been working on this
Now I have seen this question in another forum but it didn't had an
ADDED: This question is now, I believe, subsumed by this one: Using GNU Screen
Okay, I have this weird problem in Firefox. I type in Firebug's console $
So I have been writing to Environment.SpecialFolder.ApplicationData this data file, that upon uninstall needs
This is a weird one. I'm working on an app that allows for offline
This is a weird one I know. I'm trying to tie together two Rails

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.