General Car Related Discussion. To discuss anything that is related to cars and automotive technology that doesnt naturally fit into another forum catagory.

Excel help - extracting multiple info from single cells?

Thread Tools
 
Search this Thread
 
Old Oct 26, 2009 | 07:19 PM
  #1  
Iain Mac's Avatar
Iain Mac
Thread Starter
PassionFord Post Whore!!
 
Joined: Jun 2003
Posts: 4,903
Likes: 6
From: Scotland
Default Excel help - extracting multiple info from single cells?

I've been given an excel spreadsheet with useful names, numbers and emails for work, but the genius who created it put the office name in A1, telephone number in A2, contact name in A3, title in A4 etc

Is there an easy way to move all the different info into different columns so i end up with a line for each contact name, under the individual offices?

I tried a simple drag,and copy thinking I could then delete the extra lines, but they don't all have the same number of lines, so i guess I'm looking for something to say if A6 begins 01, copy to D2 or similar, then I can use the same formula for 07, titles, etc?
Reply
Old Oct 26, 2009 | 07:56 PM
  #2  
Icurus's Avatar
Icurus
Too many posts.. I need a life!!
 
Joined: Sep 2005
Posts: 935
Likes: 0
From: kent
Default

Can you not select all the data then sort it by the office field A1?
Reply
Old Oct 26, 2009 | 07:58 PM
  #3  
Iain Mac's Avatar
Iain Mac
Thread Starter
PassionFord Post Whore!!
 
Joined: Jun 2003
Posts: 4,903
Likes: 6
From: Scotland
Default

No, because every contact has all their info in a single cell.
Reply
Old Oct 26, 2009 | 08:01 PM
  #4  
Icurus's Avatar
Icurus
Too many posts.. I need a life!!
 
Joined: Sep 2005
Posts: 935
Likes: 0
From: kent
Default

Ahh, with you now! Bah
Reply
Old Oct 26, 2009 | 08:16 PM
  #5  
Iain Mac's Avatar
Iain Mac
Thread Starter
PassionFord Post Whore!!
 
Joined: Jun 2003
Posts: 4,903
Likes: 6
From: Scotland
Default

Sorry, I meant single column
Reply
Old Oct 26, 2009 | 08:17 PM
  #6  
Icurus's Avatar
Icurus
Too many posts.. I need a life!!
 
Joined: Sep 2005
Posts: 935
Likes: 0
From: kent
Default

I just tried something with one of my spreadsheets......

Saved the file as a text.csv

then opened it, but as it's a txt.csv you get to make a few selections as to how the data should be imported, you can select an option and it will show you a small preview of what the data will look like. All my data ended up in A1, A2, A3 etc

This is using Excel 2007
Reply
Old Oct 26, 2009 | 08:18 PM
  #7  
Neil S's Avatar
Neil S
PassionFord Post Troll
20 Year Member
iTrader: (1)
 
Joined: May 2003
Posts: 2,815
Likes: 0
From: Cleveland
Default

Sorry fella, I misread the original post.

I'd be trying to write a macro to do it. I'm sure it will be possible

Last edited by Neil S; Oct 26, 2009 at 08:19 PM.
Reply
Old Oct 26, 2009 | 08:53 PM
  #8  
St3V3_C's Avatar
St3V3_C
PassionFord Post Whore!!
20 Year Member
Liked
Loved
 
Joined: May 2003
Posts: 9,608
Likes: 45
From: Bristol
Default

If I understand, text to columns is your friend. In the data menu.
Reply
Old Oct 26, 2009 | 09:09 PM
  #9  
Spiky's Avatar
Spiky
Professional Waffler
iTrader: (1)
 
Joined: May 2003
Posts: 26,931
Likes: 0
From: Cardiff
Default

you can use the MID function to extract data or use the text to column feature

with mid

if you have 1 cell (lets say z67) which has " a1 spiky loves sheep"

you can do "=mid(z67,1,2) this will start at charachter 1 and extract 2 characters for and would give you "a1"

or you could do =mid(z67,4,5) this would give you spiky
Reply
Old Oct 26, 2009 | 09:48 PM
  #10  
Stu.H's Avatar
Stu.H
10K+ Poster!!
20 Year Member
Liked
 
Joined: May 2003
Posts: 11,977
Likes: 0
From: Brierley Hill
Default

Ive done stuff like this, exporting to csv, modifying that file maybe with search/replace (notepad/wordpad) then reimporting back into excel,

prolly not what ur after, but I didnt read your post properly either - too late

Reply
Old Oct 26, 2009 | 09:49 PM
  #11  
Spiky's Avatar
Spiky
Professional Waffler
iTrader: (1)
 
Joined: May 2003
Posts: 26,931
Likes: 0
From: Cardiff
Default

email me the file if you want me to sort

wont take long
Reply
Old Oct 26, 2009 | 10:14 PM
  #12  
LHD220Turbo's Avatar
LHD220Turbo
10K+ Poster!!
iTrader: (4)
 
Joined: Oct 2007
Posts: 10,655
Likes: 18
From: swindon, wiltshire
Default

Originally Posted by Spiky
email me the file if you want me to sort

wont take long
i've pm'd him offering this too; i expect you're better than me tho; its been a while
Reply
Old Oct 26, 2009 | 10:51 PM
  #13  
Iain Mac's Avatar
Iain Mac
Thread Starter
PassionFord Post Whore!!
 
Joined: Jun 2003
Posts: 4,903
Likes: 6
From: Scotland
Default

Cheers fellas, especially for those offering to do the job for me, but it's done now.

I found that COPY, PASTE SPECIAL, TRANSPOSE was able to transfer the cells from Rows to Columns, but I had to highlight the relevant cells for each record because they all had different numbers of Rows in them, and I had over 100 records so it took a while!!
Reply
Old Oct 27, 2009 | 05:23 PM
  #14  
Neil S's Avatar
Neil S
PassionFord Post Troll
20 Year Member
iTrader: (1)
 
Joined: May 2003
Posts: 2,815
Likes: 0
From: Cleveland
Default

That was my first suggestion, I edited it because I thought you wanted to re-order the cells too!

Glad you're sorted
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
nicodinho
Ford Non RS / XR / ST parts for sale.
6
Oct 7, 2015 12:56 PM
XR4
Ford XR Range
0
Oct 1, 2015 12:46 PM
stevecfrst1
Cars for Sale
1
Sep 30, 2015 05:18 AM
Mc5506
Ford Escort RS Turbo
0
Sep 29, 2015 09:06 AM




All times are GMT. The time now is 05:39 AM.