Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Programing - TEXT - EXCEL

I have a column with LastNames,FirstNames eg. (Alcantara,Alice). I need to
genetate a new column with the first initial of the Firstname and the
LastName eg (aalcantara). Can this be done in excel? if YES, how can be
done?
Please advise

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 419
Default Programing - TEXT - EXCEL

Jose,

Are last name and first name in the same column or in 2 different columns?

This can be done with a formula. No need for code/macros (you are posting
in excel.programming...excel.misc or excel.worksheet.functions would be
better)

LName & FName in 2 different columns:
If "LastNames" is in A1, "FirstNames" is in B1 and your data starts in A2,
then enter this formula in C2:

=LOWER(LEFT(B2,1) & A2)

LName & FName in the same column:
If there is a label in A1 and your data starts in A2, then enter this
formula in B2:

=LOWER(MID(A2,FIND(",",A2)+1,1) & LEFT(A2,FIND(",",A2)-1))

which ever way you use, copy the formula down as far as you need.

HTH,

Conan




"Jose Cabral" wrote in message
...
I have a column with LastNames,FirstNames eg. (Alcantara,Alice). I need to
genetate a new column with the first initial of the Firstname and the
LastName eg (aalcantara). Can this be done in excel? if YES, how can be
done?
Please advise



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Programing - TEXT - EXCEL

Hi Conan:

Thank you very much.

"Conan Kelly" wrote:

Jose,

Are last name and first name in the same column or in 2 different columns?

This can be done with a formula. No need for code/macros (you are posting
in excel.programming...excel.misc or excel.worksheet.functions would be
better)

LName & FName in 2 different columns:
If "LastNames" is in A1, "FirstNames" is in B1 and your data starts in A2,
then enter this formula in C2:

=LOWER(LEFT(B2,1) & A2)

LName & FName in the same column:
If there is a label in A1 and your data starts in A2, then enter this
formula in B2:

=LOWER(MID(A2,FIND(",",A2)+1,1) & LEFT(A2,FIND(",",A2)-1))

which ever way you use, copy the formula down as far as you need.

HTH,

Conan




"Jose Cabral" wrote in message
...
I have a column with LastNames,FirstNames eg. (Alcantara,Alice). I need to
genetate a new column with the first initial of the Firstname and the
LastName eg (aalcantara). Can this be done in excel? if YES, how can be
done?
Please advise




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
Programing a button in excel Josh Johansen Excel Programming 12 June 20th 07 12:54 PM
excel programing rlenz Excel Discussion (Misc queries) 2 April 18th 06 02:41 PM
Excel VB Programing MSUSER57 Excel Programming 1 January 9th 06 04:56 PM
this is about excel programing ELIYA HAMATI Excel Programming 1 December 13th 04 09:43 PM
help with excel programing drummerboy827[_4_] Excel Programming 1 September 27th 03 03:31 PM


All times are GMT +1. The time now is 03:02 PM.

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"