Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default remove -, keep 0 in phonenumber

I need to format phonenumbers of the type 045-69825 to 04569825.
When I try the search and replace for the -, I lose the 0 in the beginning
of the number. I treid formating the cells to text first, but the 0 still
goes away.

Help, anyone?


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default remove -, keep 0 in phonenumber

Hi Sofie

One way
=TEXT(SUBSTITUTE(A1,"-",""),"00000000")

--
Regards

Roger Govier


"sofie" wrote in message
...
I need to format phonenumbers of the type 045-69825 to 04569825.
When I try the search and replace for the -, I lose the 0 in the
beginning
of the number. I treid formating the cells to text first, but the 0
still
goes away.

Help, anyone?




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default remove -, keep 0 in phonenumber

Thanx, I'll try that!

"Roger Govier" skrev:

Hi Sofie

One way
=TEXT(SUBSTITUTE(A1,"-",""),"00000000")

--
Regards

Roger Govier


"sofie" wrote in message
...
I need to format phonenumbers of the type 045-69825 to 04569825.
When I try the search and replace for the -, I lose the 0 in the
beginning
of the number. I treid formating the cells to text first, but the 0
still
goes away.

Help, anyone?





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
Code to prevent Remove Split or Unfreeze Panes? dk_ Excel Discussion (Misc queries) 6 October 9th 06 08:35 PM
How can i remove the several hyperlink option after entering the . [email protected] Excel Discussion (Misc queries) 1 June 7th 06 03:27 PM
How can i remove the several hyperlink option after entering the . [email protected] Excel Discussion (Misc queries) 2 June 7th 06 03:23 PM
remove characters from a text under a condition [email protected] Excel Discussion (Misc queries) 5 June 5th 06 05:28 PM
want to remove all text characters equal to one character in length from text string [email protected] Excel Worksheet Functions 1 April 18th 05 12:25 AM


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