+ Reply to Thread
Results 1 to 9 of 9

Sorting A Large Tab Into Smaller Tabs

  1. #1
    Registered User
    Join Date
    01-22-2019
    Location
    St Paul, Minnesota
    MS-Off Ver
    2016
    Posts
    8

    Question Sorting A Large Tab Into Smaller Tabs

    Hello! I posted here once before and you guys were so incredibly helpful- quite literally saved me 100 hours of work.

    So for my work I have this excel spreadsheet with every teacher in the state of Minnesota. It's already been sorted down to those that teach subjects relevant to what my organization does- and I spent about a week sorting all of the high school teachers my region. I'm now trying to do the same thing with all of the Middle School teachers, but it's 60,000 entries and that's just an insane number of teachers to sort manually.

    The nuts and bolts: I have a tab with every Middle School teacher we need, and six tabs for each region of the state. Each teacher has the district they teach in, and I have a list that shows which region each district is. So what I've been doing is sorting by district (so that it's at least in groups), and then selecting all of the teachers in a given district, checking the list, and putting them in the corresponding region tab. It takes less time then doing it one by one, but surely there's a quicker way to do this. Each region has about 50 districts, and there's a total of 336 districts in Minnesota. So it's not like I can just quickly sort them by region, there's far too many.

    Is there some sort of command or formula that can speed up this process?

    Thanks again for your help last time, hopefully you can help me again.

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,919

    Re: Sorting A Large Tab Into Smaller Tabs

    This will take some VB Code. It will go better if we had some sample data. We don't need all 60,000 names, and we certainly don't need real names. Here's some tips on how to do that: https://www.excelforum.com/tips-and-...tize-data.html. Give us a good sampling of districts and regions. From the description it sounds like if you have the data in the right format that a pivot table will solve your problem.

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    01-22-2019
    Location
    St Paul, Minnesota
    MS-Off Ver
    2016
    Posts
    8

    Re: Sorting A Large Tab Into Smaller Tabs

    Alright, thank you! I know it's been a minute but hopefully this post still gets some visibility. I've attached a sample workbook with approximately the same foramtting as the spreadsheet I'm looking at.

    A lot of the information here is irrelevant; What's important is the District Name and Number, this is what each row is being sorted by. I'm trying to get each entry into a different tab, shown at the bottom as 3 different regions. In reality there's 6.

    I do have a list of which district is in which region, but not in excel format and obviously it would be difficult to move it over given how many school districts we're talking about here (hundreds).

    What I'm doing now is simply sorting by District Number, highlighting each teacher in a given district (for example, on this spreadsheet the first four are all in "Central Area District" which would be in the Central Region) and moving them to the proper tab.

    I'm hoping to find a way to take all 60k+ entries and automatically sort them into different tabs, but I have no idea how I can do that, especially given that right now the list of districts in each region is in a Google Document, not anything that can easily put into a code.

    If there's nothing to do, that's fine. But I'm supposed to work through this by the end of the Month, and I have other projects I'm working on. If there's a way to cut down on the hours it would take that be fantastic!
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    01-07-2013
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    601

    Re: Sorting A Large Tab Into Smaller Tabs

    Are all the district names indicative of what region they belong to? E.g. do all Metro regions have the word "Metro" in the district name? There needs to be a way to tie district to region in order to know which region tab a given set of district rows needs to be copied to.

  5. #5
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,222

    Re: Sorting A Large Tab Into Smaller Tabs

    May be this you requires.
    CENTRAL REGION Sheet In "A2" :
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Ensure press ctrl+shift+enter
    copy paste across.
    "P1" is criteria district number.
    Ref attach file.
    Same apply for other sheets.
    Attached Files Attached Files


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  6. #6
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,919

    Re: Sorting A Large Tab Into Smaller Tabs

    Some questions. You say that there are 6 regions. Can I assume that these are fixed? That is they won't be changing with the data.

    You say also that you have a Google Doc. We can make it that you can download this to a folder and import it into a "real" Excel spreadsheet. If you can give us a sample of the Google Doc (edit out the sensitive information as you have done here), I should be able to work this out.

    We'll Import the Google Doc and then use filters and copy in an automated version of what you are now doing manually.

  7. #7
    Registered User
    Join Date
    01-22-2019
    Location
    St Paul, Minnesota
    MS-Off Ver
    2016
    Posts
    8

    Re: Sorting A Large Tab Into Smaller Tabs

    Yes, the regions are fixed. No, there is no way to know simply by looking at the district name what region they would be in- I only included the words "metropolitan" to make the example for clear.

    In reality, you really just need to take each district, look for it on the document, and see which region it's marked as.

    I've attached the document below. It's all public knowledge- this isn't anything critical, it's just where each school district in Minnesota is. (EDIT: Each region is separated into two columns, this is simply for making it easier to read, it doesn't mean anything. The six big cells are all that matter, NW NE SW SE Central and Metro.)

    If there is a way to turn this into an excel sheet and somehow use that to automatically sort each teacher, that would be fantastic. But if it is possible, I will probably need the formulas explained very simply.

    Thank you all so much for the help, I'm hoping to finish this this weekend.
    Attached Files Attached Files

  8. #8
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,919

    Re: Sorting A Large Tab Into Smaller Tabs

    I suspect that there is a way to open the Word document and search for tables, etc. I decided on a more low-tech solution.

    Open the spreadsheet and click on the Clear Old Data button.

    Open the Word Document and press CTRL-A then CTRL-C to select and copy all the text.

    Select Cell A1 on the Word Document Sheet and pres CTRL-V to paste all.

    Then go back to the Control Panel Sheet and click on the Get Data Button. This will populate the table on the Data Sheet.

    The Pivot sheet is there just for QA purposes. However, I threw in a couple of slicers. Select the region and the School slicer will show you what schools are in that region. Unfortunately, they go left-to-right and then top-to-bottom, but that's how slicers work
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    01-22-2019
    Location
    St Paul, Minnesota
    MS-Off Ver
    2016
    Posts
    8

    Re: Sorting A Large Tab Into Smaller Tabs

    Wow, this is actually really cool! Will make things quicker for sure, I don't think it can be done automatically so this will make it more efficient and less mind numbing to go through it all. Thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Splitting a large square into smaller squares
    By tangchon1980 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-21-2019, 08:57 AM
  2. Replies: 2
    Last Post: 09-15-2016, 01:10 AM
  3. Replies: 3
    Last Post: 06-21-2014, 11:44 AM
  4. Split large file into several smaller xls files
    By dirre in forum Excel General
    Replies: 4
    Last Post: 10-27-2011, 08:13 AM
  5. Why is my workbook so large (7.34mb) and is there a way to make it smaller?
    By jonvanwyk in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-25-2011, 02:20 PM
  6. Filtering data from one large table into many smaller ones based on certain criteria.
    By hugedomer11 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-11-2010, 12:57 AM
  7. Splitting a large xls file into smaller txt files
    By comet in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-24-2009, 03:46 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1