+ Reply to Thread
Results 1 to 11 of 11

split world in 2 column

  1. #1
    Registered User
    Join Date
    02-27-2011
    Location
    japan
    MS-Off Ver
    Excel 2003
    Posts
    5

    split world in 2 column

    Hi all...

    I have excel file in one column like this:
    data,date

    i need to replace (,) with new column..like this :
    column1 =data column2= , and column 3=date

    Thanks for help

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: split world in 2 column

    Maybe this:

    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    02-27-2011
    Location
    japan
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: split world in 2 column

    Can i sent you PM zbor...sorry i'm really new with excel....i need step bye step if you dont mind?

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: split world in 2 column

    You can send me PM but it's better to ask here. With more questions you make - more people will provide you good answer

  5. #5
    Registered User
    Join Date
    02-27-2011
    Location
    japan
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: split world in 2 column

    Quote Originally Posted by zbor View Post
    You can send me PM but it's better to ask here. With more questions you make - more people will provide you good answer
    this is workbook
    synoyms.xls

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: split world in 2 column

    Does formula I wrote you up work for you (I did only copy paste now)?
    Attached Files Attached Files

  7. #7
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: split world in 2 column

    Here is explanation of formulas:

    1) =LEFT(A1, FIND(",", A1&",")-1)

    LEFT function take LEFT part of the word. LEFT(text,num_chars)

    How many num_chars? Answer: up to first , that appear

    That's why you need FIND(",", A1&",")-1

    FIND(",", A1)-1 would also work but it will return you error if no , in the word.
    That's why FIND(",", A1&",")-1 is added. To ensure that , will apear.
    (if there is more then one it will take first)


    2) =IF(ISERR(FIND(",", A1)), "", ",")

    Easier way to get , in this column would be to just write it.
    ,
    just as that.

    However, what if there is no , character in your word?
    Just yell instead of yell,scream
    Then you'll get an error.

    So we will test:

    IF
    is it error when finding , in word in A1
    - if yes then return blank cell ("")
    - if no (no error, means there is a , in cell) return ,

    3) now when we take yell and , from yell,scream we need to take last word.

    =IF(C1=",", MID(A1, FIND(",", A1)+1, 100), "")

    If there is , in C1 (and that would be for all words that has , like yell,scream)
    Find where , start

    Take 100 characters from that point forward

    and that's the result.

    If there is no , in C1 leave blank cell
    Last edited by zbor; 02-27-2011 at 04:13 PM.

  8. #8
    Registered User
    Join Date
    02-27-2011
    Location
    japan
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: split world in 2 column

    TQ....will try this....

  9. #9
    Valued Forum Contributor scottylad2's Avatar
    Join Date
    09-03-2010
    Location
    edinburgh
    MS-Off Ver
    Office 2007 Prof & Office 2010 Student Edition
    Posts
    629

    Re: split world in 2 column

    slight variation, but depends on the comma always being there
    Attached Files Attached Files
    Windows 7 using Office 2007 & 2010

    Remember your [ code ] [ /code ] tags, makes reading soooo much easier

  10. #10
    Registered User
    Join Date
    02-27-2011
    Location
    japan
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: split world in 2 column

    workbook.xls

    Anyone can teach me how to write the formula?

    TQ

  11. #11
    Forum Contributor johnjohns's Avatar
    Join Date
    11-19-2007
    Location
    Dubai, UAE
    MS-Off Ver
    2003 and 2007
    Posts
    526

    Re: split world in 2 column

    Hi actroidf

    At this stage I would strongly recommend you to go for a course for excel basics. You can then use the forums for further advancement.
    regards

    johnjohns

    When you are not sure where to go, every road takes you there!

+ 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