Macro/Script to calculate percentile on daily basis.

bats0077

New Member
Joined
Dec 24, 2013
Messages
1
Hi,
I am trying to automate percentile report generation. Any help would be greatly appreciated.
Requirement:
1. I get 40 csv files with data everyday under a shared LAN folder. Folder name is current date and 40 csv files names remain same.
2. I need to calculate a percentile report everyday taking input from 40 csv files' fixed column say A:A in below format
Percentile 90 95 99.7
1.CSV xyz xyz xyz
2.CSV xyz xyz xsw
till 40.CSV dsd sd sd
Problem:
I have to open all 40 csv(which i do using batch command) files then create a new excel report, copy paste percentile formulas in the sheet. I also noticed my percentile formula wont work until I open the linked csv files.

Any pointers to automate this daily activity ?! like a macro to open all 40 sheets then create new report.xls with percentile formula and close them all ??

Thanks
bats0077
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Did you investigate the Dir() function to loop through the said forlder and its 40 csv files?
 
Upvote 0

Forum statistics

Threads
1,214,923
Messages
6,122,289
Members
449,077
Latest member
Rkmenon

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