Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default a formular to remove spaces in a numeric cell (Phone No)

I want to create a formular in a new numeric cell that removes spaces from
another cell ie 0800 123 456 result 0800123456
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 179
Default a formular to remove spaces in a numeric cell (Phone No)

Hi
Use this function
B1: =SUBSTITUTE(A1," ","")
A1: 0800 123 456

"Joco" wrote:

I want to create a formular in a new numeric cell that removes spaces from
another cell ie 0800 123 456 result 0800123456

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 94
Default a formular to remove spaces in a numeric cell (Phone No)


Joco wrote:
I want to create a formular in a new numeric cell that removes spaces from
another cell ie 0800 123 456 result 0800123456


Hi Joco,

Maybe you can use something like this if your phonenumber is in A1

=SUBSTITUTE(A1," ","")

Regards,
Bondi

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default a formular to remove spaces in a numeric cell (Phone No)


You dont need a formula. Just use Ctrl-F and select Replace.
Enter a space in Find what field and leave the Replace with field
blank.

You will have to reformat the cells to text as when Excel removes the
spaces it will interpret the result as a number


--
Special-K


------------------------------------------------------------------------
Special-K's Profile: http://www.excelforum.com/member.php...fo&userid=7470
View this thread: http://www.excelforum.com/showthread...hreadid=563198

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dav Dav is offline
external usenet poster
 
Posts: 1
Default a formular to remove spaces in a numeric cell (Phone No)


If the cell wit the text in was A3

=SUBSTITUTE(A3," ","") would loose the spaces, but it would still be
formated as text

=SUBSTITUTE(A3," ","")*1 would turn it into a number, but you would
loose leading 0 on phonenumbers. If you formatted to custom and
0000000000

it would produce a leading 0 but if other phonenumbers wee different
lengths it would fail, it is better staying as text

Regards

Dav


--
Dav
------------------------------------------------------------------------
Dav's Profile: http://www.excelforum.com/member.php...o&userid=27107
View this thread: http://www.excelforum.com/showthread...hreadid=563198



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default a formular to remove spaces in a numeric cell (Phone No)

Dav Thanks

I have used your formula, and formatted the column with the formulain to
0000's equal to the longest phone number, and formatted the cell I use for
the enquiery the same way.

The column with the formula is hidden so the addition 00's on the front does
not matter, end result is great

thanks

"Dav" wrote:


If the cell wit the text in was A3

=SUBSTITUTE(A3," ","") would loose the spaces, but it would still be
formated as text

=SUBSTITUTE(A3," ","")*1 would turn it into a number, but you would
loose leading 0 on phonenumbers. If you formatted to custom and
0000000000

it would produce a leading 0 but if other phonenumbers wee different
lengths it would fail, it is better staying as text

Regards

Dav


--
Dav
------------------------------------------------------------------------
Dav's Profile: http://www.excelforum.com/member.php...o&userid=27107
View this thread: http://www.excelforum.com/showthread...hreadid=563198


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default a formular to remove spaces in a numeric cell (Phone No)

Thanks for your formula, you need to add *1 to the end of it to return the
field to a number field

Without you help I would still be strugling

Thanks

"Muhammed Rafeek M" wrote:

Hi
Use this function
B1: =SUBSTITUTE(A1," ","")
A1: 0800 123 456

"Joco" wrote:

I want to create a formular in a new numeric cell that removes spaces from
another cell ie 0800 123 456 result 0800123456

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default a formular to remove spaces in a numeric cell (Phone No)

Thanks for your formula, however I have been advised you need to add *1 to
the end in order to return the cell to a numeric one

thanks for your help.

"Bondi" wrote:


Joco wrote:
I want to create a formular in a new numeric cell that removes spaces from
another cell ie 0800 123 456 result 0800123456


Hi Joco,

Maybe you can use something like this if your phonenumber is in A1

=SUBSTITUTE(A1," ","")

Regards,
Bondi


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
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 03:22 AM
Return SEARCHED Column Number of Numeric Label and Value Sam via OfficeKB.com Excel Worksheet Functions 23 January 30th 06 07:16 PM
CELL IS BLANK BUT NEED IT FILLED WITH SPACES TO A SPECIFIC LENGTH מיכאל (מיקי) אבידן Excel Worksheet Functions 0 August 29th 05 10:55 PM
remove spaces in text in excel GnarlyCar Excel Discussion (Misc queries) 3 February 1st 05 06:02 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 08:16 PM


All times are GMT +1. The time now is 04:23 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"