create folders & subfolders and move files to them based on files names

leap out

Board Regular
Joined
Dec 4, 2020
Messages
155
Office Version
  1. 2016
  2. 2010
hi guys

every month I download reports files PURCHSE,SALES,STOCKS so the names files oil sales report 01 JANUARY 2021 and oil purchases report 01 JANUARY 2021 and oil stock 01 JANUARY 2021 so what I want create folder based on current year the main folder's names is reports 2021 and the subfolders should names report sales,report purchases,report stock and each of them contains the folders based on the month names JAN,FEB...etc.
the current files when I download in this directory "C:\Users\mcc\Downloads" and move to this directory "C:\Users\mcc\Desktop\report2021"
so this file oil sales report 01 JANUARY 2021 I create manually this directory to understand then should move to this directory "C:\Users\mcc\Desktop\reports 2021\reports sales\Jan\oil Sales Report 1 JANUARY 2021.xlsx" and if in month Feb. then should move to "C:\Users\mcc\Desktop\reports 2021\reports sales\Feb.\oil Sales Report 2 FEBRUARY 2021.xlsx" the same thing with rest of the files but keep in your mind extension of the file not only excel it is also pdf and when finish 2021 years then create 2022 and so on
if this is not clear please inform me
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,152,120
Messages
5,768,224
Members
425,460
Latest member
Astros1243

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
Top