Forum Discussion
=Folder()
Heres a quick question, I know that in Excel, Using Named Formulas we can do =FILES({cellRef}&"*") and in the {cellRef} have an address like "C:\Docs\" then a formula =Index({NamedFormaula,ROW(A1)), drag it down to get a list of the files within that folder.
I am curious if there is a way to get a list of subfolders? as I have exhausted every single option i can find in working it out. even asked the EXcel Twitter team who directed me here.
This would be handy as I am trying to create a tree for a business model for a task. but am just getting a bit lost.
Any help would be great. Thanks
Steve
3 Replies
- Hi
You can try using PowerQuery
This might be helpful for you
⏱Extract File Name, Path, Size,Without Macro in 10 seconds
https://youtu.be/kHylnj7sh-c
Regards, Faraz Shaikh- Stephen_EdwardsCopper Contributor
ExcelExciting genius, I cant believe, even though I have been fiddling with this area for lots of other things I hadn't thought of that. that's amazing!
Stephen_Edwards Glad to hear your query is resolved 😃👍
Regards, Faraz Shaikh | MCT, MIE, MOS Master, Excel Expert | www.ExcelExciting.com
If you find the my solution resolved your query don't forget mark as Official Answer