Community
    • Login

    Pasting columns into txt from xlsx

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    5 Posts 4 Posters 1.1k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • caramadraC Offline
      caramadra
      last edited by

      I have an Excel sheet that I’d like to “convert” to plain text.

      I have used NPP for many years, but really have only made use of the basics. I’m semi-familiar with column mode.

      I’m guessing that, in order to created a “columned” text file, I will need to copy/paste one column at a time from my Excel sheet (unless there’s a plug-in that will magically create columns while pasting?). But, since I’ve never done this before and am struggling - can someone give me an “explain like I’m 5” step-by-step for copying text from Excel columns and creating a plain text file with those multiple columns, with tabs (spaces, if necessary) between the columns?

      Terry RT PeterJonesP 2 Replies Last reply Reply Quote 0
      • Terry RT Offline
        Terry R @caramadra
        last edited by

        @caramadra

        There is a plugin that may help. See this post.

        I don’t personally use it but it is being updated, so well supported. There was also another plugin called Elastic Tabstops, however that doesn’t appear to have been updated in about 3 years.

        Terry

        1 Reply Last reply Reply Quote 2
        • PeterJonesP Online
          PeterJones @caramadra
          last edited by

          @caramadra said in Pasting columns into txt from xlsx:

          I have an Excel sheet that I’d like to “convert” to plain text.

          When you copy from Excel (or other spreadsheet app, like the LibreOffice Calc that I use), it will put tab characters (ASCII 09) in between columns. If you have View > Show Symbol > Show Space and Tab enabled (also available on the ¶ toolbar button’s ▼ menu or right-click menu), it will show an elongated → for the tab character.

          So literally, the “like you are 5” instructions, if all you want is a single tab character between each column is "make the selection in Excel. Hit Ctrl+C. Click in Notepad++. Hit Ctrl+V.

          But assuming you want slightly fancier results than that, like if you have columns in your spreadsheet that don’t align with each other in a plain text editor, such as

          A B
          1 Ay won and then some more be one
          2 eh two bee too

          then when you initially paste into Notepad++, it will look like,
          ed9a7876-f1be-4f03-8c95-d6cb2dc12ab9-image.png
          so it won’t be aligned.

          However, if you use the Columns++ plugin that @Terry-R beat me to mentioning, and activate it’s Plugins > Columns++ > Elastic Tabstops mode, it will then look like,

          8ec1c8fd-764c-4c6e-9daf-04f2ab5e406f-image.png

          which keeps things aligned the way I think you probably want.

          That plugin also has lots of tools that make it easier to work with columns of data in Notepad++. (Though honestly, if I want to work with columns of data, I put it in LibreOffice Calc. Columns of data are data, not text, and trying to treat them as text is doing yourself a disservice.)

          1 Reply Last reply Reply Quote 3
          • caramadraC Offline
            caramadra
            last edited by

            Thanks, @Terry-R and @PeterJones - there’s a lot in that plugin that I’m not sure I’ll need or understand, but the Elastic Tabs does what I need for now.

            1 Reply Last reply Reply Quote 1
            • James Burke 0J Offline
              James Burke 0
              last edited by

              Depending the content, you could open the xls file in LibreOffice (or Open Office) and save it as an html file. It won’t be picture-perfect, but it will be in columns.

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors