Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How to use LEN & LEFT on last name to show only 3 letters

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.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 169
Default How to use LEN & LEFT on last name to show only 3 letters

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 )
--
Tips for Excel, Word, PowerPoint and Other Applications
http://www.kan.org/tips


"Darlie Mary" 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.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default How to use LEN & LEFT on last name to show only 3 letters

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
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.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default How to use LEN & LEFT on last name to show only 3 letters



"M Kan" wrote:

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 )
--
Tips for Excel, Word, PowerPoint and Other Applications
http://www.kan.org/tips


"Darlie Mary" 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.



The entire last name is in Column C and the first name is in Column A.
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default How to use LEN & LEFT on last name to show only 3 letters

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
wrote:

The entire last name is in Column C and the first name is in Column A.- Hide quoted text -

- Show quoted 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
how to show a list of words by typing a few letters chrisbmo2000 Excel Discussion (Misc queries) 3 May 6th 08 12:20 AM
How can I get a leading zero (ZIP code) to show in a LEFT() calc? MarketStEl Excel Worksheet Functions 2 December 11th 07 04:35 AM
Show a Cell at Top Left anshu[_2_] Excel Discussion (Misc queries) 8 July 14th 07 03:30 AM
Excel subtotals do not show on left of row numbers tubsy Excel Worksheet Functions 3 April 20th 07 08:50 PM
How do I not show certain Letters in a range of cells in excel? Taryn McGregor Excel Worksheet Functions 2 October 4th 06 09:49 PM


All times are GMT +1. The time now is 11:09 PM.

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"