#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 24
Default Removing a keystroke

Is there a way to remove all spaces within a column of cells? Extra spaces
are screwing up my subtotals. Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Removing a keystroke

Select the cells to want to fix and then use Find/Replace
--
Gary''s Student - gsnu200909


"HeatherJ" wrote:

Is there a way to remove all spaces within a column of cells? Extra spaces
are screwing up my subtotals. Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Removing a keystroke

Select the column
Edit|replace
what: (space character)
with: (leave blank--not even a space character)
replace all

But....

Did you get this data from a web site?

If yes, then you could be seeing those non-breaking HTML spaces.

You can clean them up with formulas, but if you have to do it lots of times (or
with lots of data), you may want to use a macro.

David McRitchie has a macro that can help clean this:
http://www.mvps.org/dmcritchie/excel/join.htm#trimall
(look for "Sub Trimall()")

If you're new to macros:

Debra Dalgleish has some notes how to implement macros he
http://www.contextures.com/xlvba01.html

David McRitchie has an intro to macros:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Ron de Bruin's intro to macros:
http://www.rondebruin.nl/code.htm

(General, Regular and Standard modules all describe the same thing.)

HeatherJ wrote:

Is there a way to remove all spaces within a column of cells? Extra spaces
are screwing up my subtotals. Thanks!


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Removing a keystroke

Select your column
Edit/ Replace:
Find what: [type a space]
Replace with: [leave empty]
Replace All
--
David Biddulph

"HeatherJ" wrote in message
...
Is there a way to remove all spaces within a column of cells? Extra
spaces
are screwing up my subtotals. Thanks!



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Removing a keystroke

Do you want to delete blank rows? Select the cells, press F5, Special,
Blanks, OK. Then Delete etnire rows.

Francis Hayes
www.TheExcelAddict.com


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 136
Default Removing a keystroke

Extra spaces or all spaces? Ctrl + h then find what hit the space and
replace with leave blank will remove all spaces

To remove extra spaces use either the TRIM function with a help column and
then copy and paste special over the old entries or use a macro like TRIMALL
from here


http://www.mvps.org/dmcritchie/excel/join.htm#trimall


how to install here

http://www.mvps.org/dmcritchie/excel...la.htm#install



--


Regards,


Peo Sjoblom


"HeatherJ" wrote in message
...
Is there a way to remove all spaces within a column of cells? Extra
spaces
are screwing up my subtotals. Thanks!



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 24
Default Removing a keystroke

wonderful! thanks so much for responding.
Heather

"David Biddulph" wrote:

Select your column
Edit/ Replace:
Find what: [type a space]
Replace with: [leave empty]
Replace All
--
David Biddulph

"HeatherJ" wrote in message
...
Is there a way to remove all spaces within a column of cells? Extra
spaces
are screwing up my subtotals. Thanks!



.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tab Keystroke in Excel Snakeoids Excel Discussion (Misc queries) 1 April 17th 07 07:10 AM
Tab Keystroke in Excel Snakeoids Excel Discussion (Misc queries) 2 April 13th 07 11:04 PM
One keystroke per cell Steel Keith Excel Discussion (Misc queries) 1 January 12th 07 09:24 PM
Shortcut Keystroke for Name Box L Lightner Excel Discussion (Misc queries) 0 July 28th 06 03:03 AM
Keystroke for Formatting AMaxwell Excel Worksheet Functions 1 February 13th 06 11:06 PM


All times are GMT +1. The time now is 06:06 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"