LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default Trim a cell that has names and address to only show name

Thank you now I need to match this and see if the address match the other
spreadsheet including the names aswell.
How do I do this?

"Rick Rothstein" wrote:

Assuming the text after the full name *always* starts with a number (if it
doesn't, it will be nearly impossible to tell if the third "word" is part of
the name or is a street name without a number)...

=LEFT(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"012345 6789"))-2)

If there might be more than one space between the name and house number,
then use this instead..

=TRIM(LEFT(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0 123456789"))-1))

--
Rick (MVP - Excel)


"Christie" wrote in message
...
I have quite a few cells that have alot of information in them eg surname,
christian name and address. I only need the surname and christian name in
one
cell. How can I do this?
eg Smith Jones 123 Harper St Manly (A1). I need the cell to only show
Smith
Jones (B1)



 
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 create table of cell names with the name's cell address WildwoodEngr Excel Discussion (Misc queries) 1 October 26th 06 02:52 PM
How do I show the address of hyperlink to another cell in Excel ? Outlook写邮件遇到的问题 Excel Discussion (Misc queries) 1 June 7th 06 12:58 PM
address help (similar to trim or transpose) Aaaaa Excel Worksheet Functions 1 March 16th 06 03:18 PM
add email address to a list of names biochemist Excel Discussion (Misc queries) 5 May 17th 05 05:17 PM
HOW DO I ENTER TWO NAMES IN ONE ROW FOR ONE ADDRESS FOR LABELS sheilam Excel Discussion (Misc queries) 1 November 30th 04 03:12 PM


All times are GMT +1. The time now is 08:40 AM.

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"