Forum Discussion

Wooderson's avatar
Wooderson
Copper Contributor
Aug 07, 2023
Solved

Excel not consistent when pasting external data as it pertains to column separators

I do a lot of ETL work, and often use Excel as a tool to profile and manipulate data coming from a variety of sources during development and for prod support.  

When pasting data into Excel, you never know how the application will split the rows into columns.. sometimes it delimits by tab, other times by spaces, and sometimes by something else (comma, pipe, etc). 

I realize that Excel 'remembers' the setting used the for the most recent 'Text to Columns', but that's somewhat odd to me.  Because if you want to change the delimiter setting from Space to Tab, you actually have to run through the Text to Columns process, even though you don't really need to use that function, and then paste the new data in.

Am I missing something?  It would be nice if there was an easy way to configure the delimiter setting without all the clicks required to do Text To Columns.   

  • Wooderson 

    See this post for a macro that you can run to reset the 'Text to Columns' settings.

    If you store the macro in your personal macro workbook PERSONAL.XLSB, you can call it whenever you need. You can assign it to a Quick Access Toolbar button and/or custom keyboard shortcut for ease of use.

4 Replies

  • Wooderson 

    See this post for a macro that you can run to reset the 'Text to Columns' settings.

    If you store the macro in your personal macro workbook PERSONAL.XLSB, you can call it whenever you need. You can assign it to a Quick Access Toolbar button and/or custom keyboard shortcut for ease of use.

    • Wooderson's avatar
      Wooderson
      Copper Contributor
      Awesome, I can create a couple versions of that so I can quickly enable different delimiters. Thanks!
    • Wooderson's avatar
      Wooderson
      Copper Contributor
      I appreciate it, I have used power query, but my use-case is quick looks at log files, rejected record files, sample data files, text files people send, and the like.

      I have a variety of other enterprise tools for ETL.

Resources