Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 28
Default Pulling only first name

I need to pull the first names and first initial of last name into a cell. In
cell g I have the first and last name (john doe). I need cell c to look at
cell g nad return only john d.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Pulling only first name

On Thu, 28 Feb 2008 10:30:06 -0800, krc547
wrote:

I need to pull the first names and first initial of last name into a cell. In
cell g I have the first and last name (john doe). I need cell c to look at
cell g nad return only john d.


Assuming the format is like what you show, then:

=LEFT(TRIM(G1),FIND(" ",TRIM(G1)))&MID(TRIM(G1),FIND(" ",TRIM(G1))+1,1)

--ron
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Pulling only first name

=LEFT(G1,FIND(" ",G1)+1)
--
David Biddulph

"krc547" wrote in message
...
I need to pull the first names and first initial of last name into a cell.
In
cell g I have the first and last name (john doe). I need cell c to look at
cell g nad return only john d.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,069
Default Pulling only first name

If some of the names have middle initials (ie, John Q. Doe), this formula
will work (works without the middle initial also):

=LEFT(G1,SEARCH(" ",G1))&IF(ISERROR(SEARCH(".",G1)), MID(G1,SEARCH("
",G1)+1,1), MID(G1,SEARCH(".",G1)+2,1))

Hope this helps,

Hutch

"Ron Rosenfeld" wrote:

On Thu, 28 Feb 2008 10:30:06 -0800, krc547
wrote:

I need to pull the first names and first initial of last name into a cell. In
cell g I have the first and last name (john doe). I need cell c to look at
cell g nad return only john d.


Assuming the format is like what you show, then:

=LEFT(TRIM(G1),FIND(" ",TRIM(G1)))&MID(TRIM(G1),FIND(" ",TRIM(G1))+1,1)

--ron

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
Pulling Info Schwimms Excel Discussion (Misc queries) 0 June 6th 07 09:00 PM
Pulling top 5 rank? [email protected] Excel Worksheet Functions 1 March 4th 07 05:04 AM
Pulling my hair out here gtg689a Excel Worksheet Functions 0 April 5th 06 03:42 PM
Pulling all information right of this "(" Mcobra41 Excel Discussion (Misc queries) 2 March 15th 05 08:33 PM
Pulling out every nth value Anauna Excel Worksheet Functions 1 February 7th 05 08:27 PM


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