Formating Numbers

K

klafert

I have a spreadsheet and in one column I have numbers like below:


5/14/08 5280-3-01 Test
5/14/08 5280-3-01 Test
5/14/08 5280-3-01 Test
5/14/08 1030-0-01 Test
5/14/08 2101-0-01 Test
5/14/08 1030-0-01 Test
5/14/08 2101-0-01 Test

I have formated the 2ND column in Text, Number, every type of format. I
even tried re-typing the number manually, and copy and pasted everything in
a new spreadsheet and re-typed the number again. But when I save this
spreadsheet to .csv the 5280-3-01 turns into a date. I even manually
formatted and re-typed the number in the .csv file. I don't have to open the
file after I save it in a .csv because I am importing it into another
program. However, when I tried to import the file it bombs on this column,
yet the rest of the numbers in the same format will go import. I have already
done this before with the same number. However all the other numbers in
column 2 starting with the 4th line comes out fine. I formatted the whole
column the same.


The first 3 lines were the number is 5280-3-01 - I
 
S

Sheeloo

Type ' before typing the numbers in the cell.

You can use a formula like
=CONCATENATE("'",A1)
to avoid typing all the numbers manually.

Test this out with a couple of rows first.
 
R

Ron Rosenfeld

I have a spreadsheet and in one column I have numbers like below:


5/14/08 5280-3-01 Test
5/14/08 5280-3-01 Test
5/14/08 5280-3-01 Test
5/14/08 1030-0-01 Test
5/14/08 2101-0-01 Test
5/14/08 1030-0-01 Test
5/14/08 2101-0-01 Test

I have formated the 2ND column in Text, Number, every type of format. I
even tried re-typing the number manually, and copy and pasted everything in
a new spreadsheet and re-typed the number again. But when I save this
spreadsheet to .csv the 5280-3-01 turns into a date. I even manually
formatted and re-typed the number in the .csv file. I don't have to open the
file after I save it in a .csv because I am importing it into another
program. However, when I tried to import the file it bombs on this column,
yet the rest of the numbers in the same format will go import. I have already
done this before with the same number. However all the other numbers in
column 2 starting with the 4th line comes out fine. I formatted the whole
column the same.


The first 3 lines were the number is 5280-3-01 - I

You may be mistaken.

Unless there is something else going on, when you SAVE the spreadsheet to .csv
the 5280-3-01 does NOT turn into a date. Rather, it turns into a date when you
OPEN the previously saved .csv file.

Have you tried opening the .csv file using NOTEPAD? If you do, you may find
that the data is saved properly.

If you want to open the .csv file in Excel, and NOT have the 2nd column turn
into dates, you will have to change the suffix to .txt. You will then get the
text import wizard when you try to open the file, and can specify column 2 as
being text, and not a date.

If you are having a problem with the other program into which you are importing
this data, it may be that there is something other problem.

When I take your data, and save it as a .csv file; then open that file in
notepad, I get:

5/14/2008,5280-3-01,Test
5/14/2008,5280-3-01,Test
5/14/2008,5280-3-01,Test
5/14/2008,1030-0-01,Test
5/14/2008,2101-0-01,Test
5/14/2008,1030-0-01,Test
5/14/2008,2101-0-01,Test





--ron
 
K

klafert

No I not mistaken


Ron Rosenfeld said:
You may be mistaken.

Unless there is something else going on, when you SAVE the spreadsheet to .csv
the 5280-3-01 does NOT turn into a date. Rather, it turns into a date when you
OPEN the previously saved .csv file.

Have you tried opening the .csv file using NOTEPAD? If you do, you may find
that the data is saved properly.

If you want to open the .csv file in Excel, and NOT have the 2nd column turn
into dates, you will have to change the suffix to .txt. You will then get the
text import wizard when you try to open the file, and can specify column 2 as
being text, and not a date.

If you are having a problem with the other program into which you are importing
this data, it may be that there is something other problem.

When I take your data, and save it as a .csv file; then open that file in
notepad, I get:

5/14/2008,5280-3-01,Test
5/14/2008,5280-3-01,Test
5/14/2008,5280-3-01,Test
5/14/2008,1030-0-01,Test
5/14/2008,2101-0-01,Test
5/14/2008,1030-0-01,Test
5/14/2008,2101-0-01,Test





--ron
.
 
K

klafert

I not importing this into Excel and it must be in the .csv format. I done
this a million times. Last night I went to edit clear formats and formatted
the column to be Text saved it as .csv was able to open the file with the
correct information but today it won't. It still changes to dates. I tried
pasting this into a new spreadsheet. I even used
 
K

klafert

I not mistaken and I have tried everything. Last night it seemsed I had it
working but not today. I even started a new spreadsheet and clear the format
and formatted fresh using text. That doesn't work. I done this a million
times and now .... There must be something I can do. I am pasting how the
data looks when I open it with note pad below:

Date,Account ID,Reference,Trans Description,Amount,acct,Number of
Distributions,Recur Number,Recur Frequency
05/14/2008,5280-3-01,AP015843,AT&T ADVERTISING,-2020,,8,,
05/14/2008,5280-3-01,AP015843,AT&T ADVERTISING,-2020,,8,,
05/14/2008,5280-3-01,AP015843,CRYSTAL CLEAR SOLUTIONS,-1875,,8,,
05/14/2008,5280-3-01,AP015843,CRYSTAL CLEAR SOLUTIONS,-1875,,8,,
05/14/2008,2101-0-01,AP015843,V:1632/C:8307,-1875,,8,,
05/14/2008,2101-0-01,AP015843,V:1632/C:8307,-1875,,8,,
05/14/2008,5280-3-01,AP015843,TIPMASTER'S,-115,,8,,
05/14/2008,5280-3-01,AP015843,TIPMASTER'S,-115,,8,,
05/14/2008,2101-0-01,AP015843,TIPMASTER'S,115.00,,8,,
05/14/2008,2101-0-01,AP015843,TIPMASTER'S,115.00,,8,,
05/14/2008,1030-0-01,AP015843,V:1632/C:8307,"1,875.00",,8,,
05/14/2008,1030-0-01,AP015843,V:1632/C:8307,"1,875.00",,8,,
05/14/2008,2101-0-01,AP015843,CRYSTAL CLEAR SOLUTIONS,"1,875.00",,8,,
05/14/2008,2101-0-01,AP015843,CRYSTAL CLEAR SOLUTIONS,"1,875.00",,8,,
05/14/2008,2101-0-01,AP015843,AT&T ADVERTISING,"2,020.00",,8,,
05/14/2008,2101-0-01,AP015843,AT&T ADVERTISING,"2,020.00",,8
 
K

klafert

I just want to make sure I understand you. Do I put this formula in another
column or in the same column and then type the numbers.
 
K

klafert

This is what the file looks like when open with Note Pad:

Date,Account ID,Reference,Trans Description,Amount,Number of
Distributions,Recur Number,Recur Frequency
5/14/08,5280-3-01,AP015843,TIPMASTER'S,-115,8,,
5/14/08,5280-3-01,AP015843,TIPMASTER'S,-115,8,,
5/14/08,5280-3-01,AP015843,AT&T ADVERTISING,-2020,8,,
5/14/08,5280-3-01,AP015843,CRYSTAL CLEAR SOLUTIONS,-1875,8,,
5/14/08,5280-3-01,AP015843,AT&T ADVERTISING,-2020,8,,
5/14/08,5280-3-01,AP015843,CRYSTAL CLEAR SOLUTIONS,-1875,8,,
5/14/08,1030-0-01,AP015843,V:1632/C:8307,"1,875.00",8,,
5/14/08,1030-0-01,AP015843,V:1632/C:8307,"1,875.00",8,,
5/14/08,2101-0-01,AP015843,AT&T ADVERTISING,"2,020.00",8,,
5/14/08,2101-0-01,AP015843,TIPMASTER'S,115.00,8,,
5/14/08,2101-0-01,AP015843,CRYSTAL CLEAR SOLUTIONS,"1,875.00",8,,
5/14/08,2101-0-01,AP015843,V:1632/C:8307,-1875,8,,
5/14/08,2101-0-01,AP015843,AT&T ADVERTISING,"2,020.00",8,,
5/14/08,2101-0-01,AP015843,TIPMASTER'S,115.00,8,,
5/14/08,2101-0-01,AP015843,CRYSTAL CLEAR SOLUTIONS,"1,875.00",8,,
5/14/08,2101-0-01,AP015843,V:1632/C:8307,-1875,8

I not mistaken it turns 5280-3-01 into a date
 
K

klafert

I not mistaken and I am importing this into an accounting program. However,
I can't open the .csv file in Excel without the number 5280-3-01 into a date.
I am pasting how the file looks when you open it using notepad:

Date,Account ID,Reference,Trans Description,Amount,Number of
Distributions,Recur Number,Recur Frequency
5/14/08,5280-3-01,AP015843,TIPMASTER'S,-115,8,,
5/14/08,5280-3-01,AP015843,TIPMASTER'S,-115,8,,
5/14/08,5280-3-01,AP015843,AT&T ADVERTISING,-2020,8,,
5/14/08,5280-3-01,AP015843,CRYSTAL CLEAR SOLUTIONS,-1875,8,,
5/14/08,5280-3-01,AP015843,AT&T ADVERTISING,-2020,8,,
5/14/08,5280-3-01,AP015843,CRYSTAL CLEAR SOLUTIONS,-1875,8,,
5/14/08,1030-0-01,AP015843,V:1632/C:8307,"1,875.00",8,,
5/14/08,1030-0-01,AP015843,V:1632/C:8307,"1,875.00",8,,
5/14/08,2101-0-01,AP015843,AT&T ADVERTISING,"2,020.00",8,,
5/14/08,2101-0-01,AP015843,TIPMASTER'S,115.00,8,,
5/14/08,2101-0-01,AP015843,CRYSTAL CLEAR SOLUTIONS,"1,875.00",8,,
5/14/08,2101-0-01,AP015843,V:1632/C:8307,-1875,8,,
5/14/08,2101-0-01,AP015843,AT&T ADVERTISING,"2,020.00",8,,
5/14/08,2101-0-01,AP015843,TIPMASTER'S,115.00,8,,
5/14/08,2101-0-01,AP015843,CRYSTAL CLEAR SOLUTIONS,"1,875.00",8,,
5/14/08,2101-0-01,AP015843,V:1632/C:8307,-1875,8
It looks correct there but in the .csv (excel view) :

Date Account ID Reference Trans Description Amount Number of
Distributions Recur Number Recur Frequency
5/14/2008 3/1/5280 AP015843 TIPMASTER'S -115 8
5/14/2008 3/1/5280 AP015843 TIPMASTER'S -115 8
5/14/2008 3/1/5280 AP015843 AT&T ADVERTISING -2020 8
5/14/2008 3/1/5280 AP015843 CRYSTAL CLEAR SOLUTIONS -1875 8
5/14/2008 3/1/5280 AP015843 AT&T ADVERTISING -2020 8
5/14/2008 3/1/5280 AP015843 CRYSTAL CLEAR SOLUTIONS -1875 8
5/14/2008 1030-0-01 AP015843 V:1632/C:8307 1,875.00 8
5/14/2008 1030-0-01 AP015843 V:1632/C:8307 1,875.00 8
5/14/2008 2101-0-01 AP015843 AT&T ADVERTISING 2,020.00 8
5/14/2008 2101-0-01 AP015843 TIPMASTER'S 115 8
5/14/2008 2101-0-01 AP015843 CRYSTAL CLEAR SOLUTIONS 1,875.00 8
5/14/2008 2101-0-01 AP015843 V:1632/C:8307 -1875 8
5/14/2008 2101-0-01 AP015843 AT&T ADVERTISING 2,020.00 8
5/14/2008 2101-0-01 AP015843 TIPMASTER'S 115 8
5/14/2008 2101-0-01 AP015843 CRYSTAL CLEAR SOLUTIONS 1,875.00 8
5/14/2008 2101-0-01 AP015843 V:1632/C:8307 -1875 8

Notice the 2101-0-01 doesn't change to a date. I f I could I send you the
file but I dont think I can do that here in the Community - can I?
 
G

Gord Dibben

Don't open the csv file in Excel.

Import the csv file directly into your accounting program.


Gord Dibben MS Excel MVP
 
R

Ron Rosenfeld

I not mistaken and I am importing this into an accounting program. However,
I can't open the .csv file in Excel without the number 5280-3-01 into a date.
I am pasting how the file looks when you open it using notepad:

You are mistaken when you wrote that SAVING the file in csv format changes it.
It is NOT being changed when you SAVE the file as evidenced by what you just
pasted below! (It is being changed when you OPEN the file in Excel).
Date,Account ID,Reference,Trans Description,Amount,Number of
Distributions,Recur Number,Recur Frequency
5/14/08,5280-3-01,AP015843,TIPMASTER'S,-115,8,,
5/14/08,5280-3-01,AP015843,TIPMASTER'S,-115,8,,
5/14/08,5280-3-01,AP015843,AT&T ADVERTISING,-2020,8,,
5/14/08,5280-3-01,AP015843,CRYSTAL CLEAR SOLUTIONS,-1875,8,,
5/14/08,5280-3-01,AP015843,AT&T ADVERTISING,-2020,8,,
5/14/08,5280-3-01,AP015843,CRYSTAL CLEAR SOLUTIONS,-1875,8,,
5/14/08,1030-0-01,AP015843,V:1632/C:8307,"1,875.00",8,,
5/14/08,1030-0-01,AP015843,V:1632/C:8307,"1,875.00",8,,
5/14/08,2101-0-01,AP015843,AT&T ADVERTISING,"2,020.00",8,,
5/14/08,2101-0-01,AP015843,TIPMASTER'S,115.00,8,,
5/14/08,2101-0-01,AP015843,CRYSTAL CLEAR SOLUTIONS,"1,875.00",8,,
5/14/08,2101-0-01,AP015843,V:1632/C:8307,-1875,8,,
5/14/08,2101-0-01,AP015843,AT&T ADVERTISING,"2,020.00",8,,
5/14/08,2101-0-01,AP015843,TIPMASTER'S,115.00,8,,
5/14/08,2101-0-01,AP015843,CRYSTAL CLEAR SOLUTIONS,"1,875.00",8,,
5/14/08,2101-0-01,AP015843,V:1632/C:8307,-1875,8
It looks correct there but in the .csv (excel view) :


Why do you need to open it in Excel?

I thought you wrote you were exporting it to another program?

***If you need to open it in Excel, I gave you instructions in my initial post.
--ron
 
K

klafert

Agian I am sorry for the duplicates Posting for some reason they did not show
up yesterday. I was able to view them early am today.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top