+ Reply to Thread
Results 1 to 11 of 11

Automatically copy individual company rows into separate company sheet

  1. #1
    Forum Contributor
    Join Date
    04-06-2016
    Location
    Singapore
    MS-Off Ver
    MS Office 365 & 2010
    Posts
    698

    Automatically copy individual company rows into separate company sheet

    I have a data sheet with 100 companies data, very huge one, and day by day I need to enter some companies data.

    After that I need to copy each and every company data into separate sheet line by line. Can I get any formula to copy each company rows into separate sheet. Plz see attachment for example.


    Thank you.
    Attached Files Attached Files

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

    Re: Automatically copy individual company rows into separate company sheet

    How much control do you have over the Data Sheet? It has merged cells which are bad news in Excel. They look very pretty but are a pain in the neck and other parts lower down to work with. They prohibit you from doing a lot of things so you have to detect them, unmerged them and remerge them before you can do anything with them.

    I could think of a very fast and efficient way of doing this using pivot tables. However the merged cells don't support pivot tables. Also having the date between the column headers and the data means extra work.

    So step one is to reformat the existing data before we can even start working with it. So if you have control over the input, remove the merge on columns B:C - if you need the extra space to read the supplier, just make the cell wider. Also Columns E and G are blank, so don't include them at all.

    Finally, get rid of the AUGUST '16 or move it to the first row and put the header rows next to the data.

    Otherwise, we'll have to do all this cleanup before we can even start the program or use a less-efficient method (looping rather than range copy) to parse the data.
    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
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: Automatically copy individual company rows into separate company sheet

    Removing the merged cells as per Dflak's recommendations:

    in B2 of Suplplier sheets

    =TRIM(MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,255))

    in A3

    =IFERROR(INDEX('DATA SHEET'!$A$3:$K$13,SMALL(IF('DATA SHEET'!$B$3:$B$13=$B$2,ROW('DATA SHEET'!$B$3:$B$13)-ROW($B$3)+1,""),ROWS($B$3:B3)),COLUMN()),"")

    Enter with Ctrl+Shift+Enter

    Copy across and down as far as required.

    I ignored AUGUST '16 as I was not sure of its purpose
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    04-06-2016
    Location
    Singapore
    MS-Off Ver
    MS Office 365 & 2010
    Posts
    698

    Re: Automatically copy individual company rows into separate company sheet

    Sorry for that dflak. Next time I will remember this one.

  5. #5
    Forum Contributor
    Join Date
    04-06-2016
    Location
    Singapore
    MS-Off Ver
    MS Office 365 & 2010
    Posts
    698

    Re: Automatically copy individual company rows into separate company sheet

    JohnTopley, thank you very much for your support.

    I want one more extension......
    If I enter more details in DATA sheet, It was not coming in supplier sheet automatically. Can you plz edit above formula according to that. Otherwise every day I want to update each and every sheet of suppliers.

    Thank you.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: Automatically copy individual company rows into separate company sheet

    Just change the range to your likely maximum

    =IFERROR(INDEX('DATA SHEET'!$A$3:$K$10000,SMALL(IF('DATA SHEET'!$B$3:$B$10000=$B$2,ROW('DATA SHEET'!$B$3:$B$10000)-ROW($B$3)+1,""),ROWS($B$3:B3)),COLUMN()),"")

  7. #7
    Forum Contributor
    Join Date
    04-06-2016
    Location
    Singapore
    MS-Off Ver
    MS Office 365 & 2010
    Posts
    698

    Re: Automatically copy individual company rows into separate company sheet

    Thank you very much........

    one more is generally we divide this form as monthly transations

    like AUGUST '16 , SEPTEMBER '16,
    So, If we enter month in DATA sheet, then it will appear in all supplier sheet.
    please see attachment
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    04-06-2016
    Location
    Singapore
    MS-Off Ver
    MS Office 365 & 2010
    Posts
    698

    Re: Automatically copy individual company rows into separate company sheet

    Not about month, If we enter any text between rows, then it will appear in all suppliers sheets.

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: Automatically copy individual company rows into separate company sheet

    I don't how you do this using a formula as you effectively have monthly sheets within your "master" sheet: you might have resort to VBA to enable this.
    Last edited by JohnTopley; 09-23-2016 at 01:12 PM.

  10. #10
    Forum Contributor
    Join Date
    04-06-2016
    Location
    Singapore
    MS-Off Ver
    MS Office 365 & 2010
    Posts
    698

    Re: Automatically copy individual company rows into separate company sheet

    Ok, thank you very much.

  11. #11
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: Automatically copy individual company rows into separate company sheet

    See attached:

    Please Login or Register  to view this content.
    Run macros from "Tables"
    Attached Files Attached Files

+ 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. Can i sort on company when information is on 2 rows?
    By tigergutt in forum Excel General
    Replies: 2
    Last Post: 05-19-2015, 08:28 AM
  2. Copy the whole row into their perspective company
    By bri7697 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-27-2013, 05:01 PM
  3. Replies: 0
    Last Post: 07-24-2013, 01:36 AM
  4. [SOLVED] Macro to copy 3 adjacent columns at a time to a separate worksheet & sort by Company name
    By anya1 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-20-2013, 06:50 AM
  5. am i able to copy data from one sheet onto another based on a company hierachy!
    By obeo2k2 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-08-2012, 11:21 AM
  6. Search on company name to auto input company address
    By jamie.c in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-12-2009, 12:38 PM
  7. [SOLVED] need macro to page break between company names automatically
    By Ms Magers in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-04-2006, 11:55 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