Home |
Search |
Today's Posts |
#9
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank you all for your suggestions, but every one of them still results in an
incorrect number when the data is copied to the new spreadsheet. For example, 02-2011 turns into 40575. "Dee Sperling" wrote: An Excel spreadsheet is being exported from a SQL database that I cannot change, so I need to accomplish this in Excel. Sometimes, some of the many numbers contain a dash which Excel then interprets as a date. I can remove the dash programatically, but the number is not correct afterwards. For example, the number imported is 05-9078 which is displayed in Excel as May-78, but is actually stored as 5/1/9078. Changing the cell format to number or text gives me 2621833. I need to be able to add to my macro something that will give me back the original number so that I can remove the dash and end up with 059078 Any help greatly appreciated. Dee |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
replace dash in a number sequence | Excel Worksheet Functions | |||
Extract number between a dash | Excel Discussion (Misc queries) | |||
Trying to put a dash- in my formula to separate a number&name | Excel Worksheet Functions | |||
How do I take out a dash in a number like 827-6541 in a XL list | Excel Worksheet Functions | |||
Replacing dash in item number | Excel Discussion (Misc queries) |