How to get count of subfolders and files

m_vishal_c

Board Regular
Joined
Dec 7, 2016
Messages
209
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
HI
i have been looking to internet for the solution but i can not get it. Problem is

i do have list of all files and folders path in column (i.e A), i have applied dropdown list on column A.
if i select
(1) "General" from dropdown list it should gives me count like 17 (as per below image),
(2) If i select General/ABC then it counts 9 (including subfolders)
(3) if i select General/ABC/ABC1 then the count will be 7

can you please help me how can i get. heaps thanks in advance

Path
General
General/ABC
General/ABC/ABC1
General/ABC/ABC1/ABC1 - Report1
General/ABC/ABC1/ABC1 - Report2
General/ABC/ABC1/ABC2
General/ABC/ABC1/ABC2/Fun 2022
General/ABC/ABC1/ABC2/ABC3
General/ABC/ABC1/ABC2/ABC3/ABC4
General/ABC/ABCDE
General/XYZ
General/XYZ/MARSH
General/XYZ/MARSH/EARTH
General/XYZ/LAND
General/XYZ/LAND/HOUSE
General/XYZ/LANDSCAPE
General/XYZ/LANDSCAPE/BIKE
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Is this solve your problem?
 
Upvote 0

Forum statistics

Threads
1,223,671
Messages
6,173,735
Members
452,531
Latest member
Dufus1024

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top