#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Moving text

I have a rather long list of names and some of them have a space at the
beginning while others don't.

Is there a way to move whole groups of names over one space or will I have
to move them manually one name at a time?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 152
Default Moving text

Question-Are they single names such as Mary or John, or are they combined as
in Mary Smith or John Doe?
--
smither fan


"Lacey1941" wrote:

I have a rather long list of names and some of them have a space at the
beginning while others don't.

Is there a way to move whole groups of names over one space or will I have
to move them manually one name at a time?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Moving text

=IF(LEFT(A2)=" ",RIGHT(A2,LEN(A2)-1),A2)
--
David Biddulph

"Lacey1941" wrote in message
...
I have a rather long list of names and some of them have a space at the
beginning while others don't.

Is there a way to move whole groups of names over one space or will I have
to move them manually one name at a time?



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Moving text

Single names

"Ross" wrote:

Question-Are they single names such as Mary or John, or are they combined as
in Mary Smith or John Doe?
--
smither fan


"Lacey1941" wrote:

I have a rather long list of names and some of them have a space at the
beginning while others don't.

Is there a way to move whole groups of names over one space or will I have
to move them manually one name at a time?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Moving text

If there are no internal spaces in the data in that list, then maybe you can
just:

select that range
edit|replace
what: (spacebar)
with: (leave blank)
replace all

If there are internal spaces in the data in that list, you could:

Insert a new column (to its right?)
and use a formula like:
=trim(a1)
to remove all leading and all trailing space characters. It'll also convert
multiple internal space characters to a single space.

Then you could drag this formula down the column.
Select the column
Edit|copy
and then select the original column
Edit|paste special|values

and delete that helper column that holds the formula.

Lacey1941 wrote:

I have a rather long list of names and some of them have a space at the
beginning while others don't.

Is there a way to move whole groups of names over one space or will I have
to move them manually one name at a time?


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Moving text

Surnames are in column A and given name is in column B. It's the given names
I want to move.

"David Biddulph" wrote:

=IF(LEFT(A2)=" ",RIGHT(A2,LEN(A2)-1),A2)
--
David Biddulph

"Lacey1941" wrote in message
...
I have a rather long list of names and some of them have a space at the
beginning while others don't.

Is there a way to move whole groups of names over one space or will I have
to move them manually one name at a time?




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Moving text

I used the formula and it worked just fine........thank you

"Dave Peterson" wrote:

If there are no internal spaces in the data in that list, then maybe you can
just:

select that range
edit|replace
what: (spacebar)
with: (leave blank)
replace all

If there are internal spaces in the data in that list, you could:

Insert a new column (to its right?)
and use a formula like:
=trim(a1)
to remove all leading and all trailing space characters. It'll also convert
multiple internal space characters to a single space.

Then you could drag this formula down the column.
Select the column
Edit|copy
and then select the original column
Edit|paste special|values

and delete that helper column that holds the formula.

Lacey1941 wrote:

I have a rather long list of names and some of them have a space at the
beginning while others don't.

Is there a way to move whole groups of names over one space or will I have
to move them manually one name at a time?


--

Dave Peterson

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Moving text

In which case, use B2 instead of A2 in the formula! [If you just copy my
formula one cell to the right, it will automatically change the references
from A2 to B2 for you.]
--
David Biddulph

"Lacey1941" wrote in message
...
Surnames are in column A and given name is in column B. It's the given
names
I want to move.

"David Biddulph" wrote:

=IF(LEFT(A2)=" ",RIGHT(A2,LEN(A2)-1),A2)
--
David Biddulph

"Lacey1941" wrote in message
...
I have a rather long list of names and some of them have a space at the
beginning while others don't.

Is there a way to move whole groups of names over one space or will I
have
to move them manually one name at a time?






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
moving text from one cell to another Mrs Luke Excel Worksheet Functions 1 October 9th 08 04:11 AM
Moving text box Taylor Excel Discussion (Misc queries) 3 July 9th 08 03:17 PM
moving text Golden Knight Excel Worksheet Functions 1 January 24th 06 10:21 PM
Text moving azazel Excel Worksheet Functions 1 November 7th 05 07:02 PM
moving text Cheryl Excel Worksheet Functions 1 March 24th 05 07:04 PM


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