Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Tromp
 
Posts: n/a
Default Remove spaces phonenumbers

Hi! I need the vba-formula to remove the spaces between phone numbers.
999 99 999 99999999
9 999 9999 99999999
99 99 99 99 99999999
  #2   Report Post  
Posted to microsoft.public.excel.misc
Allllen
 
Posts: n/a
Default Remove spaces phonenumbers

You don't need VBA
Just use =SUBSTITUTE(A1," ","")
--
Allen


"Tromp" wrote:

Hi! I need the vba-formula to remove the spaces between phone numbers.
999 99 999 99999999
9 999 9999 99999999
99 99 99 99 99999999

  #3   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Remove spaces phonenumbers

Select your range
edit|replace
what: (spacebar)
with: (leave blank)
replace all

If you really need a macro, you can record one when you do it manually.

Tromp wrote:

Hi! I need the vba-formula to remove the spaces between phone numbers.
999 99 999 99999999
9 999 9999 99999999
99 99 99 99 99999999


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Remove spaces phonenumbers


I need the same thing--remove spaces from phone numbers-I removed all the (
) and dashes. I don't understand the response below. I tried pasting the
below formula in the fx box, but nothing happened. I have Excel 2007. TIA
Mudbug


"Allllen" wrote:

You don't need VBA
Just use =SUBSTITUTE(A1," ","")
--
Allen


"Tromp" wrote:

Hi! I need the vba-formula to remove the spaces between phone numbers.
999 99 999 99999999
9 999 9999 99999999
99 99 99 99 99999999

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Remove spaces phonenumbers

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(F2,"(",""),")"," "),"-","")
Look in the vba help index for REPLACE. Or, do an manual one for ( and for )
and for - while recording.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Mudbug" wrote in message
...

I need the same thing--remove spaces from phone numbers-I removed all the
(
) and dashes. I don't understand the response below. I tried pasting the
below formula in the fx box, but nothing happened. I have Excel 2007.
TIA
Mudbug


"Allllen" wrote:

You don't need VBA
Just use =SUBSTITUTE(A1," ","")
--
Allen


"Tromp" wrote:

Hi! I need the vba-formula to remove the spaces between phone numbers.
999 99 999 99999999
9 999 9999 99999999
99 99 99 99 99999999




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Remove spaces phonenumbers


-Don,
I'm sorry, I guess you have to dumb it down for me. The spaces are
different as below.

654 323 4657
844 50 3477
632 62 6630

What is vba? I tried searching the Help Index, but no luck.

Mudbug


"Don Guillett" wrote:

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(F2,"(",""),")"," "),"-","")
Look in the vba help index for REPLACE. Or, do an manual one for ( and for )
and for - while recording.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Mudbug" wrote in message
...

I need the same thing--remove spaces from phone numbers-I removed all the
(
) and dashes. I don't understand the response below. I tried pasting the
below formula in the fx box, but nothing happened. I have Excel 2007.
TIA
Mudbug


"Allllen" wrote:

You don't need VBA
Just use =SUBSTITUTE(A1," ","")
--
Allen


"Tromp" wrote:

Hi! I need the vba-formula to remove the spaces between phone numbers.
999 99 999 99999999
9 999 9999 99999999
99 99 99 99 99999999



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
How do I remove all spaces in a text string dn Excel Discussion (Misc queries) 3 April 2nd 23 07:20 PM
Remove trailing spaces from multiple columns in Excel dcaissie Excel Worksheet Functions 8 May 16th 08 08:21 PM
how to remove spaces in a middle of a cell example '25 566 589. P.M.SANJAY Excel Discussion (Misc queries) 1 January 6th 06 07:23 PM
Remove Leading Spaces Kirk P. Excel Discussion (Misc queries) 3 March 3rd 05 01:30 PM
remove spaces in text in excel GnarlyCar Excel Discussion (Misc queries) 3 February 1st 05 05:02 PM


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

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

About Us

"It's about Microsoft Excel"