Break apart Large File (special condition)

kcaenj

Board Regular
Joined
Oct 13, 2004
Messages
197
I have a large file over 55,000 lines that has been giving me trouble when i attmept to copy down a complex formula on all of the rows. I want to separate the file into more managable pieces. Mabye 5,000 lines each. The only problem is that I dont want to arbitrarily separate the file. It has groupings by employee number. How can I make the file separate but not break up in the middle of a batch of the same employee number.

Employee Number. Name, Amount
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Can you do it visually? I.e. use the Name box to select 1:5000, then just drag down till you see a new employee number? Otherwise can you use Data->Group and Outline to group on the employee number to help in finding the beginning and end of each number. Otherwise, you could create a formula down another column that tells you if you are at the end of the employee. Otherwise you could have a macro do it for you.

55,000 is very large, almost hitting Excel's limit. Maybe want to consider switching to something like Access for something of this size.

If you would like a macro, just let us know, someone would be happy to do it.
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,552
Members
449,088
Latest member
davidcom

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