+ Reply to Thread
Results 1 to 10 of 10

Pulling data from master spreadsheet to another spreadsheet

  1. #1
    Registered User
    Join Date
    06-25-2014
    Location
    Nottingham, England
    MS-Off Ver
    MS Office 2010
    Posts
    4

    Angry Pulling data from master spreadsheet to another spreadsheet

    Hi All,

    This has really been bugging me for the past few hours. Any advice/suggestions would be highly welcome. I use Excel 2010.

    In short, I have a big spreadsheet with data regarding employees. Column A: First Name, Column B: Surname, Column C: Payroll no... etc. Column L is Region (South, South East etc.).

    I have previously created several other worksheets in the same workbook based on the region but I did that by simply filtering by region and then copy+pasting it into the relevant sheet.

    Is there a way of creating a link between the master and sub-spreasheet based on the region? I would like new employees to be automatically added to their relevant region sub-sheet as they are entered into the master.

    Thank you in advance, please help!

    Vas

  2. #2
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Re: Pulling data from master spreadsheet to another spreadsheet

    Hi Vas
    This could be done using VBA code but we would need a sample layout.
    Tony

  3. #3
    Registered User
    Join Date
    06-25-2014
    Location
    Nottingham, England
    MS-Off Ver
    MS Office 2010
    Posts
    4

    Post Re: Pulling data from master spreadsheet to another spreadsheet

    Sample Spreadsheet.xlsx

    Hi Tony,

    Thank you for your reply.

    Please see sample of the layout attached.

    TMS is the master spreadsheet and I need all of the current workers to be split into the region-designated sheets. Also, if any new workers that are added to the TMS could appear in the relevant region sheet, that would be highly useful.

    Thank you,

    Vas

  4. #4
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Re: Pulling data from master spreadsheet to another spreadsheet

    Hi Vas
    Do you want to up-date the master then update the region sheets or vice versa?
    Tony

  5. #5
    Registered User
    Join Date
    06-25-2014
    Location
    Nottingham, England
    MS-Off Ver
    MS Office 2010
    Posts
    4

    Re: Pulling data from master spreadsheet to another spreadsheet

    Hi Tony,

    Please excuse the later reply. I'd like to update the master which updates the region sheets.

    Thank you,

    Vas

  6. #6
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Re: Pulling data from master spreadsheet to another spreadsheet

    Hi Vas
    Please see sample attached. It works as follows:
    As soon as you enter something in Column T a macto will file and copy the row into the correct region and create a link to that data. You will have to make sure that the correct Region is entered into column L or the macro will fail. Suggest you use data valildation in column L.
    Hope this helps.
    Good luck.

    Tony
    Attached Files Attached Files

  7. #7
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Pulling data from master spreadsheet to another spreadsheet

    Please find the attachment
    With Helper Column in Column "U" i get the result
    Please change the Sheet Name as per your requirement it will get the result
    Attached Files Attached Files
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  8. #8
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Pulling data from master spreadsheet to another spreadsheet

    This might suit your needs. There are no helper columns used.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  9. #9
    Registered User
    Join Date
    06-25-2014
    Location
    Nottingham, England
    MS-Off Ver
    MS Office 2010
    Posts
    4

    Re: Pulling data from master spreadsheet to another spreadsheet

    Hi All,

    Thank you so much, all of your answers really helped. I can't believe that there are so many solutions to this excel problem. If anyone has any time to even begin to explain how this works, especially newdoverman (purely because your answer was exactly what I needed), I would greatly appreciate it. I'm here to learn as well as get help.

    Once again, massive kudos to all of you.

    Thank you,

    Vas

  10. #10
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Pulling data from master spreadsheet to another spreadsheet

    Here is the formula that is the basis of the solution ARRAY entered:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    INDEX has the following arguments which produces and intersection of ROW and COLUMN (the value that you want).
    1. Array - this is a range of cells from which you want to extract a value.
    2. The second argument is the ROW and in this formula it is being calculated by the combination of the SMALL and IF functions. The IF part is the condition that will produce an array for the SMALL function. In this case it is looking at the range TMS!$L$2:$L$500 for matches for the value in $A$1. ROW lists all the rows to be considered. This is followed by MIN(ROW... This combination gives a starting row but it is 1 row less than required so the +1 is added. We now have a list of rows and a starting point. This is the ARRAY part of the SMALL function whose arguments are ARRAY,K . The K part of the SMALL function is determined by the ROWS($1:1). This is a counter that increases by 1 with each row the formula is dragged down, finding the smallest, second smallest, third smallest values etc. All of this provides the rows that intersect with the INDEX range, one intersection at a time as the formula is dragged down with the fill handle.

    IFERROR eliminates the display of error messages when the data runs out. The ,"") at the end of the formula is what the errors are replace with which in this case is a blank cell.

    This is certainly easier to do than explain

    Try this formula on small examples and it should become clear what is happening.

    If anyone else has something to add/correct/explain please chime in.

+ 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. Pulling data from one spreadsheet to another
    By rintintin in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-17-2013, 08:15 PM
  2. Creating a master spreadsheet based on various spreadsheet in Sharepoint
    By lmoura in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-06-2013, 05:09 PM
  3. Replies: 8
    Last Post: 02-28-2012, 12:04 PM
  4. Replies: 2
    Last Post: 08-12-2011, 10:08 AM
  5. Replies: 4
    Last Post: 07-11-2011, 07:27 PM

Tags for this Thread

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