Community
    • Login

    Can I search among several xlsx files?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    5 Posts 3 Posters 3.2k 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.
    • worldorW Offline
      worldor
      last edited by

      Hello!

      Can I search among the values and/or formulas among several xlsx files in a directory including its subfolders?
      If not directly, is it possible after I unzip the xlsx?

      Thanks!

      Mark OlsonM 1 Reply Last reply Reply Quote 0
      • Mark OlsonM Offline
        Mark Olson @worldor
        last edited by Mark Olson

        @worldor
        Given that xlsx files are binary, Notepad++ is probably a lousy tool to use for this, even if you did go to the trouble of unzipping the files.

        That said, I think dnGrep might meet your needs:
        dnGrep excel files.PNG
        Note that, as the example above shows, it seems that the grep tool searches in the result of an evaluated formula rather than in the text of the formula itself (i.e., it finds foobarfoobar because that’s what the formula returns even though the text of the formula is CONCAT(A1, A1).

        PeterJonesP 1 Reply Last reply Reply Quote 1
        • PeterJonesP Online
          PeterJones @Mark Olson
          last edited by

          @worldor ,

          As said, XLSX is a binary file. But if you do unzip the XLSX, it’s underlying data is text (XML, specifically)… So you could then use Notepad++'s Find in Files feature to search through all the XML files.

          (And if you’re going to unzip the XLSX to see the XML files, then there’s no reason to download some other grep application when Notepad++'s Find in Files will do that same search.)

          Mark OlsonM 1 Reply Last reply Reply Quote 2
          • Mark OlsonM Offline
            Mark Olson @PeterJones
            last edited by Mark Olson

            @PeterJones For my own amusement I’m working on a PythonScript to try to automate this, since it’s a little more fiddly than one might intuitively expect

            1 Reply Last reply Reply Quote 0
            • Mark OlsonM Offline
              Mark Olson
              last edited by

              The Excel grepper tool is done. See https://github.com/molsonkiko/excel_grepper_npp.

              1 Reply Last reply Reply Quote 3

              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