Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


stevonz

397 posts

Ultimate Geek

Trusted

#14857 24-Jul-2007 09:44
Send private message

Hi I am ceating text files to to use in various upload tools.  The process I use is to select the cells required (which are in the coreect sequence for my data load) and copy & paste these into Notepad to save as .txt file.

A problem has occurred that has added "quotation marks" around cells that contain text values when I paste this into the text file.  When I uplaod the file the " " are also included, but definitely not wanted.

Any ideas on how I can overcome this frustration?




Cheers, Stevo

Create new topic
NokiaRocks
364 posts

Ultimate Geek
+1 received by user: 1

Trusted

  #79391 24-Jul-2007 09:48
Send private message

I used a find and replace when i did it for dumping data into an mysql database.
In notepad go edit, replace.
In the Find what put in a "
Leave the replace with: blank
Then do a replace all



rwales
122 posts

Master Geek


  #79392 24-Jul-2007 09:50
Send private message

Weird. I'm using Excel 2003 & it doesn't do it for me (using Ctrl+C/Ctrl+V, it just pastes the values without quotes). I tried on cells formatted as 'Normal' and 'Text'.

What version are you using & what formatting is applied to the cells?




All your base are belong to us.

rwales
122 posts

Master Geek


  #79394 24-Jul-2007 09:52
Send private message

NokiaRocks: I used a find and replace when i did it for dumping data into an mysql database.

Find/Replaces can be very risky with large chunks of loosely typed data. Unless you're sure the data doesn't contain quotes or quotes have been converted to entity references etc.




All your base are belong to us.



chiefie
I iz your trusted friend
5877 posts

Uber Geek
+1 received by user: 151

Retired Mod
Trusted
Lifetime subscriber

  #79397 24-Jul-2007 10:01
Send private message

why don't you just export or save-as "txt"?




Internet is my backyard...

 

«Geekzone blog: Tech 'n Chips Takeaway» «Personal blog: And then...»

 

Please read the Geekzone's FUG

 


stevonz

397 posts

Ultimate Geek

Trusted

  #79399 24-Jul-2007 10:04
Send private message

NokiaRocks: I used a find and replace when i did it for dumping data into an mysql database.
In notepad go edit, replace.
In the Find what put in a "
Leave the replace with: blank
Then do a replace all


Sweet!  That worked a treat!

I did look for this myself as I use this in MS word & Excel

RWales: What version are you using & what formatting is applied to the cells?


Excel 2000 - General formatting

Thanks again.

Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.