+ Reply to Thread
Results 1 to 6 of 6

some kind of transpose...

  1. #1
    Registered User
    Join Date
    11-28-2008
    Location
    athens
    Posts
    4

    some kind of transpose...

    Hello All!
    I have this situation that i have some data (different length but comma separated) in one cell, say C3. C3 is like this: C3="dog;cat;snace;etc". I wanna split all these content within C3 into different rows. Like this:D4=dog, D5=cat, D6=snace etc..
    Could you help me out!
    Thanks
    Pomolo
    Last edited by VBA Noob; 11-30-2008 at 03:32 PM.

  2. #2
    Forum Contributor
    Join Date
    01-18-2005
    Location
    Auckland New Zealand
    MS-Off Ver
    Office Professional 2007
    Posts
    295
    Would using the Data/Text to columns wizard be any help?
    Regards
    Mike

  3. #3
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284
    Try this

    =MID($C$3,FIND(CHAR(1),SUBSTITUTE(SUBSTITUTE(";"&$C$3&";",";",CHAR(1),ROW(A1)),";",CHAR(2),ROW(A1))),
    FIND(CHAR(2),SUBSTITUTE(SUBSTITUTE(";"&$C$3&";",";",CHAR(1),ROW(A1)),";",CHAR(2),ROW(A1)))-FIND(CHAR(1),SUBSTITUTE(SUBSTITUTE(";"&$C$3&";",";",CHAR(1),ROW(A1)),";",CHAR(2),ROW(A2)))-1)

    and copy down

  4. #4
    Registered User
    Join Date
    11-28-2008
    Location
    athens
    Posts
    4
    Quote Originally Posted by Mikeopolo View Post
    Would using the Data/Text to columns wizard be any help?
    Regards
    Mike
    It is a vba script, sorry for not mention it..

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    You don't need to use VBA when Excel has built-in Functions to do the job
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  6. #6
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    re: some kind of transpose

    Put this is D4
    Please Login or Register  to view this content.
    And the CF function is
    Please Login or Register  to view this content.
    I like the DATA text to columns better, but this is for learning and pleasure
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1