Actuarial Outpost
 
Go Back   Actuarial Outpost > Actuarial Discussion Forum > Software & Technology
FlashChat Actuarial Discussion Preliminary Exams CAS/SOA Exams Cyberchat Around the World Suggestions

United Kingdom
Actuarial Jobs

General Insurance, Life & Other Areas

Canada
Actuarial Jobs

Casualty, Life,
Pension,
Health &
Investment

Entry Level
Actuarial Jobs

All Disciplines
Health, Life, Pension, Casualty, Investment

D.W. Simpson
& Company

Actuarial
Recruiters

Worldwide
www.dwsimpson.com


Reply
 
Thread Tools Display Modes
  #1  
Old 11-22-2011, 02:17 PM
DeaconMet DeaconMet is offline
Member
 
Join Date: Jan 2004
Posts: 432
Default Ensuring that number formats are carried over hwen converting from XL to CSV

I am dealing with a file that involves IDentification numbers likes this:

123-45

The client gave us these numbers with the dashes in them so we would like to keep them. Unfortunately, even using formatting as text, when the conversion is done to CSV, the "123-45" changes. How can I eliminate this issue?
Reply With Quote
  #2  
Old 11-22-2011, 02:49 PM
ADoubleDot's Avatar
ADoubleDot ADoubleDot is online now
Member
 
Join Date: Nov 2007
Location: Slightly Dusty South
Studying for the rest of my life
Posts: 35,666
Default

I had a problem like this, very frustrating.

I ended up just appending a character to the beginning like a123-45. This forced it to be read/stored as text. Then I pulled it back off for the final display. A little cumbersome, but once it was setup I never had to think about it again.

I'm sure there is some better solution but quick-and-dirty works.
__________________
def no_one(the_spanish_inquisition):

**** Juan.
Reply With Quote
  #3  
Old 11-22-2011, 06:16 PM
DeaconMet DeaconMet is offline
Member
 
Join Date: Jan 2004
Posts: 432
Default

Quote:
Originally Posted by ADoubleDot View Post
I had a problem like this, very frustrating.

I ended up just appending a character to the beginning like a123-45. This forced it to be read/stored as text. Then I pulled it back off for the final display. A little cumbersome, but once it was setup I never had to think about it again.

I'm sure there is some better solution but quick-and-dirty works.
Yeah I tried that and it didn't work though. Thanks though.
Reply With Quote
  #4  
Old 11-23-2011, 08:21 AM
Huki's Avatar
Huki Huki is offline
Member
 
Join Date: Sep 2001
Posts: 240
Default

Quote:
Originally Posted by DeaconMet View Post
I am dealing with a file that involves IDentification numbers likes this:

123-45

The client gave us these numbers with the dashes in them so we would like to keep them. Unfortunately, even using formatting as text, when the conversion is done to CSV, the "123-45" changes. How can I eliminate this issue?
Paste the file into a single column then parse it with MID.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT -4. The time now is 12:13 PM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
*PLEASE NOTE: Posts are not checked for accuracy, and do not
represent the views of the Actuarial Outpost or its sponsors.
Page generated in 0.12904 seconds with 9 queries