Split Cell by “ - ”












2















I have this kind of cell



David - England - 08-01-2016
Fred - England - 07-03-2017
Nova - AS - 25-11-2016


And I want to split cell by the dash and space (" - ") only, so the date or may other words with dash without space ("-") not split.



David  England  08-01-2016
Fred England 07-03-2017
Nova AS 25-11-2016









share|improve this question




















  • 2





    Hello and welcome to the site! So that said, what have you done to attempt to solve this issue? As it stands you are not providing any code so this reads as a coding/scripting request and this site is not about requesting free code/scripts.

    – JakeGould
    Jan 21 at 1:58











  • I attempt to split the cell with ("-") delimited, but it will split all data by ("-") even the date.

    – DA185280
    Jan 21 at 2:34






  • 1





    You could do a search and replace to replace all " - " with some single character that doesn't appear in the content. Then split based on that character.

    – fixer1234
    Jan 21 at 2:55











  • @fixer1234 you're so smart!! solved, thanks.

    – DA185280
    Jan 21 at 5:13
















2















I have this kind of cell



David - England - 08-01-2016
Fred - England - 07-03-2017
Nova - AS - 25-11-2016


And I want to split cell by the dash and space (" - ") only, so the date or may other words with dash without space ("-") not split.



David  England  08-01-2016
Fred England 07-03-2017
Nova AS 25-11-2016









share|improve this question




















  • 2





    Hello and welcome to the site! So that said, what have you done to attempt to solve this issue? As it stands you are not providing any code so this reads as a coding/scripting request and this site is not about requesting free code/scripts.

    – JakeGould
    Jan 21 at 1:58











  • I attempt to split the cell with ("-") delimited, but it will split all data by ("-") even the date.

    – DA185280
    Jan 21 at 2:34






  • 1





    You could do a search and replace to replace all " - " with some single character that doesn't appear in the content. Then split based on that character.

    – fixer1234
    Jan 21 at 2:55











  • @fixer1234 you're so smart!! solved, thanks.

    – DA185280
    Jan 21 at 5:13














2












2








2








I have this kind of cell



David - England - 08-01-2016
Fred - England - 07-03-2017
Nova - AS - 25-11-2016


And I want to split cell by the dash and space (" - ") only, so the date or may other words with dash without space ("-") not split.



David  England  08-01-2016
Fred England 07-03-2017
Nova AS 25-11-2016









share|improve this question
















I have this kind of cell



David - England - 08-01-2016
Fred - England - 07-03-2017
Nova - AS - 25-11-2016


And I want to split cell by the dash and space (" - ") only, so the date or may other words with dash without space ("-") not split.



David  England  08-01-2016
Fred England 07-03-2017
Nova AS 25-11-2016






microsoft-excel






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 21 at 1:57









JakeGould

31.3k1096138




31.3k1096138










asked Jan 21 at 1:42









DA185280DA185280

134




134








  • 2





    Hello and welcome to the site! So that said, what have you done to attempt to solve this issue? As it stands you are not providing any code so this reads as a coding/scripting request and this site is not about requesting free code/scripts.

    – JakeGould
    Jan 21 at 1:58











  • I attempt to split the cell with ("-") delimited, but it will split all data by ("-") even the date.

    – DA185280
    Jan 21 at 2:34






  • 1





    You could do a search and replace to replace all " - " with some single character that doesn't appear in the content. Then split based on that character.

    – fixer1234
    Jan 21 at 2:55











  • @fixer1234 you're so smart!! solved, thanks.

    – DA185280
    Jan 21 at 5:13














  • 2





    Hello and welcome to the site! So that said, what have you done to attempt to solve this issue? As it stands you are not providing any code so this reads as a coding/scripting request and this site is not about requesting free code/scripts.

    – JakeGould
    Jan 21 at 1:58











  • I attempt to split the cell with ("-") delimited, but it will split all data by ("-") even the date.

    – DA185280
    Jan 21 at 2:34






  • 1





    You could do a search and replace to replace all " - " with some single character that doesn't appear in the content. Then split based on that character.

    – fixer1234
    Jan 21 at 2:55











  • @fixer1234 you're so smart!! solved, thanks.

    – DA185280
    Jan 21 at 5:13








2




2





Hello and welcome to the site! So that said, what have you done to attempt to solve this issue? As it stands you are not providing any code so this reads as a coding/scripting request and this site is not about requesting free code/scripts.

– JakeGould
Jan 21 at 1:58





Hello and welcome to the site! So that said, what have you done to attempt to solve this issue? As it stands you are not providing any code so this reads as a coding/scripting request and this site is not about requesting free code/scripts.

– JakeGould
Jan 21 at 1:58













I attempt to split the cell with ("-") delimited, but it will split all data by ("-") even the date.

– DA185280
Jan 21 at 2:34





I attempt to split the cell with ("-") delimited, but it will split all data by ("-") even the date.

– DA185280
Jan 21 at 2:34




1




1





You could do a search and replace to replace all " - " with some single character that doesn't appear in the content. Then split based on that character.

– fixer1234
Jan 21 at 2:55





You could do a search and replace to replace all " - " with some single character that doesn't appear in the content. Then split based on that character.

– fixer1234
Jan 21 at 2:55













@fixer1234 you're so smart!! solved, thanks.

– DA185280
Jan 21 at 5:13





@fixer1234 you're so smart!! solved, thanks.

– DA185280
Jan 21 at 5:13










1 Answer
1






active

oldest

votes


















0














This can be done with Power Query, a free Microsoft add-in for Excel 2010 and 2013 and built into Excel 2016 / 365 as Get and Transform.



Split column by delimiter, set a custom delimiter " - " (space dash space) as the delimiter.



The date will remain unaffected, because the delimiter is not space dash space.






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1396433%2fsplit-cell-by%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    This can be done with Power Query, a free Microsoft add-in for Excel 2010 and 2013 and built into Excel 2016 / 365 as Get and Transform.



    Split column by delimiter, set a custom delimiter " - " (space dash space) as the delimiter.



    The date will remain unaffected, because the delimiter is not space dash space.






    share|improve this answer




























      0














      This can be done with Power Query, a free Microsoft add-in for Excel 2010 and 2013 and built into Excel 2016 / 365 as Get and Transform.



      Split column by delimiter, set a custom delimiter " - " (space dash space) as the delimiter.



      The date will remain unaffected, because the delimiter is not space dash space.






      share|improve this answer


























        0












        0








        0







        This can be done with Power Query, a free Microsoft add-in for Excel 2010 and 2013 and built into Excel 2016 / 365 as Get and Transform.



        Split column by delimiter, set a custom delimiter " - " (space dash space) as the delimiter.



        The date will remain unaffected, because the delimiter is not space dash space.






        share|improve this answer













        This can be done with Power Query, a free Microsoft add-in for Excel 2010 and 2013 and built into Excel 2016 / 365 as Get and Transform.



        Split column by delimiter, set a custom delimiter " - " (space dash space) as the delimiter.



        The date will remain unaffected, because the delimiter is not space dash space.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 21 at 2:55









        teylynteylyn

        17.3k22539




        17.3k22539






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1396433%2fsplit-cell-by%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to make a Squid Proxy server?

            Is this a new Fibonacci Identity?

            19世紀