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 Extract a string from a cell

I have a column of data in this format
Lastname, Firstname

I want to extract only the Lastname
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Extract a string from a cell

Try this:

=LEFT(A1,FIND(",",A1)-1)

Copy down as needed.
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"MrLarrier" wrote in message
...
I have a column of data in this format
Lastname, Firstname

I want to extract only the Lastname


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Extract a string from a cell

Use this in a helper column:

=LEFT(A1,FIND(",",A1)-1)

and then copy down as required.

Hope this helps.

Pete


On Jan 13, 4:31*pm, MrLarrier
wrote:
I have a column of data in this format
Lastname, Firstname

I want to extract only the Lastname


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Extract a string from a cell

=LEFT(A2,FIND(",",A2)-1) is one option.

Another method is to use Data/ Text to Columns, delimited by commas, and
tell it to skip the second column.
--
David Biddulph


"MrLarrier" wrote in message
...
I have a column of data in this format
Lastname, Firstname

I want to extract only the Lastname



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
Extract from string mark Excel Discussion (Misc queries) 2 August 8th 06 12:38 PM
Extract certain parts of string djDaemon Excel Worksheet Functions 0 February 2nd 06 03:31 PM
Extract sub string sixbeforedawn Excel Worksheet Functions 2 October 24th 05 09:50 AM
Extract hyperlink string from excel cell Ryan Sapien Links and Linking in Excel 1 January 20th 05 12:24 AM
How do you extract numbers from a string of chacters in a cell (E. blackbeemer Excel Worksheet Functions 6 November 12th 04 09:00 AM


All times are GMT +1. The time now is 07:50 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"