Reverting formats

G

gcotterl

C1 has a "Text" format and it contains: 123456

When I insert a new column (D), the format of its cells is (by default)
"Text".

In D1, I enter the formula: =VALUE(c1/100)

Because the format of D1 is "Text", D1 contains the literal
"=VALUE(c1/100)"

I then do FORMAT/CELLS, click GENERAL then click "OK".

When I press f2 and press "Enter", D1 now contains the value: 1234.56

However, if I later change the formula of D1, the "General" format
changes back to "Text" and it again contains the literal
"=VALUE(c1/100)"

How can I prevent the format from changing?
 
D

Dave Peterson

I don't think you can change the way excel likes to help.

But maybe you could just drop the Text formatting (keep the cell formatted as
General), but do your data entry as '123456 (include that leading apostrophe).
 
G

gcotterl

Hi Dave,

I just noticed that the cells have a "text" format when their column is
inserted NEXT TO a column with "text"-formatted cells. However, the
cells have a "general" format when their column is inserted a few
columns AWAY FROM a column with "text"-formatted cells.

gary
 
D

Dave Peterson

Yep. Excel likes to help. It's sometimes (usually???) irritating.

I would import an ASCII file and want to make sure a column was treated as
text. Then insert that adjacent column and have to remember to change the
format back to General.
 

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

Format of cell 1
Format of cell 1
Conditional Format 1
How to determine the value - 23 Dec? 1
Excel 2007 storing the high and low 3
Is this a bug? 2
"Up to" function? 3
Adding and Sustracting 6

Top