Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
I have a list of numbers which are written with a space between each set of
numbers. Example: In cell A1 is: 12 13 14 15, in cell A2 is 23 16 17 00 and so on. Is there an easy way to delete all the spaces so the end result is 12131415 and 23161700? With either a formula, a macro, or a VBA module..... -- LEG |
#2
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
Sub replaceblank()
For Each c In Selection c.Value = Replace(c, " ", "") Next End Sub -- Don Guillett Microsoft MVP Excel SalesAid Software "LEG" wrote in message ... I have a list of numbers which are written with a space between each set of numbers. Example: In cell A1 is: 12 13 14 15, in cell A2 is 23 16 17 00 and so on. Is there an easy way to delete all the spaces so the end result is 12131415 and 23161700? With either a formula, a macro, or a VBA module..... -- LEG |
#3
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
Thanks ever so much. It worked!
-- LEG "Don Guillett" skrev: Sub replaceblank() For Each c In Selection c.Value = Replace(c, " ", "") Next End Sub -- Don Guillett Microsoft MVP Excel SalesAid Software "LEG" wrote in message ... I have a list of numbers which are written with a space between each set of numbers. Example: In cell A1 is: 12 13 14 15, in cell A2 is 23 16 17 00 and so on. Is there an easy way to delete all the spaces so the end result is 12131415 and 23161700? With either a formula, a macro, or a VBA module..... -- LEG |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
delete single spaces | Excel Discussion (Misc queries) | |||
How do I delete spaces from the end of text | Excel Discussion (Misc queries) | |||
how do I delete the last two spaces in a cell | Excel Discussion (Misc queries) | |||
Delete Spaces and Join Text in Cell | Excel Worksheet Functions | |||
delete spaces | Excel Worksheet Functions |