Macro for organizing data into worksheets

robert2290

New Member
Joined
Feb 3, 2012
Messages
27
Hello,

I am in need of a macro that organizes data into separate worksheets. Basically what I have is thousands of rows of data that are all comprised of both numbers and letters. Every few lines, a value named "Project" will appear. What I want is for each time the word "Project" appears in the 3rd column, the following happen:
-A new sheet is created that is named the last 4 digits of column 4
-All of the rows between "project" and the next time "project" appears to be copied into the new sheet

The Data is organized in the following way:
PHP:
   1        2        3                                 4
Number	Level	Description	              Name
1	          01	Project	            110002235
2	          01	A	                    110002235
3	          01	1	
4	          01	G	
5	          01	D	
6	          01	I	                    110002235
7	          01	44	
8	          01	WD	
9	          01	Project	            110006933
10	          01	P	                    110006933
11	          02	Docter	
12	          03	D	
13	          03	QE	
14               03	O	
15	          03	QL	
16	          03	P	
17	          03	J	
18	          04	2	
19	          04	6	
20	          04	WWW    	             110006933
21	          04	Project	             110007877
22	          04	l	
23	          04	k	
24	          04	m

(Couldn't get the tag format to look better)
Any help or suggestions would be greatly appreciated.
 

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