Go Back   Trackpads Community > General Discussions > Computer and Technology > Microsoft Applications

Microsoft Applications Discussions about Windows and other MS Products such as Office

Reply
 
LinkBack Thread Tools
Old 06-16-2004, 02:53   #1 (permalink)
Stunners
Civilians

 
Default Help with: =RIGHT(A2,LEN(A2)-FIND(" ",A2))

Ok, Am trying to split up Full Names in a cell. I got this formula from MS's
training section of their website.
It works great when the name is John Smith. Problem is when the guy's name
is something like John A. Smith. It only recognizes the first space, and
counts the last name from there.

My names have as many as 2 or 3 spaces (John and Sarah Smith).
Can someone please help me?

Thanks!
Yoni




 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Trackpads Information
Click to Visit
Old 06-16-2004, 02:53   #2 (permalink)
Andy B
Civilians

 
Default Re: Help with: =RIGHT(A2,LEN(A2)-FIND(" ",A2))

Hi

Try this:
=LEFT(A1,FIND("^",SUBSTITUTE(A1," ","^",LEN(A1)-LEN(SUBSTITUTE(A1,"
",""))))-1)
for the first name/s
and this:
=RIGHT(A1,LEN(A1)-FIND("^",SUBSTITUTE(A1," ","^",LEN(A1)-LEN(SUBSTITUTE(A1,"
","")))))
for the surname.

--
Andy.


"Stunners" <massuds2000@yahoo.com> wrote in message
news:9NJoc.6484$ol3.3719@fe20.usenetserver.com...
> Ok, Am trying to split up Full Names in a cell. I got this formula from

MS's
> training section of their website.
> It works great when the name is John Smith. Problem is when the guy's name
> is something like John A. Smith. It only recognizes the first space, and
> counts the last name from there.
>
> My names have as many as 2 or 3 spaces (John and Sarah Smith).
> Can someone please help me?
>
> Thanks!
> Yoni
>
>
>
>



 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-16-2004, 02:53   #3 (permalink)
Peo Sjoblom
Civilians

 
Default Re: Help with: =RIGHT(A2,LEN(A2)-FIND(" ",A2))

One way

=RIGHT(A1,LEN(A1)-SEARCH(CHAR(190),SUBSTITUTE(A1,"
",CHAR(190),LEN(A1)-LEN(SUBSTITUTE(A1," ","")))))

that will extract the last name unless there is a JR or II or something,
those you need to
do manually

Assume you extract the last names in column G, now in another column use

=SUBSTITUTE(A1,G1,"")

and copy down

--

Regards,

Peo Sjoblom


"Stunners" <massuds2000@yahoo.com> wrote in message
news:9NJoc.6484$ol3.3719@fe20.usenetserver.com...
> Ok, Am trying to split up Full Names in a cell. I got this formula from

MS's
> training section of their website.
> It works great when the name is John Smith. Problem is when the guy's name
> is something like John A. Smith. It only recognizes the first space, and
> counts the last name from there.
>
> My names have as many as 2 or 3 spaces (John and Sarah Smith).
> Can someone please help me?
>
> Thanks!
> Yoni
>
>
>
>



 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-16-2004, 02:53   #4 (permalink)
Stunners
Civilians

 
Default Re: Help with: =RIGHT(A2,LEN(A2)-FIND(" ",A2))

Thanks Man, worked perfectly.
Since that seemed to be too easy for you, how about throwing something in
there that:
If there is only 1 name, we will assume its a first name, so copy it over
when checking for first names, and give a blank response for the Last Name.

Say, original name is Amanda, Have new First Name field show Amanda, and
have the Last Name field be empty (but errorfree).

If it too big of a deal, then don't worry about it.
Again, huge thanks!!
Yoni
"Andy B" <andyb@takethisbitout.dawsons.co.uk> wrote in message
news:%23thcCgOOEHA.640@TK2MSFTNGP12.phx.gbl...
> Hi
>
> Try this:
> =LEFT(A1,FIND("^",SUBSTITUTE(A1," ","^",LEN(A1)-LEN(SUBSTITUTE(A1,"
> ",""))))-1)
> for the first name/s
> and this:
> =RIGHT(A1,LEN(A1)-FIND("^",SUBSTITUTE(A1,"

","^",LEN(A1)-LEN(SUBSTITUTE(A1,"
> ","")))))
> for the surname.
>
> --
> Andy.
>
>
> "Stunners" <massuds2000@yahoo.com> wrote in message
> news:9NJoc.6484$ol3.3719@fe20.usenetserver.com...
> > Ok, Am trying to split up Full Names in a cell. I got this formula from

> MS's
> > training section of their website.
> > It works great when the name is John Smith. Problem is when the guy's

name
> > is something like John A. Smith. It only recognizes the first space, and
> > counts the last name from there.
> >
> > My names have as many as 2 or 3 spaces (John and Sarah Smith).
> > Can someone please help me?
> >
> > Thanks!
> > Yoni
> >
> >
> >
> >

>
>




 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-16-2004, 02:53   #5 (permalink)
Stunners
Civilians

 
Default Re: Help with: =RIGHT(A2,LEN(A2)-FIND(" ",A2))

Thanks, but I already used Andy's answer.

"Peo Sjoblom" <terre08@mvp.org> wrote in message
news:OU$sklOOEHA.3708@TK2MSFTNGP10.phx.gbl...
> One way
>
> =RIGHT(A1,LEN(A1)-SEARCH(CHAR(190),SUBSTITUTE(A1,"
> ",CHAR(190),LEN(A1)-LEN(SUBSTITUTE(A1," ","")))))
>
> that will extract the last name unless there is a JR or II or something,
> those you need to
> do manually
>
> Assume you extract the last names in column G, now in another column use
>
> =SUBSTITUTE(A1,G1,"")
>
> and copy down
>
> --
>
> Regards,
>
> Peo Sjoblom
>
>
> "Stunners" <massuds2000@yahoo.com> wrote in message
> news:9NJoc.6484$ol3.3719@fe20.usenetserver.com...
> > Ok, Am trying to split up Full Names in a cell. I got this formula from

> MS's
> > training section of their website.
> > It works great when the name is John Smith. Problem is when the guy's

name
> > is something like John A. Smith. It only recognizes the first space, and
> > counts the last name from there.
> >
> > My names have as many as 2 or 3 spaces (John and Sarah Smith).
> > Can someone please help me?
> >
> > Thanks!
> > Yoni
> >
> >
> >
> >

>
>




 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-16-2004, 02:53   #6 (permalink)
Andy B
Civilians

 
Default Re: Help with: =RIGHT(A2,LEN(A2)-FIND(" ",A2))

Hi

Try these:
=IF(ISERROR(FIND(" ",A1)),A1,LEFT(A1,FIND("^",SUBSTITUTE(A1,"
","^",LEN(A1)-LEN(SUBSTITUTE(A1," ",""))))-1))

and

=IF(ISERROR(FIND(" ",A1)),"",RIGHT(A1,LEN(A1)-FIND("^",SUBSTITUTE(A1,"
","^",LEN(A1)-LEN(SUBSTITUTE(A1," ",""))))))

--
Andy.


"Stunners" <massuds2000@yahoo.com> wrote in message
news:xhKoc.14098$8P4.5891@fe09.usenetserver.com...
> Thanks Man, worked perfectly.
> Since that seemed to be too easy for you, how about throwing something in
> there that:
> If there is only 1 name, we will assume its a first name, so copy it over
> when checking for first names, and give a blank response for the Last

Name.
>
> Say, original name is Amanda, Have new First Name field show Amanda, and
> have the Last Name field be empty (but errorfree).
>
> If it too big of a deal, then don't worry about it.
> Again, huge thanks!!
> Yoni
> "Andy B" <andyb@takethisbitout.dawsons.co.uk> wrote in message
> news:%23thcCgOOEHA.640@TK2MSFTNGP12.phx.gbl...
> > Hi
> >
> > Try this:
> > =LEFT(A1,FIND("^",SUBSTITUTE(A1," ","^",LEN(A1)-LEN(SUBSTITUTE(A1,"
> > ",""))))-1)
> > for the first name/s
> > and this:
> > =RIGHT(A1,LEN(A1)-FIND("^",SUBSTITUTE(A1,"

> ","^",LEN(A1)-LEN(SUBSTITUTE(A1,"
> > ","")))))
> > for the surname.
> >
> > --
> > Andy.
> >
> >
> > "Stunners" <massuds2000@yahoo.com> wrote in message
> > news:9NJoc.6484$ol3.3719@fe20.usenetserver.com...
> > > Ok, Am trying to split up Full Names in a cell. I got this formula

from
> > MS's
> > > training section of their website.
> > > It works great when the name is John Smith. Problem is when the guy's

> name
> > > is something like John A. Smith. It only recognizes the first space,

and
> > > counts the last name from there.
> > >
> > > My names have as many as 2 or 3 spaces (John and Sarah Smith).
> > > Can someone please help me?
> > >
> > > Thanks!
> > > Yoni
> > >
> > >
> > >
> > >

> >
> >

>
>
>



 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-16-2004, 02:54   #7 (permalink)
Stunners
Civilians

 
Default Re: Help with: =RIGHT(A2,LEN(A2)-FIND(" ",A2))

Thanks
"Andy B" <andyb@takethisbitout.dawsons.co.uk> wrote in message
news:OMstIvOOEHA.2468@TK2MSFTNGP11.phx.gbl...
> Hi
>
> Try these:
> =IF(ISERROR(FIND(" ",A1)),A1,LEFT(A1,FIND("^",SUBSTITUTE(A1,"
> ","^",LEN(A1)-LEN(SUBSTITUTE(A1," ",""))))-1))
>
> and
>
> =IF(ISERROR(FIND(" ",A1)),"",RIGHT(A1,LEN(A1)-FIND("^",SUBSTITUTE(A1,"
> ","^",LEN(A1)-LEN(SUBSTITUTE(A1," ",""))))))
>
> --
> Andy.
>
>
> "Stunners" <massuds2000@yahoo.com> wrote in message
> news:xhKoc.14098$8P4.5891@fe09.usenetserver.com...
> > Thanks Man, worked perfectly.
> > Since that seemed to be too easy for you, how about throwing something

in
> > there that:
> > If there is only 1 name, we will assume its a first name, so copy it

over
> > when checking for first names, and give a blank response for the Last

> Name.
> >
> > Say, original name is Amanda, Have new First Name field show Amanda, and
> > have the Last Name field be empty (but errorfree).
> >
> > If it too big of a deal, then don't worry about it.
> > Again, huge thanks!!
> > Yoni
> > "Andy B" <andyb@takethisbitout.dawsons.co.uk> wrote in message
> > news:%23thcCgOOEHA.640@TK2MSFTNGP12.phx.gbl...
> > > Hi
> > >
> > > Try this:
> > > =LEFT(A1,FIND("^",SUBSTITUTE(A1," ","^",LEN(A1)-LEN(SUBSTITUTE(A1,"
> > > ",""))))-1)
> > > for the first name/s
> > > and this:
> > > =RIGHT(A1,LEN(A1)-FIND("^",SUBSTITUTE(A1,"

> > ","^",LEN(A1)-LEN(SUBSTITUTE(A1,"
> > > ","")))))
> > > for the surname.
> > >
> > > --
> > > Andy.
> > >
> > >
> > > "Stunners" <massuds2000@yahoo.com> wrote in message
> > > news:9NJoc.6484$ol3.3719@fe20.usenetserver.com...
> > > > Ok, Am trying to split up Full Names in a cell. I got this formula

> from
> > > MS's
> > > > training section of their website.
> > > > It works great when the name is John Smith. Problem is when the

guy's
> > name
> > > > is something like John A. Smith. It only recognizes the first space,

> and
> > > > counts the last name from there.
> > > >
> > > > My names have as many as 2 or 3 spaces (John and Sarah Smith).
> > > > Can someone please help me?
> > > >
> > > > Thanks!
> > > > Yoni
> > > >
> > > >
> > > >
> > > >
> > >
> > >

> >
> >
> >

>
>




 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
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
Find God to Find One's True Self Snowden Prayer & Religious Discussion 0 01-31-2008 10:10
[MV] Can someone help me find............. Chris Somers MV List 0 04-22-2006 00:28
Re: Find all and Sum Cutter Microsoft Applications 1 09-06-2005 12:00
Just want to find out How does one become MVP. =?Utf-8?B?QWpheSBLdW1hcg==?= Microsoft Applications 2 07-14-2004 15:55
FIND in VBA Jan Microsoft Applications 4 06-16-2004 00:56


Community Information
Options
Quick Options
Trackpads Non-Commercial Ad
Copyright Information Click to Visit
Time
Server Time
All times are GMT -4. The time now is 13:17.
Copyright
Copyright Information
The header is based off of work by Vipixel.com and modified by this site. Trackpads and the Trackpads Logo are both Registered Trademarks of Jason Edwards and cannot be used without prior written permission.  The only exception is as a link back to this site. Trackpads is a private website run by a small legion of volunteers, 3 dogs, 12.5 cats and an army of small, super smart, bio-engineered mice with pointy hats and tutu's. Search Engine Friendly URLs by vBSEO 3.2.0 RC7
Archive Links
Archive Links
Page generated in 1.02752 seconds with 19 queries