Excel-How Do I prevent data conversion to date format

G

Guest

I am trying to input symbolic numerical data that includes forward slashes ie
"5/5" in a simple excel spread sheet. However when I do so, it converts the
input into a date format ie: "5-may" or "5/5/07" Furthermore. Even if I erase
the content from the "evil" cell in question, any future integer value ( ie:
" 5 " ) entered in to that cell is converted to a date format. How do I
prevent this from happening and/or disable this function in excel. Thanks
for any and all help.
 
R

Ron Rosenfeld

I am trying to input symbolic numerical data that includes forward slashes ie
"5/5" in a simple excel spread sheet. However when I do so, it converts the
input into a date format ie: "5-may" or "5/5/07" Furthermore. Even if I erase
the content from the "evil" cell in question, any future integer value ( ie:
" 5 " ) entered in to that cell is converted to a date format. How do I
prevent this from happening and/or disable this function in excel. Thanks
for any and all help.

The data must be entered into the cell as TEXT.

This can be done either by

1. Format the cell as TEXT before entering the data (Format/Cells/Number/Text)
2. Precede the data with a single quote '2/2


--ron
 
C

Chip Pearson

Format the cell for "Text" *before* entering the data, or precede the data
with an apostrophe ('). The apostrophe will not show up in the cell but will
show up in the formula bar. The apostrophe tells Excel to treat the data
strictly as it was entered with no date or other conversions.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting
www.cpearson.com
(email on the web site)
 
G

Gord Dibben

Precede the 5/5 with a apostrophe or pre-format to Text


Gord Dibben MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Prevent conversion to date format 4
date format conversion 2
Date conversion 11
UserForm ComboBox Date Format 1
inconsistent date conversion 3
Prevent auto date format 3
xls to csv conversion 2
Date format 6

Top