Solved

Need to remove extra white space from description field.

Posted on 2012-03-28
6
330 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
  • 3
  • 2
6 Comments
 
LVL 8

Accepted Solution

by:
Leo Torres earned 250 total points
Comment Utility
try
something like

=trim(A1)

where A1 is the field you need trimmed
0
 
LVL 8

Expert Comment

by:Leo Torres
Comment Utility
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
Comment Utility
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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 16

Author Comment

by:MikeMCSD
Comment Utility
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
Comment Utility
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
Comment Utility
worked . . thanks
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
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 in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

728 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now