Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / July 2008

Tip: Looking for answers? Try searching our database.

How to use LEN & LEFT on last name to show only 3 letters

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Darlie Mary - 25 Jul 2008 00:49 GMT
Need syntax to show first 3 letters of last name and first letter of first
name. Also if last name only has 2 letters, need to add a Z on end to make 3
letters.
M Kan - 25 Jul 2008 00:54 GMT
How are the first and last names separated and do you have any 2-part last
names?  Assuming they are in separate cells, the formula would look like this"

A1 = First Name
B1 = Last Name

=IF(LEN(B3)=2,LEFT(B1,3)&"Z",LEFT(B1,3))&LEFT(A1,1)
Signature

Tips for Excel, Word, PowerPoint and Other Applications
http://www.kan.org/tips

> Need syntax to show first 3 letters of last name and first letter of first
> name. Also if last name only has 2 letters, need to add a Z on end to make 3
> letters.
Darlie Mary - 25 Jul 2008 01:21 GMT
> How are the first and last names separated and do you have any 2-part last
> names?  Assuming they are in separate cells, the formula would look like this"
[quoted text clipped - 7 lines]
> > name. Also if last name only has 2 letters, need to add a Z on end to make 3
> > letters.

The entire last name is in Column C and the first name is in Column A.
Pete_UK - 25 Jul 2008 01:52 GMT
Okay, try this:

=IF(LEN(C2)=2,C2&"Z",LEFT(C2,3))&LEFT(A2,1)

assuming you have a header row so that your data begins in row 2.

Hope this helps.

Pete

On Jul 25, 1:21 am, Darlie Mary <DarlieM...@discussions.microsoft.com>
wrote:

> The entire last name is in Column C and the first name is in Column A.- Hide quoted text -
>
> - Show quoted text -
Pete_UK - 25 Jul 2008 00:54 GMT
How is your data organised? First_name and Last_name in separate
cells? First_name and Last_name in one cell separated by a space?
Last_name and First_name in one cell separated by a comma and
space? ... ???

Pete

On Jul 25, 12:49 am, Darlie Mary <Darlie
M...@discussions.microsoft.com> wrote:
> Need syntax to show first 3 letters of last name and first letter of first
> name. Also if last name only has 2 letters, need to add a Z on end to make 3
> letters.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.