A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

delete first 4 letters in a cell



 
 
Thread Tools Display Modes
  #1  
Old January 2nd, 2009, 01:38 PM posted to microsoft.public.excel.misc
Wanna Learn
external usenet poster
 
Posts: 340
Default delete first 4 letters in a cell

Hello I want to delete the first four characters in a cell example MRS.
Mary Johnson I want to delete MRS. I tried "left, and mid function but I
must be doing something wrong. Thanks for your help
  #2  
Old January 2nd, 2009, 01:46 PM posted to microsoft.public.excel.misc
Don Guillett
external usenet poster
 
Posts: 6,167
Default delete first 4 letters in a cell

=RIGHT(A5,LEN(A5)-5)
or
=RIGHT(A5,LEN(A5)-FIND(" ",A5))
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Wanna Learn" wrote in message
...
Hello I want to delete the first four characters in a cell example
MRS.
Mary Johnson I want to delete MRS. I tried "left, and mid function but I
must be doing something wrong. Thanks for your help


  #3  
Old January 2nd, 2009, 01:48 PM posted to microsoft.public.excel.misc
Max
external usenet poster
 
Posts: 8,574
Default delete first 4 letters in a cell

On the face of it, this might suffice
With data in A1 down
In B1, copied down: =TRIM(MID(A1,5,99))
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:22,000 Files:370 Subscribers:66
xdemechanik
---
"Wanna Learn" wrote:
Hello I want to delete the first four characters in a cell example MRS.
Mary Johnson I want to delete MRS. I tried "left, and mid function but I
must be doing something wrong. Thanks for your help

  #4  
Old January 2nd, 2009, 07:00 PM posted to microsoft.public.excel.misc
Ron Rosenfeld
external usenet poster
 
Posts: 3,719
Default delete first 4 letters in a cell

On Fri, 2 Jan 2009 05:38:01 -0800, Wanna Learn
wrote:

Hello I want to delete the first four characters in a cell example MRS.
Mary Johnson I want to delete MRS. I tried "left, and mid function but I
must be doing something wrong. Thanks for your help


If you really just want to delete the first four characters, then:

=REPLACE(A1,1,4,"")

If you also want to delete any leading spaces, left over, as there would be
with your example, then:

=trim(REPLACE(A1,1,4,""))

If you want to delete everything up to and including the first space (i.e. the
first word), then:

=MID(A1,FIND(" ",A1)+1,255)

If you only want to delete the first word if it is one of several words, then
it gets more complicated.
--ron
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:42 AM.


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