View previous topic :: View next topic |
Author |
Message |
sub Beginner
Joined: 30 Jan 2007 Posts: 20 Topics: 12
|
Posted: Mon Jan 26, 2009 12:17 pm Post subject: Numbers with Email in excel format from mainframe |
|
|
I have a file which looks like as given below
NO , NAME , ACCT NBR , AMT
01 , XXXXX , 00121232 , =" 20,000"
02 , AAAAA , 34354545 , ="200,000"
03 , RRRRR , 45454554 , ="150,000"
I am sending it by e-mail in .CSV format. The file should have only 4 columns but the AMT column is getting split at the comma when i open in the excel. The AMT value ="20,000" comes as ="20 in 4th column and 000" in the 5th column. If I don't use comma the excel is fine but can someone help me to get comma for the AMT column. Is there a solution to send the numbers with comma separator and not getting split into 2 columns?
Thanks
sub |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12380 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
bauer Intermediate
Joined: 10 Oct 2003 Posts: 317 Topics: 50 Location: Germany
|
Posted: Tue Jan 27, 2009 9:47 am Post subject: |
|
|
Doesn't mean using TAB instead of comma to change the dataformat from CSV to TAB separated, with other extension at the pc.
I would prefere to use ; as delimiter.
Wyh is the equal sign part of the data? Removing the equal sign is the other possibility.
regards,
bauer |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12380 Topics: 75 Location: San Jose
|
Posted: Tue Jan 27, 2009 1:47 pm Post subject: |
|
|
bauer wrote: | Why is the equal sign part of the data? Removing the equal sign is the other possibility.
regards,
bauer |
Nope. OP needs the equal sign to preserve the leading zero's in the amount column. if you put the numeric field with leading zeros excel will render the column in scientific format removing the leading zeros. With an equal sign and the field enclosed in quotes, excel will treat the column as text column and retain the leading zeros
Check this link which discusses the same
http://www.mvsforums.com/helpboards/viewtopic.php?p=41425#41425 |
|
Back to top |
|
 |
|
|