(Msg. 1) Posted: Mon Feb 04, 2008 12:19 pm
Post subject: remove and replace a digit... Archived from groups: microsoft>public>excel>newusers (more info?)
I am trying to remove a digit and replace it with another digit.
I.E.: A1 has '2001' in the cell... I want to change that to '9001'.
I have dabbled with =left (a1,3) to remove the '2' but cannot figure out how
to place the 9 in.
(Msg. 2) Posted: Mon Feb 04, 2008 12:38 pm
Post subject: Re: remove and replace a digit... [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Try this
=SUBSTITUTE(A1,"2","9")*1
=REPLACE(A10,1,1,"9")*1 which is shorter<g>
Gord Dibben MS Excel MVP
On Mon, 4 Feb 2008 12:19:05 -0800, Murph <Murph.RemoveThis@discussions.microsoft.com>
wrote:
>I am trying to remove a digit and replace it with another digit.
>
>I.E.: A1 has '2001' in the cell... I want to change that to '9001'.
>
>I have dabbled with =left (a1,3) to remove the '2' but cannot figure out how
>to place the 9 in.
>
>Thanks in advance.
(Msg. 3) Posted: Mon Feb 04, 2008 3:56 pm
Post subject: Re: remove and replace a digit... [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
On Mon, 4 Feb 2008 12:19:05 -0800, Murph <Murph RemoveThis @discussions.microsoft.com>
wrote:
>I am trying to remove a digit and replace it with another digit.
>
>I.E.: A1 has '2001' in the cell... I want to change that to '9001'.
>
>I have dabbled with =left (a1,3) to remove the '2' but cannot figure out how
>to place the 9 in.
>
>Thanks in advance.
Lots of ways but you don't give enough information.
For example:
=SUBSTITUTE(A1,2,9,1)
will replace the first 2 in a string with a 9.
=REPLACE(A1,1,1,9)
will replace the first character in the string with a 9.
(Msg. 4) Posted: Mon Feb 04, 2008 4:38 pm
Post subject: Re: remove and replace a digit... [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
"Murph" <Murph.DeleteThis@discussions.microsoft.com> wrote in message
news:3F5D6C69-CE7F-4155-A741-8613F04E114B@microsoft.com...
>I am trying to remove a digit and replace it with another digit.
>
> I.E.: A1 has '2001' in the cell... I want to change that to '9001'.
>
> I have dabbled with =left (a1,3) to remove the '2' but cannot figure out
> how
> to place the 9 in.
>
> Thanks in advance.
All times are: Eastern Time (US & Canada) (change)
Page 1 of 1
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum