Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
skarr
 
Posts: n/a
Default Formating a cell(s)

When I go to the formatting, I click on number. I go back to the cell and put
in numbers, e.g. 8-12 or 1-5, when I click out of the cell after I entered
the number in it changes to 38,941. If I format to general, the number I
enter will change to a date. This did not happen before we updated to Office
2003.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Rosenfeld
 
Posts: n/a
Default Formating a cell(s)

On Wed, 8 Mar 2006 17:05:28 -0800, skarr
wrote:

When I go to the formatting, I click on number. I go back to the cell and put
in numbers, e.g. 8-12 or 1-5, when I click out of the cell after I entered
the number in it changes to 38,941. If I format to general, the number I
enter will change to a date. This did not happen before we updated to Office
2003.


Why do you think that 8-12 is a number? What part of the number is the "-"?

To me 8-12 is a string consisting of two numbers connected by a hyphen. Since
it could be a date, Excel interprets this as such.

If you want to type in 8-12 and see that in the cell, you need to preformat the
cell as Text, or precede the string with a single quote (which will not show up
in the cell, by the way). e.g. '8-12

As far as I know, this has always been true in Excel, certainly for the past
ten years or so.


--ron
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
Formating Worksheet Cells Kjacob54 Excel Discussion (Misc queries) 0 August 25th 05 03:21 PM
Formating Cells tkern Excel Discussion (Misc queries) 1 August 17th 05 11:01 PM
Formating text in cells Mark J. Worden Excel Discussion (Misc queries) 3 June 9th 05 10:21 PM
Help adding text values Texas-DC_271 Excel Worksheet Functions 7 January 15th 05 11:14 PM
Convert data type of cells to Text,Number,Date and Time Kevin Excel Worksheet Functions 1 December 31st 04 12:57 PM


All times are GMT +1. The time now is 09:41 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"