Create New Worksheets and move data Based on repeating Text Value

Dawn_B

New Member
Joined
Mar 22, 2019
Messages
4
I have attached an example of a file that I want to extract data from the original worksheet based on repeating text values and create a new worksheet and copy text to new worksheets. In the attached example I need a macro to create 4 new worksheets based on the repeating Header highlighted in orange. I need a new worksheet for rows 1 to 91, rows 92-194, 195-285, and 286-406.
 

Attachments

  • FY20 AIM Report - Example Photo 052720.PNG
    FY20 AIM Report - Example Photo 052720.PNG
    56.3 KB · Views: 13

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Are the row numbers always fixed?
If not, is there a way to identify the "sections"?
Does the new worksheets require headings (such as rows 1:3)?
 
Upvote 0
Are the row numbers always fixed?
If not, is there a way to identify the "sections"?
Does the new worksheets require headings (such as rows 1:3)?
The row numbers are not fixed. The heading represented in rows 1-2 repeats between for each report. The data in row 3 will change to reflect a report for a new individual.
 
Upvote 0
The row numbers are not fixed. The heading represented in rows 1-2 repeats between for each report. The data in row 3 will change to reflect a report for a new individual.
If you can attach the complete file, it will be easier to help.
 
Upvote 0
I'm a new member, and don't see a way to attach the file. I only see the option to upload an image.
 
Upvote 0
You cannot upload files to the site, but you can use the XL2BB add-in to include some sample data in your post.
 
Upvote 0
I do not know whether this site allows me to ask for your file via email.
If that can be done, I can probably provide the codes, which I will post here for everyone's benefit.
@Moderators - is this allowed?
 
Upvote 0
No it is not acceptable to share files privately, everything must remain in the thread. That way everyone can see what is happening & help out.
 
Upvote 0
I cannot use the XL2BB on my work computer. Our IS department won't allow me to download the add-in. I've included a larger image of the file. I basically need a macro that will look for the repeating header that is three rows in length, starting with "Emergency Department Academic Incentive Model ...", and copy and paste the data from where the header begins to the last row before the header repeats to a new worksheet.


AIM Report Example for Mr. Excel Forum.PNG
 
Upvote 0

Forum statistics

Threads
1,215,467
Messages
6,124,985
Members
449,201
Latest member
Lunzwe73

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