Share via

Why does my formatting keep changing?

Anonymous
2024-08-03T20:47:38+00:00

I have this sequence in a cell, 45245E 10 9, I trim the cell and then copy and paste into another cell. As soon as I delete the spaces in between the characters, it turns into "4.5245E+113"?

In another sequence, I do the same exact exercise with 45245E AJ 8, and it turns into 45245EAJ8. I want this to happen to the above but it wont.

What is happening?

Microsoft 365 and Office | Excel | For home | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

HansV 462.6K Reputation points
2024-08-04T15:19:45+00:00

With a value such as 45245E 10 9 in A1. the formula

=SUBSTITUTE(A1, " ", "")

will return 45245E109 as a text value.

Was this answer helpful?

0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2024-08-04T14:07:24+00:00

    Anyway to do this with a formula? Where I want to remove the spaces in the cell and then keep it as text and not scientific annotation.

    Thanks in advance for your help.

    W

    Was this answer helpful?

    0 comments No comments
  2. HansV 462.6K Reputation points
    2024-08-03T20:51:43+00:00

    The single E in the first example causes Excel to convert the value to a number in scientific notation,

    To prevent this, either format the cells as Text before entering the data, or prefix the values with an apostrophe: '45245E109.

    The apostrophe will be displayed in the formula bar, but not in the cells.

    Was this answer helpful?

    0 comments No comments