+ Reply to Thread
Results 1 to 5 of 5

Adding data to new sheets from main sheet

  1. #1
    Registered User
    Join Date
    04-14-2011
    Location
    Lithuania
    MS-Off Ver
    Excel 2007
    Posts
    2

    Adding data to new sheets from main sheet

    I'm trying to move data from Sheet1 to different new sheets based on the data in column A. In column A I have, for example, ten rows with the value "banana" and then lots of other data in the other columns. I also have twelve values of "orange" in Column A with data in the other columns, and I want to get the data for Banana on Sheet2, the data for Orange on Sheet3, and so on - for about 5000 rows of data.

    Does anyone know an easy way to do this?

    I've attached a sample sheet that has a sample of my data, and how I want it to look.
    Attached Files Attached Files

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Adding data to new sheets from main sheet

    Give this a try

    Please Login or Register  to view this content.
    You could do this manually, but using the code is a little faster.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Adding data to new sheets from main sheet

    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  4. #4
    Valued Forum Contributor
    Join Date
    06-29-2014
    Location
    Australia
    MS-Off Ver
    MSO 365
    Posts
    1,098

    Re: Adding data to new sheets from main sheet

    Hello Norman,

    I'm a bit late on the scene here but I'll leave my two cents worth!




    Please Login or Register  to view this content.
    Cheerio,
    vcoolio.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Adding data to new sheets from main sheet

    Another, formula, option. Put this ARRAY formula where you want the answers to start on each sheet...
    =IFERROR(INDEX(Sheet1!A:A,SMALL(IF(Sheet1!$A$1:$A$37="Strawberry",ROW(Sheet1!$A$1:$A$37)),ROWS($A$1:A1))),"")

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Copy down and across as needed

    Copy to other sheets and change the fruit
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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] Auto generate sheets using template sheet and upon data entry. Link to main sheet
    By Coubs3 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-05-2017, 09:48 AM
  2. [SOLVED] Transfer data from one main sheet to two sheets
    By KingTamo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-28-2016, 03:53 AM
  3. Copying DATA from Main sheet into different sheets
    By Shellad in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-03-2014, 01:39 AM
  4. copy data from main sheet to respective sub sheets
    By sshanku1985 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 03-14-2011, 12:26 PM
  5. copying data from several sheets to one main sheet
    By jjames1978 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 01-08-2011, 06:45 PM
  6. Macro to transfer data from main sheet to sub sheets
    By sandbach in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-02-2010, 05:42 PM
  7. [SOLVED] How do I combine data from several sheets into one main sheet?
    By Caren F in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-19-2006, 01:45 PM

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