Split master excel into multiple files based on date

bipul

New Member
Joined
Dec 9, 2014
Messages
1



I need to write a macro to split my excel file into multiple file based on date range.
I have a excel file with following data and many other similar data
Name date_of_birth

A 10-01-2014

B 10-02-2014

C 10-03-2014

D 10-04-2014

E 10-05-2014

F 10-06-2014

G 10-07-2014

H 10-08-2014

I 10-09-2014

J 10-10-2014

K 10-11-2014

L 10-12-2014


I need to split the data into multiple file with each file containing data for 4 months. Could you please help me with this.   Final files should be like:

first.xml

Name date_of_birth

A 10-01-2014

B 10-02-2014

C 10-03-2014

D 10-04-2014


second.xml

Name date_of_birth

E 10-05-2014

F 10-06-2014

G 10-07-2014

H 10-08-2014


third.xml

Name date_of_birth

I 10-09-2014

J 10-10-2014

K 10-11-2014

L 10-12-2014


Thanks and Regards
Bipul




<tbody>
</tbody>
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

Forum statistics

Threads
1,215,063
Messages
6,122,935
Members
449,094
Latest member
teemeren

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