#1   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Reverting formats

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?

  #3   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Reverting formats

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

  #4   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Reverting formats

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.




wrote:

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


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Formats centerNegative Excel Discussion (Misc queries) 3 October 7th 05 05:01 PM
Too many different cell formats reb24 Excel Discussion (Misc queries) 4 September 7th 05 03:25 PM
Maximum Number of Cell Formats Jim Allen Excel Discussion (Misc queries) 4 April 19th 05 07:07 PM
How do I find out how many different cell formats an existing wor. wheelsii Excel Discussion (Misc queries) 1 March 24th 05 04:58 PM
Too Many Different Cell Formats Nanette Excel Worksheet Functions 1 November 12th 04 04:55 AM


All times are GMT +1. The time now is 11:08 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"