Office & Productivity Software forum

General discussion

padding in word

by klobes01 / December 6, 2006 11:03 PM PST

I have to enter a bunch of alphanumeric characters into a query in Oracle SQL. This is not a SQL question, but I need to take these alphanumeric characters(everyone 15 digits) and pad the front with ,' and the end with ' soo... a comma and a single quote at the front and a single quote at the end.

I have them currently in an excel spreadsheet in one column.

I tried creating two columns in front and one at the end and then pasting to a word doc/txt file, but I get spaces and the query I need to enter these into does not like the spaces.

I need to select all from one column, pad the front and back, and then paste them into another file without any spaces.

I am stressed over this one, so any help you could provide would be greatly appreciated.

Discussion is locked
You are posting a reply to: padding in word
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: padding in word
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
How I should do this.
by Kees Bakker / December 6, 2006 11:19 PM PST
In reply to: padding in word

- In Excel make a new column with a simple function (using string concatination with the &-operator) to add the comma's and quotes.
- Copy/paste to Word. Gives a table.
- Convert table to text. Gives each constant on a separate line.
- Use edit>replace>more>special (that's Word XP) to delete the paragraph marks (it helps I've set Word to show them).

It would only take a minute or two, without any stress.

It seems you already succeeded in the first 3 steps on your own. Now all you've got to do is delete spaces and paragraph marks as outlined above. What's the problem here?

Kees

Collapse -
another question
by klobes01 / December 6, 2006 11:35 PM PST
In reply to: How I should do this.

thanks for the help, yes I actually created 2 columns in front, and one in back and then pasted to word and removed tabs to get the result, but I am having a problem with the last line of your post which states to replace the paragraph marks and spaces.

What do I replace them with to delete them completely?

Collapse -
Delete=replace with nothing.
by Kees Bakker / December 7, 2006 12:15 AM PST
In reply to: another question

Nothing = Just an empty box (containing the new text). Tab to it, press delete-key a few times to be sure, and go for it.

Couldn't be easier.

Kees

Popular Forums
icon
Computer Newbies 10,686 discussions
icon
Computer Help 54,365 discussions
icon
Laptops 21,181 discussions
icon
Networking & Wireless 16,313 discussions
icon
Phones 17,137 discussions
icon
Security 31,287 discussions
icon
TVs & Home Theaters 22,101 discussions
icon
Windows 7 8,164 discussions
icon
Windows 10 2,657 discussions

CNET FORUMS TOP DISCUSSION

Help, my PC with Windows 10 won't shut down properly

Since upgrading to Windows 10 my computer won't shut down properly. I use the menu button shutdown and the screen goes blank, but the system does not fully shut down. The only way to get it to shut down is to hold the physical power button down till it shuts down. Any suggestions?