PC Review


Reply
Thread Tools Rate Thread

Data import, carriage return

 
 
Sam
Guest
Posts: n/a
 
      28th Aug 2007
Hi,

After I export addresses from our database to a .txt file.

When I open it in Excel
the address fields start a new row like below:
Name
Address1
Address2
Address3

Not the format I wanted
Name Address1 Address2 Address3

How to import the .txt to the correct columns?

If I open it in Notepad
When the Format - Word Wrap is selected, the appearance is the same as
Excel
When the Format - Word Wrap is unselecte, the Address1, Address2 and
Address3 are separated by a small square (I suspect it's a carriage
return)

Is there a way in Notepad to replace the small squares with a "!"?
Then hopefully Excel would import them with the right column, however,
the title of the column might not correctly lined up.

If I open it in Word, the appearance is similar as Excel.
If I Find "^p", I could find that at the end of every whole record
If I Find "^013", I could not only find that at the end of every whole
record, but also at the end of Address1, Address2...
Maybe there is a ASCII code for the small squares only?

At the moment, I could
In Word, replace the "^p" to "End***End", then replace the "^013"
to !, then replace "End***End" to "^p", save it as .txt.
In Excel open the .txt. copy of the column field alone to a new Excel,
save into tab deliminated, then open withe deliminator with Other "!",
then copy the columns back to the original file.
It's quite a work aroud.

I am sure there are better ways. Hopefully you could help.

Regards
Sam

 
Reply With Quote
 
 
 
 
Gary Keramidas
Guest
Posts: n/a
 
      28th Aug 2007

did you search for 010?


--


Gary


"Sam" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> After I export addresses from our database to a .txt file.
>
> When I open it in Excel
> the address fields start a new row like below:
> Name
> Address1
> Address2
> Address3
>
> Not the format I wanted
> Name Address1 Address2 Address3
>
> How to import the .txt to the correct columns?
>
> If I open it in Notepad
> When the Format - Word Wrap is selected, the appearance is the same as
> Excel
> When the Format - Word Wrap is unselecte, the Address1, Address2 and
> Address3 are separated by a small square (I suspect it's a carriage
> return)
>
> Is there a way in Notepad to replace the small squares with a "!"?
> Then hopefully Excel would import them with the right column, however,
> the title of the column might not correctly lined up.
>
> If I open it in Word, the appearance is similar as Excel.
> If I Find "^p", I could find that at the end of every whole record
> If I Find "^013", I could not only find that at the end of every whole
> record, but also at the end of Address1, Address2...
> Maybe there is a ASCII code for the small squares only?
>
> At the moment, I could
> In Word, replace the "^p" to "End***End", then replace the "^013"
> to !, then replace "End***End" to "^p", save it as .txt.
> In Excel open the .txt. copy of the column field alone to a new Excel,
> save into tab deliminated, then open withe deliminator with Other "!",
> then copy the columns back to the original file.
> It's quite a work aroud.
>
> I am sure there are better ways. Hopefully you could help.
>
> Regards
> Sam
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: Carriage Return to a data row??? Lisa W. Microsoft Access 0 1st Apr 2008 12:39 AM
Data import, carriage return Sam Microsoft Excel Programming 1 28th Aug 2007 11:56 AM
Excel import txt file carriage return as delimiters =?Utf-8?B?R29yZG8gVA==?= Microsoft Excel Misc 5 2nd Aug 2006 01:55 PM
Carriage return on "Import External Data" =?Utf-8?B?Q3JhaWcgSmFja3Nvbg==?= Microsoft Excel Misc 2 2nd Jan 2004 04:26 PM
Re: Import Data Containing Carriage Return Dan E Microsoft Excel Worksheet Functions 1 11th Jul 2003 03:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:31 AM.