+ Reply to Thread
Results 1 to 11 of 11

Self populate tables based on criteria of data in 'master' table

  1. #1
    Registered User
    Join Date
    07-06-2016
    Location
    ARRA BROOKHAVEN
    MS-Off Ver
    2013
    Posts
    9

    Self populate tables based on criteria of data in 'master' table

    Hi,

    This is my first question on the forum, I apologise if I'm not using the correct terminology or explaining myself properly - I'll do my best.

    I work in Business Development, one of my duties is to prepare, submit and monitor the progress of tenders/proposals for new prospective clients

    I have a 'master' table which lists each tender/proposal with some basic information on each row. One of the columns on the master table is labelled 'Stage' -This is a dropdown with options; 'PQQ', 'ITT', 'PRESENTATION'. I then have three other tables, all the same as the master table but labelled as; 'PQQ Stage' ITT Stage' and 'Presentation Stage'.

    What I am trying to achieve is this; When I enter data onto the 'master' table, I want the other three tables ('PQQ Stage' ITT Stage' and 'Presentation Stage') to self populate depending on the criteria of the 'Stage' column. For example; any rows with PQQ entered into the 'Stage' column of the 'master' table to automatically copy into 'PQQ Stage' table..... any rows with ITT entered into the 'Stage' column of the 'master table' to automatically copy into 'ITT Stage' table.

    The image below shows basically what I am trying to achieve. I've also attached the Excel spreadsheet for you guys to look at and edit if need be.

    Example2.png

    This is only a very basic spreadsheet with basic tables - I only made this for the purpose of demonstrating to yourselves exactly what it is I require.


    If any of you guys can help me it would be much appreciated. Many thanks, Ross
    Attached Files Attached Files

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

    Re: Self populate tables based on criteria of data in 'master' table

    Try

    In B16

    =IFERROR(INDEX(B$3:B$11,SMALL(IF($E$3:$E$11="PQQ",ROW($B$3:$B$11)-ROW($B$3)+1,""),ROWS($B$3:B3))),"")

    Enter with CtrL+Shift+Enter

    Copy across and down

    Sane formula in other tables but change "PQQ" to "ITT" and "Presentation"

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Self populate tables based on criteria of data in 'master' table

    Or using a bit of VBA:
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  4. #4
    Registered User
    Join Date
    07-06-2016
    Location
    ARRA BROOKHAVEN
    MS-Off Ver
    2013
    Posts
    9

    Re: Self populate tables based on criteria of data in 'master' table

    Quote Originally Posted by JohnTopley View Post
    Try

    In B16

    =IFERROR(INDEX(B$3:B$11,SMALL(IF($E$3:$E$11="PQQ",ROW($B$3:$B$11)-ROW($B$3)+1,""),ROWS($B$3:B3))),"")

    Enter with CtrL+Shift+Enter

    Copy across and down

    Sane formula in other tables but change "PQQ" to "ITT" and "Presentation"
    You Sir, are a Godsend! That works perfectly.

    One last thing I just thought of - if you're able to help me please?

    Is it possible for me to have each of the three tables (PQQ / ITT / PRESENTATION) on their own sheet, and still auto-populate dependent on the criteria of records in the 'master' table? For example, a sheet for PQQ, a sheet for ITT and another for Presentation.

    Thank you so much for your help

  5. #5
    Registered User
    Join Date
    07-06-2016
    Location
    ARRA BROOKHAVEN
    MS-Off Ver
    2013
    Posts
    9

    Re: Self populate tables based on criteria of data in 'master' table

    Quote Originally Posted by Olly View Post
    Or using a bit of VBA:
    Please Login or Register  to view this content.
    Thank you for your help Olly - although I don't think I have enough knowledge to start delving into VBA yet lol. Thanks again!

  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,192

    Re: Self populate tables based on criteria of data in 'master' table

    Assuming data in Sheet1 and your tables in other sheet(s)

    =IFERROR(INDEX(Sheet1!B$3:B$11,SMALL(IF(Sheet1!$E$3:$E$11="PQQ",ROW(!$B$3:$B$11)-ROW(Sheet1!$B$3)+1,""),ROWS($B$3:B3))),"")

    See Sheet2 of attached
    Attached Files Attached Files
    Last edited by JohnTopley; 07-06-2016 at 08:42 AM.

  7. #7
    Registered User
    Join Date
    07-06-2016
    Location
    ARRA BROOKHAVEN
    MS-Off Ver
    2013
    Posts
    9

    Re: Self populate tables based on criteria of data in 'master' table

    Quote Originally Posted by JohnTopley View Post
    Assuming data in Sheet1 and your tables in other sheet(s)

    =IFERROR(INDEX(Sheet1!B$3:B$11,SMALL(IF(Sheet1!$E$3:$E$11="PQQ",ROW(!$B$3:$B$11)-ROW(Sheet1!$B$3)+1,""),ROWS($B$3:B3))),"")

    See Sheet2 of attached
    Thanks again John - you're a genius.

    Sorry to be a pain, but is there anyway of self populating only certain columns rather than duplicating an entire row.

    For example; The 'master' table contains all colums- then the other tables are condensed versions of the master table.

    Please see attachment - you'll see on sheet 2 what I mean when I say condensed versions of the master table.

    Many thanks, Ross!
    Attached Files Attached Files

  8. #8
    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,192

    Re: Self populate tables based on criteria of data in 'master' table

    Company

    =IFERROR(INDEX(Sheet1!B$3:B$11,SMALL(IF(Sheet1!$E$3:$E$11="PQQ",ROW($B$3:$B$11)-ROW(Sheet1!$B$3)+1,""),ROWS($B$3:B3))),"")

    Amount

    =IFERROR(INDEX(Sheet1!D$3:D$11,SMALL(IF(Sheet1!$E$3:$E$11="PQQ",ROW($B$3:$B$11)-ROW(Sheet1!$B$3)+1,""),ROWS($B$3:B3))),"")

  9. #9
    Registered User
    Join Date
    07-06-2016
    Location
    ARRA BROOKHAVEN
    MS-Off Ver
    2013
    Posts
    9

    Re: Self populate tables based on criteria of data in 'master' table

    Thanks so much for your help John - much appreciated!

  10. #10
    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,192

    Re: Self populate tables based on criteria of data in 'master' table

    Thank you for the feedback and rep.

    If your query has been addressed could you please mark the thread as solved ("Thread Tools" at top of first post)

  11. #11
    Valued Forum Contributor
    Join Date
    05-11-2013
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    586

    Re: Self populate tables based on criteria of data in 'master' table

    Hi,

    Alternatively you could do it using Pivot Tables.
    Please see attached.

    Regards

    peterrc
    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. [SOLVED] Populate data on table based on multiple criteria and value selected from drop-down
    By hcyeap in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-26-2015, 07:45 AM
  2. Populate data in a table based on dropdown criteria
    By Ragsbr in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-08-2014, 03:23 AM
  3. Auto-Populate Data From Master List to Separate Sheets When Two Criteria's Are Met
    By centibttrfly in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-09-2014, 11:18 AM
  4. [SOLVED] Automatically populate a table with slected data based on criteria
    By smithrog in forum Excel General
    Replies: 7
    Last Post: 07-01-2013, 03:52 AM
  5. Populate master workbook with data from other workbooks based on criteria lookup
    By nabilbil in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-26-2013, 02:47 PM
  6. Replies: 0
    Last Post: 10-07-2012, 09:40 PM
  7. Replies: 2
    Last Post: 02-10-2012, 02:00 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