By using wcxd.booksticle.com you agree to our cookie policy, We and our partners operate globally and use cookies, for multiple purposes

60 Things That Excel Can Do



Feature 50 - Count files in a directory


I developed a VBA function called =countfiles() which would take a file directory name as input and return the number of files in the directory. I could pass a filter to show only files that had a string in it.

This was useful when receiving files I could verify whether I had all the files I need before starting processing.

   ←Send Data to external source | →Identify Black Jack probabilities via simulation | Table of Contents | Send us your feedback | Random | © 2025 All Rights Reserved | Edit