#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Removing characters

Hello,

I have needed advice from you or a formula for removing the some characters
from the cell or columns,
For example
If I have column formatted like text or numbers, and I would like to remove
first one or first two numbers (characters) on the beginning of the field if
they are 0,

Examle:
Tel. number
03265598
0059842367
05478896
45623178956
00246645898
12355698

The results that I would like to have a
Tel. number
3265598
59842367
5478896
45623178956
246645898
12355698
The same column, but only without 0
· The column is formatted like text.

I hope that you are going to help me, giving me advice how can I do this or
maybe the problem can be solved by formula.

Thank you.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 510
Default Removing characters

Hi,

=substitute(A1,"0","")

HTH
Carim

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default Removing characters

Hi Carim,

I'm afraid your formula won't work when the phone No contains a 0 inside it,
e.g. it converts 03265590 to 326559. I suggest

=TEXT(VALUE(A1),"@")

Regards,
Stefi

Carim ezt *rta:

Hi,

=substitute(A1,"0","")

HTH
Carim


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 510
Default Removing characters

Hi Stefi,

You are absolutely right ...
It is far better to anticipate problems ...

Regards
Carim

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 54
Default Removing characters

I am not clear why you have to use the TEXT function, doesn't =VALUE(A1) do
the same thing?

"Stefi" wrote:

Hi Carim,

I'm afraid your formula won't work when the phone No contains a 0 inside it,
e.g. it converts 03265590 to 326559. I suggest

=TEXT(VALUE(A1),"@")

Regards,
Stefi

Carim ezt *rta:

Hi,

=substitute(A1,"0","")

HTH
Carim




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default Removing characters

Just because Maksko said in his post that his phone Nos are (or may be)
formatted like text. Text function also creates text.

Regards,
Stefi

hot dogs ezt *rta:

I am not clear why you have to use the TEXT function, doesn't =VALUE(A1) do
the same thing?

"Stefi" wrote:

Hi Carim,

I'm afraid your formula won't work when the phone No contains a 0 inside it,
e.g. it converts 03265590 to 326559. I suggest

=TEXT(VALUE(A1),"@")

Regards,
Stefi

Carim ezt *rta:

Hi,

=substitute(A1,"0","")

HTH
Carim


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Removing characters


"Maksko" kirjoitti
...
Hello,

I have needed advice from you or a formula for removing the some
characters
from the cell or columns,
For example
If I have column formatted like text or numbers, and I would like to
remove
first one or first two numbers (characters) on the beginning of the field
if
they are "0",

Examle:
Tel. number
03265598
0059842367
05478896
45623178956
00246645898
12355698

The results that I would like to have a
Tel. number
3265598
59842367
5478896
45623178956
246645898
12355698
The same column, but only without "0"
The column is formatted like text.

I hope that you are going to help me, giving me advice how can I do this
or
maybe the problem can be solved by formula.

Thank you.


Lets assume you have aa unformatted information on A column and want the
formatted information to be in B column.
So B1 would be then something like this:

=if(left(A1;2)="00";right(A1;len(A1)-2);if(left(A1;1)="0";right(A1;len(A1)-1);A1))

Jason







  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 340
Default Removing characters

Select column containing data and choose data text to columns twice.
-First time just click finish (assuming tab delimited)
-Second time click Next Next and select Text to convert back to text

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
Removing characters from a cell (keeping only the numbers) Monk Excel Discussion (Misc queries) 9 January 24th 06 03:32 PM
Removing characters from a cell (keeping only numbers) 2 Monk Excel Discussion (Misc queries) 6 January 24th 06 02:45 PM
Removing unwanted characters Scorpvin Excel Discussion (Misc queries) 8 December 5th 05 09:07 PM
removing pre-set characters from comments Matt G. Excel Worksheet Functions 3 November 15th 05 11:12 PM
Removing Non-Numeric Characters GlenS Excel Discussion (Misc queries) 5 October 12th 05 10:50 AM


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