remove space preceeding text

mark91345

Board Regular
Joined
Feb 11, 2011
Messages
113
Hi,
I keep having these "spaces" preceeding my text that I want to remove... but how do I do it globally? I don't know how to show an excel table in my email, so please be patient with me. As you can (hopefully) see, my row headers and columnar information is off by one space. How can I remove the space WITHOUT removing the space from the "city" column (i.e. Twin Falls, not TwinFalls)?

<table width="568" border="0" cellpadding="0" cellspacing="0"><col style="width: 58pt;" width="77"> <col style="width: 47pt;" width="62" span="2"> <col style="width: 125pt;" width="167"> <col style="width: 104pt;" width="138"> <col style="width: 47pt;" width="62"> <tbody><tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; width: 58pt;" width="77" height="20">call</td> <td class="xl65" style="width: 47pt;" width="62">freq</td> <td class="xl65" style="width: 47pt;" width="62">am_fm</td> <td class="xl65" style="width: 125pt;" width="167">genre</td> <td class="xl65" style="width: 104pt;" width="138">city</td> <td class="xl65" style="width: 47pt;" width="62">st</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt;" height="20"> KACH </td> <td class="xl65"> 1340</td> <td class="xl65"> AM</td> <td class="xl65"> Oldies </td> <td class="xl65"> Preston </td> <td class="xl65">id</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt;" height="20"> KAGF
</td> <td class="xl65"> 105.5</td> <td class="xl65"> FM</td> <td class="xl65"> Religious </td> <td class="xl65"> Twin Falls </td> <td class="xl65">id</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt;" height="20">
</td> <td class="xl65">
</td> <td class="xl65">
</td> <td class="xl65">
</td> <td class="xl65">
</td> <td class="xl65">
</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt;" height="20">
</td> <td class="xl65">
</td> <td class="xl65">
</td> <td class="xl65">
</td> <td class="xl65">
</td> <td class="xl65">
</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt;" height="20">
</td> <td class="xl65">
</td> <td class="xl65">
</td> <td class="xl65">
</td> <td class="xl65">
</td> <td class="xl65">
</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt;" height="20">
</td> <td class="xl65">
</td> <td class="xl65">
</td> <td class="xl65">
</td> <td class="xl65">
</td> <td class="xl65">
</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt;" height="20">
</td> <td class="xl65">
</td> <td class="xl65">
</td> <td class="xl65">
</td> <td class="xl65">
</td> <td class="xl65">
</td> </tr> </tbody></table>
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

mark91345

Board Regular
Joined
Feb 11, 2011
Messages
113
okay, now when I NEED the columns to show they're off, they line up in the email.
OY.
 

CWatts

Well-known Member
Joined
Jan 22, 2010
Messages
701
Try using the TRIM function.

So assuming A1 you have " Twin Falls", "Twin Falls" or "Twin Falls "

just use =TRIM(A1)
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,530
Messages
5,837,891
Members
430,520
Latest member
VenkateshRajaganesan

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top