Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 220
Default Getting Excel to not try to coerce numbers to Date

I have a problem that plagues me persistently:

Whenever I enter what i consider ranges in a single cell ("1 - 30"),
Excel will interpret that as Jan-30. I do not want this behavior. I
wish Excel to format things as date ONLY if i Explicitly tell it that
the value is a date (if, for example, i format the cell as Date format
or enter something like "4/30/2004").

Is there anyway that I toggle off this behavior? Any help would be most
appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Getting Excel to not try to coerce numbers to Date

Format the cell as text before you make the entry.

or

preceded the value with a single quote

'1-30

--
Regards,
Tom Ogilvy

"R Avery" wrote in message
...
I have a problem that plagues me persistently:

Whenever I enter what i consider ranges in a single cell ("1 - 30"),
Excel will interpret that as Jan-30. I do not want this behavior. I
wish Excel to format things as date ONLY if i Explicitly tell it that
the value is a date (if, for example, i format the cell as Date format
or enter something like "4/30/2004").

Is there anyway that I toggle off this behavior? Any help would be most
appreciated.



  #3   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Getting Excel to not try to coerce numbers to Date


-----Original Message-----
I have a problem that plagues me persistently:

Whenever I enter what i consider ranges in a single cell

("1 - 30"),
Excel will interpret that as Jan-30. I do not want this

behavior. I
wish Excel to format things as date ONLY if i Explicitly

tell it that
the value is a date (if, for example, i format the cell

as Date format
or enter something like "4/30/2004").

Is there anyway that I toggle off this behavior? Any

help would be most
appreciated.
.

you might want to make sure that you have that cell
formatted as "general".
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Getting Excel to not try to coerce numbers to Date

that would ensure the Excel does what it is doing now.

--
Regards,
Tom Ogilvy

wrote in message
...

-----Original Message-----
I have a problem that plagues me persistently:

Whenever I enter what i consider ranges in a single cell

("1 - 30"),
Excel will interpret that as Jan-30. I do not want this

behavior. I
wish Excel to format things as date ONLY if i Explicitly

tell it that
the value is a date (if, for example, i format the cell

as Date format
or enter something like "4/30/2004").

Is there anyway that I toggle off this behavior? Any

help would be most
appreciated.
.

you might want to make sure that you have that cell
formatted as "general".



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 220
Default Getting Excel to not try to coerce numbers to Date

These are two suggestions that I follow (by necessity) all the time.
The reason why I would like this is because I often open up a text file
from Excel and many of the "1 - 30" or "2 - 5" are in random cells and i
do not wish to format everything as text.

Are you saying that there is no way to force Excel not to coerce these
strings to Dates?


Tom Ogilvy wrote:
Format the cell as text before you make the entry.

or

preceded the value with a single quote

'1-30



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Getting Excel to not try to coerce numbers to Date

That is what I am saying.

if opening a text file, the import wizard allows you to specify a column as
Text, so you could specify all your columns as text.

--
Regards,
Tom Ogilvy

"R Avery" wrote in message
...
These are two suggestions that I follow (by necessity) all the time.
The reason why I would like this is because I often open up a text file
from Excel and many of the "1 - 30" or "2 - 5" are in random cells and i
do not wish to format everything as text.

Are you saying that there is no way to force Excel not to coerce these
strings to Dates?


Tom Ogilvy wrote:
Format the cell as text before you make the entry.

or

preceded the value with a single quote

'1-30



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
Excel still changes numbers to date Libor Excel Discussion (Misc queries) 1 November 28th 06 11:33 AM
Why does date come up when I enter numbers in cell/Excel? Carol Excel Discussion (Misc queries) 1 January 1st 06 01:18 AM
How do I bin numbers by a date in an Excel sheet Natarajan Ganesan Excel Worksheet Functions 7 June 22nd 05 11:10 AM
How do I stop Excel from changing numbers into a date? Buckwildbill Excel Discussion (Misc queries) 1 March 7th 05 07:42 AM
How to stop excel replaceing numbers with the date? Jamescowles Excel Discussion (Misc queries) 2 January 18th 05 12:23 PM


All times are GMT +1. The time now is 08:33 AM.

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"