![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Posts: 82
|
Hi I have a huge list of Car makes that I have to dissect. My information has come in with the Manufacturer and the Model in the same column. i.e. Ford Fiesta 1.1 or Suzuki Vitara I need to split this data out into two columns, One for manufactuer and the other for Model. The only constant is that there is a space between the make and model on every entry.
Anyone solve that ? Cheers Darren |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Hi
Someone may have a formula or two for you? If not, I will post some code that will accomplish what you need. Tom |
|
|
|
|
|
#3 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Newcastle, UK
Posts: 1,174
|
Quote:
in B1 put: =LEFT(A1,FIND(" ",A1)-1) and C1 put: =MID(A1,FIND(" ",A1)+1,LEN(A1)-FIND(" ",A1)) copy down as needed. I'll expand on this if required. Any help?
__________________
"Have a good time......all the time" Ian Mac |
|
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Feb 2002
Location: United Kingdom
Posts: 68
|
Wouldn't Data/Text to Columns achieve what you want, unless I've misunderstood the problem?
Nobby |
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Feb 2002
Location: Ahmedabad Gujarat
Posts: 303
|
You can use Text -> TO Column Function provided by excel.
goto: Data -> Text to Column okay.. We can also use split function provided by VBE. I am just started working on it. If you want macro from me then mail me your worksheet with few sample data I will write a macro for you and send it. nishith desai http://www.pexcel.com nisht@pexcel.com [ This Message was edited by: nisht on 2002-04-03 05:19 ] |
|
|
|
|
|
#6 |
|
Board Regular
Join Date: Mar 2002
Posts: 82
|
All,
I tried Ian Mac's Fomula First and it worked a treat, Thank IAN ! |
|
|
|
|
|
#7 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Newcastle, UK
Posts: 1,174
|
Quote:
__________________
"Have a good time......all the time" Ian Mac |
|
|
|
|
|
|
#8 |
|
Board Regular
Join Date: Mar 2002
Posts: 82
|
Guys,
Text To Columns worked rather well too. Your all making me look good in front of the boss ! Thanks ! |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|