Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 58
Default Importing number with dash changes to date

hello Dee,

I have entered 02-9098 into A1
came out as: Feb-98
specified date for cell, came out as: 2/1/9098
month(a1)=2
day(a1)=1
year(a1)=9098
giving you your "2" and "9098".
Drop me a note if this does not help.

Gabor

"Dee Sperling" wrote in message
...
I'm imporint data (which I have no control over) into Excel. Some of the
number contain 2 digits, a dash, then 6 more digits, for ex 02-9098 Excel
interprets that number as Feb 1, 9098. Changing the cell format to number
or
text does not get the original value back, instead, I get 2629049 which is
obviously not correct.

Is there a way to undo the date and get the original number back?

Thanks,
Dee Sperling


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
Number with dash is importing as date Dee Sperling[_2_] Excel Programming 8 March 29th 10 09:02 PM
replace dash in a number sequence Willy Wonka Excel Worksheet Functions 1 February 14th 08 12:04 AM
Extract number between a dash Eric Excel Discussion (Misc queries) 3 January 24th 08 12:37 AM
How do I take out a dash in a number like 827-6541 in a XL list Kelley Excel Worksheet Functions 11 December 26th 06 10:40 PM
Replacing dash in item number tmcleod Excel Discussion (Misc queries) 3 March 29th 06 12:14 AM


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