WISDOMBYDATA
  • BLOG
    • Blog Guide
    • Blog History
  • EXCEL
    • Functions & Formulas
    • VBA & Macros
    • VLOOKUP
    • Pivot Tables
    • Conditional Formatting
    • Tricks & Shortcuts
  • BI
    • SAP BOBJ/BW
    • Tableau
  • SQL
  • ABOUT
    • About WBD
    • About Me

How to transfer folder names within a windows folder into MS Excel

8/29/2016

0 Comments

 

Many of us deal with folders and sub-folders in our devices. Keeping track of these folders, their location and contents could get difficult and overwhelming if there are too many of them. For example, in order to search for a particular sub-folder the Search feature of the file explorer (located on the top right hand corner of the folder explorer) has to be used, which isn’t even nearly as efficient as doing a search using the features of MS Excel. 

​Following a few simple steps listed below, you could easily transfer the name of all sub-folders located within any folder from windows Explorer to MS Excel.

STEP 1] locate the folder which you want to extract file names from (could be done using “Windows+E”).  In this case I want to extract the sub-folder names that are located in the “Staffing Agencies” folder located on my desktop.
Picture
STEP 2] after locating the folder do a “SHIFT+Right click”, then select “Open Command Window here”. Note: this only works on folders and not libraries.
Picture
STEP 3] Type “dir/b/s > dirlist.txt” without quotes in command prompt and press “Enter”.
Picture
STEP 4] Open a MS Excel spreadsheet and click on “CTRL+O” and locate your folder. On the file drop down menu select “Text Files”.
Picture
STEP 5] Double click on the folder and within the folder look for the “dirlist.txt” and double click on it. The Text Import Wizard will appear as a result.
Picture
STEP 6] In the Text Import Wizard Select the Delimited radio button and click on "Next"
Picture
STEP 7] Indicate Backlash (i.e. “\”) as the delimiter and click on "Next".
Picture
STEP 8] Click "Finish"
Picture
Here is the final expected outcome. All of the folder names located within the "Staffing Agencies" folder have been successfully transferred into MS Excel ! :)
Picture

Advantages of this tactic:  
1. Much easier to Search for a specific folder name
2. Easier to sort and filter data
3. Ability to view folder contents (if any) without opening folders one by one

Source:
http://smallbusiness.chron.com/copy-list-files-windows-folder-excel-list-40032.html 

0 Comments
<<Previous

    Categories

    All
    BI
    EXCEL
    MISC
    SQL

    Archives

    June 2020
    May 2020
    April 2020
    March 2020
    February 2020
    December 2019
    November 2019
    October 2019
    September 2019
    August 2019
    July 2019
    June 2019
    May 2019
    April 2019
    March 2019
    February 2019
    January 2019
    December 2018
    November 2018
    October 2018
    September 2018
    August 2018
    July 2018
    June 2018
    May 2018
    April 2018
    March 2018
    September 2017
    August 2017
    July 2017
    June 2017
    May 2017
    April 2017
    March 2017
    February 2017
    January 2017
    December 2016
    November 2016
    October 2016
    September 2016
    August 2016
    July 2016
    June 2016
    May 2016
    April 2016
    March 2016
    February 2016
    May 2015
    April 2015
    March 2015
    February 2015
    January 2015
    December 2014
    November 2014
    October 2014
    September 2014
    August 2014
    April 2014
    March 2014
    February 2014
    January 2014
    December 2013
    November 2013

Powered by Create your own unique website with customizable templates.
  • BLOG
    • Blog Guide
    • Blog History
  • EXCEL
    • Functions & Formulas
    • VBA & Macros
    • VLOOKUP
    • Pivot Tables
    • Conditional Formatting
    • Tricks & Shortcuts
  • BI
    • SAP BOBJ/BW
    • Tableau
  • SQL
  • ABOUT
    • About WBD
    • About Me