+ Reply to Thread
Results 1 to 7 of 7

Autopopulate data into different sheets

  1. #1
    Registered User
    Join Date
    10-24-2014
    Location
    Timisoara, Romania
    MS-Off Ver
    2007
    Posts
    5

    Autopopulate data into different sheets

    Hi guys.
    I'm newbie in excel functions and I need your help.
    I have an excel file with more sheets. In sheet Raw I have all data with this header: nr_crt, name, location (location is repeating). The others sheets named Room1, Room2, etc must contain nr_crt and name based on location (from sheet Raw). Can you help me please to automate this somehow and also, whenever I input data in sheet Raw, automatically sheets Room1, Room2 and so on to be filled with data?

    Sorry for my bad english and I hope you understand what I'm asking. Also I've attached an excel file with sample data.

    Thank you.
    Attached Files Attached Files

  2. #2
    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,933

    Re: Autopopulate data into different sheets

    Hi, welcome to the forum

    Your english is very good, and your explanation is easily understood

    This is how I would takle this.

    1. Use this in Raw, D2, copied down...
    =C2&"-"&COUNTIF($C$2:C2,C2)
    This will give you a unique ID for each Item and room

    2. Use this in D1 in rour "room" sheets (you can actually put it anywhere and hide it if you want), it will pull out the sheet name for you...
    =MID(CELL("Filename",A1),FIND("]",CELL("Filename",A1))+1,255)

    3. Finally, use this in eacg room sheet, copied down and across, to pull in the necessary data...
    =IFERROR(INDEX(Raw!$A$2:$C$22,MATCH($D$1&"-"&ROW(A1),Raw!$D$2:$D$22,0),MATCH(A$1,Raw!$A$1:$C$1,0)),"")

    By the way, it will make things a LOT easier if you use the sane name for the room sheet as in the RAW table...Room 1 has a space in teh table, but room1 has no space in the tab name
    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

  3. #3
    Registered User
    Join Date
    10-24-2014
    Location
    Timisoara, Romania
    MS-Off Ver
    2007
    Posts
    5

    Re: Autopopulate data into different sheets

    #FDibbins, thank you for your kindness.

    So, formula from #1 and #2 work just fine but formula from #3...where should I put it in Room sheets? Because nothing returns me (probably I'm doing something wrong).

    L.E.: also I was wondering if is possible that Room1, Room2, etc sheets can be automatically updated if in Raw sheet I insert more records.

    Thank you.

    L.E.2: Solved! I did something wrong in first place and that's way nothing returned me on #3 formula. I also managed what I second want (updating every sheet when I input/delete records into Raw) by creating tabels. Is working like a charm.

    Once again, thanks FDibbins.
    Last edited by spwho; 10-24-2014 at 09:07 AM.

  4. #4
    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,933

    Re: Autopopulate data into different sheets

    I think maybe you missed my last comment about the tab names being exactly the same as the names in your data sheet. See the attached
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-24-2014
    Location
    Timisoara, Romania
    MS-Off Ver
    2007
    Posts
    5

    Re: Autopopulate data into different sheets

    No. I didn't miss that observation from you. I just forgot to mention that I renamed the tabs without space. Anyway, it's working now and thanks for help.
    I'm not in front of my PC now but I will put as soon as possible the final file here (in case you have other ideas...there are always welcomed ).

  6. #6
    Registered User
    Join Date
    10-24-2014
    Location
    Timisoara, Romania
    MS-Off Ver
    2007
    Posts
    5

    Re: Autopopulate data into different sheets

    I came back as I promised with my final output file after you gave me those formulas...
    Attached Files Attached Files

  7. #7
    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,933

    Re: Autopopulate data into different sheets

    Great job, well done and thanks for sharing

+ 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. Autopopulate Different Sheets from a master sheet
    By JamesFletcher in forum Excel General
    Replies: 7
    Last Post: 05-07-2013, 03:12 AM
  2. Autopopulate other data sheets from a master sheet
    By lorinda in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-20-2013, 04:04 PM
  3. Autopopulate multiple data sheets
    By jafox in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-14-2013, 11:56 AM
  4. Replies: 9
    Last Post: 10-02-2012, 03:39 PM
  5. Autopopulate Sheet1 when new sheets are created
    By Hello23 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-24-2012, 05:38 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