corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » Another Excel query...


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author Another Excel query...
--Dave--
Banned

Registered: 17th Feb 04
Location: Essssseeeeex Drives: Black Supra TT
User status: Offline
18th Aug 06 at 09:58   View User's Profile U2U Member Reply With Quote

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
18th Aug 06 at 10:02   View User's Profile U2U Member Reply With Quote

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

Avatar

Registered: 16th Dec 02
Location: Manchester
User status: Offline
18th Aug 06 at 10:05   View Garage View User's Profile U2U Member Reply With Quote

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
18th Aug 06 at 10:05   View User's Profile U2U Member Reply With Quote

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
18th Aug 06 at 10:07   View User's Profile U2U Member Reply With Quote

plus, as loaf said
Ojc
Member

Registered: 14th Nov 00
Location: Reading: Drives : Clio 197
User status: Offline
18th Aug 06 at 10:07   View User's Profile U2U Member Reply With Quote

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
18th Aug 06 at 10:08   View User's Profile U2U Member Reply With Quote



thanks anyway Ollie
Chris Bingham
Member

Registered: 30th Mar 02
Location: In Scotland
User status: Offline
18th Aug 06 at 10:10   View User's Profile U2U Member Reply With Quote

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
18th Aug 06 at 10:12   View User's Profile U2U Member Reply With Quote

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
18th Aug 06 at 10:12   View User's Profile U2U Member Reply With Quote

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
18th Aug 06 at 10:13   View User's Profile U2U Member Reply With Quote

Ollie, can't do that I'm afraid mate
Chris Bingham
Member

Registered: 30th Mar 02
Location: In Scotland
User status: Offline
18th Aug 06 at 10:13   View User's Profile U2U Member Reply With Quote

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
18th Aug 06 at 10:15   View User's Profile U2U Member Reply With Quote

Chris, you are a star and earn today's Excel Genius award

James
Member

Registered: 1st Jun 02
Location: Surrey
User status: Offline
18th Aug 06 at 10:16   View User's Profile U2U Member Reply With Quote

Not my fault I wasnt at my desk
James
Member

Registered: 1st Jun 02
Location: Surrey
User status: Offline
18th Aug 06 at 10:16   View User's Profile U2U Member Reply With Quote

Test me again Test me again
Chris Bingham
Member

Registered: 30th Mar 02
Location: In Scotland
User status: Offline
18th Aug 06 at 10:17   View User's Profile U2U Member Reply With Quote

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
18th Aug 06 at 10:18   View User's Profile U2U Member Reply With Quote

Aye, lets have a test! Ask me another.

Its like an Excel off.
James
Member

Registered: 1st Jun 02
Location: Surrey
User status: Offline
18th Aug 06 at 10:18   View User's Profile U2U Member Reply With Quote

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
18th Aug 06 at 10:19   View User's Profile U2U Member Reply With Quote

I'm sure there will be other questions
James
Member

Registered: 1st Jun 02
Location: Surrey
User status: Offline
18th Aug 06 at 10:29   View User's Profile U2U Member Reply With Quote

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
18th Aug 06 at 10:35   View User's Profile U2U Member Reply With Quote

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
18th Aug 06 at 10:36   View User's Profile U2U Member Reply With Quote

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
18th Aug 06 at 10:38   View User's Profile U2U Member Reply With Quote



I might teach myself Excel..
Chris Bingham
Member

Registered: 30th Mar 02
Location: In Scotland
User status: Offline
18th Aug 06 at 10:46   View User's Profile U2U Member Reply With Quote

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
18th Aug 06 at 10:47   View User's Profile U2U Member Reply With Quote


 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
Help needed again ...Trotty can you help Red_Corsa Geek Day 17 1604
21st Mar 03 at 00:15
by Red_Corsa
 
Excel Protected worksheets Mistamist Off Day 11 328
12th Nov 03 at 14:51
by OFcorsa
 
Any MS Excel experts Steve Geek Day 11 1229
4th Jun 04 at 14:19
by blebo
 
is there a program that...... chris_uk Geek Day 6 1826
16th Jun 05 at 00:47
by Dan B
 
Excel Help please !!! Mase Geek Day 2 707
16th Nov 05 at 11:27
by Mase
 

Corsa Sport » Message Board » Off Day » Geek Day » Another Excel query... 29 database queries in 0.1054740 seconds