--Dave--
Banned
Registered: 17th Feb 04
Location: Essssseeeeex Drives: Black Supra TT
User status: Offline
|
me again hoping that James can help me out again
I have a list of names in one column i.e David Haydon, I want to display the First name in the next column and the Surname in the one after that, so it will look like this...
David Haydon | David | Haydon
Any ideas on what the formula would be?
|
Ojc
Member
Registered: 14th Nov 00
Location: Reading: Drives : Clio 197
User status: Offline
|
Insert a columm next to the names, then highlight the entire columm, then click on DATA then TEXT TO COLUMMS then select FIXED WIDTH then click NEXT move the line between the first name and surname then click NEXT then FINNISH and you are done.
|
Brett
Premium Member
Registered: 16th Dec 02
Location: Manchester
User status: Offline
|
quote: Originally posted by Ojc
Insert a columm next to the names, then highlight the entire columm, then click on DATA then TEXT TO COLUMMS then select FIXED WIDTH then click NEXT move the line between the first name and surname then click NEXT then FINNISH and you are done.
surely that only works if the first names are all the same length
|
--Dave--
Banned
Registered: 17th Feb 04
Location: Essssseeeeex Drives: Black Supra TT
User status: Offline
|
thanks for the reply Ollie, but I don't actually want to seperate the text. I want to keep whats in the first column and have the Surname and First name seperate in the next 2 columns.
Again there are about 6000 fields so I'm not typing this shit out
|
--Dave--
Banned
Registered: 17th Feb 04
Location: Essssseeeeex Drives: Black Supra TT
User status: Offline
|
plus, as loaf said
|
Ojc
Member
Registered: 14th Nov 00
Location: Reading: Drives : Clio 197
User status: Offline
|
quote: Originally posted by loafofbrett
quote: Originally posted by Ojc
Insert a columm next to the names, then highlight the entire columm, then click on DATA then TEXT TO COLUMMS then select FIXED WIDTH then click NEXT move the line between the first name and surname then click NEXT then FINNISH and you are done.
surely that only works if the first names are all the same length
Oh yes
|
--Dave--
Banned
Registered: 17th Feb 04
Location: Essssseeeeex Drives: Black Supra TT
User status: Offline
|
thanks anyway Ollie
|
Chris Bingham
Member
Registered: 30th Mar 02
Location: In Scotland
User status: Offline
|
Too Easy
1 - Highlight the column with the Full Names and do a find and replace. Find a single space (just hit the space bar once) and replace with a comma (,)
Your full names column will look like this:-
Chris,Bingham
Dave,Collins
etc
Now do Data>Text To Column,
Select Delimited then next
Choose Comma as a Delimiter then Next
Choose Destination as this will mean you can place your 2 next columns away from your originating data
Click Finish
Proclaim me and Excel genuis.
[Edited on 18-08-2006 by Chris Bingham]
|
James
Member
Registered: 1st Jun 02
Location: Surrey
User status: Offline
|
quote: Originally posted by Chris Bingham
Too Easy
1 - Highlight the column with the Full Names and do a find and replace. Find a single space (just hit the space bar once) and replace with a comma (,)
Your full names column will look like this:-
Chris,Bingham
Dave,Collins
etc
Now do Data>Text To Column,
Select Delimited then next
Choose Comma as a Delimiter then Next
Choose Destination as this will mean you can place your 2 next columns away from your originating data
Click Finish
Proclaim me and Excel genuis.
[Edited on 18-08-2006 by Chris Bingham]
What he said
|
Ojc
Member
Registered: 14th Nov 00
Location: Reading: Drives : Clio 197
User status: Offline
|
Dave, send me the spreadsheet I can do it, but I'm not telling you how because its fcuking complicated
|
--Dave--
Banned
Registered: 17th Feb 04
Location: Essssseeeeex Drives: Black Supra TT
User status: Offline
|
Ollie, can't do that I'm afraid mate
|
Chris Bingham
Member
Registered: 30th Mar 02
Location: In Scotland
User status: Offline
|
quote: Originally posted by Ojc
Dave, send me the spreadsheet I can do it, but I'm not telling you how because its fcuking complicated
Is it fuck complicated! Its easier than drawing an arrow.
|
--Dave--
Banned
Registered: 17th Feb 04
Location: Essssseeeeex Drives: Black Supra TT
User status: Offline
|
Chris, you are a star and earn today's Excel Genius award
|
James
Member
Registered: 1st Jun 02
Location: Surrey
User status: Offline
|
Not my fault I wasnt at my desk
|
James
Member
Registered: 1st Jun 02
Location: Surrey
User status: Offline
|
Test me again Test me again
|
Chris Bingham
Member
Registered: 30th Mar 02
Location: In Scotland
User status: Offline
|
Nice one, glad to be of help.
I'm well just going to start my own Excel and VB6 / VB.net company.
|
Chris Bingham
Member
Registered: 30th Mar 02
Location: In Scotland
User status: Offline
|
Aye, lets have a test! Ask me another.
Its like an Excel off.
|
James
Member
Registered: 1st Jun 02
Location: Surrey
User status: Offline
|
You'll probably win because im trying to do work at the same time
|
--Dave--
Banned
Registered: 17th Feb 04
Location: Essssseeeeex Drives: Black Supra TT
User status: Offline
|
I'm sure there will be other questions
|
James
Member
Registered: 1st Jun 02
Location: Surrey
User status: Offline
|
Chris please can you post the VBA code to get Excel to make a cup of tea, I seem to have misplaced it.
Thankyou please
|
--Dave--
Banned
Registered: 17th Feb 04
Location: Essssseeeeex Drives: Black Supra TT
User status: Offline
|
Chris/Jamie/for those who care,
It also works with using the spaces as the Delimiter, it then gives you the option to treat consecutive delimiters (spaces) as one or not, which I imagine would be good if there were middle names etc...
|
James
Member
Registered: 1st Jun 02
Location: Surrey
User status: Offline
|
Yes I knew that, I just chose not to mention it
|
--Dave--
Banned
Registered: 17th Feb 04
Location: Essssseeeeex Drives: Black Supra TT
User status: Offline
|
I might teach myself Excel..
|
Chris Bingham
Member
Registered: 30th Mar 02
Location: In Scotland
User status: Offline
|
quote: Originally posted by --Dave--
Chris/Jamie/for those who care,
It also works with using the spaces as the Delimiter, it then gives you the option to treat consecutive delimiters (spaces) as one or not, which I imagine would be good if there were middle names etc...
Yeah, you could do that but I find it doesnt make it as transparent if there is an error. If you use commas, you can see any obvious errors in your source. Its just the way I do things, maybe not the quickest but I find it to be reliable.
|
--Dave--
Banned
Registered: 17th Feb 04
Location: Essssseeeeex Drives: Black Supra TT
User status: Offline
|
|