Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-28-2023, 12:30 AM
Flash604 Flash604 is offline Counting files in all folders, even if empty Windows 10 Counting files in all folders, even if empty Office 2016
Novice
Counting files in all folders, even if empty
 
Join Date: Jun 2023
Posts: 1
Flash604 is on a distinguished road
Default Counting files in all folders, even if empty

Hello,

I'm trying to use Power Query within Excel to produce a list of outstanding and completed work. The items that a team needs to work on are in PDF format and sit in folders corresponding to a geographical area. Within each such folder are two subfolders; a "Completed" folder and a "Issues" folder. PDFs in a geographical area folder will get moved into subfolders as they are either completed or found to have issues that will require obtaining an alternative PDF.

What I'm trying to accomplish is producing a list that has a row for each geographic area; and then columns for "Outstanding", Completed" and "Issues".

My issue is that I can find plenty of instruction on how to count the files or how to count the folders, but I need to do both at the same time in order that empty folders will be included on the resulting sheet with a zero result.

There's two other aspects that I can likely figure out myself, which is that the resulting workbook will sit one extra folder level up from the geographic area folders, and that it needs to have the folder structure be dynamic so that it can be dropped into a different set of folders that have been set up the same way and perform a count there. To be more exact, the folder structure will be as follows for the Completed folders, with the workbook I want to create to be dropped into the root folder.pdf

...\<root folder>\Outstanding Work\<geographic area>\Completed

Is there a way to accomplish finding all the folders and subfolders, and then providing a count of the number of PDFs in each folder, even if some folders will be empty?
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting files in all folders, even if empty Run Macro for DOC files in different folders dita Word VBA 3 01-29-2019 01:39 PM
Counting files in all folders, even if empty Empty folders (MS docs missing) ? related to different MS office versions gwatts Office 2 11-21-2014 04:02 AM
Counting unique visitors by ward, counting monthly visits by status, editing existing workbook JaxV Excel 9 11-14-2014 12:25 AM
list folders and files using .vbs file josianne Excel Programming 3 08-18-2014 03:03 PM
Mirrored Files are Empty sussertown Office 0 04-01-2013 08:21 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:40 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft