Solved

Need to remove extra white space from description field.

Posted on 2012-03-28
6
333 Views
Last Modified: 2012-03-28
I have a description column which contains data like this :



"This unit uses the firemaster top, which prevents any accidental discharges.

The canister dimensions are 8 and seven-eight inches by 2 inches. An optional holster can be purchased.


 Utilizes the Firemaster Safety Top to prevent accidental discharge
 Contains 17% Oleoresin Capsicum which gives 2 million Scoville Heat Units
 Has a 3 year shelf life
 Can supply up to 150 one-second bursts
 Total range of stream is 25-30 feet
 Made in USA



Product : SW20"





The problem is I have to save this file as a "Tab Delimited" text file.

All the text in the description needs to be on "one line".

Is there anyway to remove all the extra white space in the description?  
thanks
0
Comment
Question by:MikeMCSD
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 8

Accepted Solution

by:
Leo Torres earned 250 total points
ID: 37776948
try
something like

=trim(A1)

where A1 is the field you need trimmed
0
 
LVL 8

Expert Comment

by:Leo Torres
ID: 37776988
if you have carriage return on a line this should be help full as well

http://www.justanswer.com/computer-programming/27rt7-replace-carriage-return-excel-needs.html
0
 
LVL 12

Assisted Solution

by:kgerb
kgerb earned 250 total points
ID: 37777098
1.  Select the cell(s) you wish to modify and press Ctrl+F (Find).
2.  In the Find what box enter Alt+0010.  This is the ASCII code for carriage return.  Nothing will visibly change but continue anyway.
3.  In the Replace with box enter two spaces, or a comma, or whatever you wish to replace the carriage returns.
4.  Click replace all and you should be finished!

Kyle

Correction:
Alt+0010 is Line Feed, Alt+0013 is Carriage Return.  You may need to run find and replace twice, one for each.
0
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 
LVL 16

Author Comment

by:MikeMCSD
ID: 37777317
thanks guys . . .

The Replace couldn't find those codes so I tried :

=SUBSTITUTE(C2, CHAR(13), " ") 'carriage returns

=SUBSTITUTE(C2, CHAR(10), " ")  'line feeds'

and they both worked the same.
Should I run both of them?
0
 
LVL 8

Expert Comment

by:Leo Torres
ID: 37777327
yes run then both
they are replacing different things.. and you want to get the shortest string possible correct..
0
 
LVL 16

Author Closing Comment

by:MikeMCSD
ID: 37777913
worked . . thanks
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question