+ Reply to Thread
Results 1 to 6 of 6

Automatically extracting Rows from constantly updated Tables

  1. #1
    Registered User
    Join Date
    09-05-2013
    Location
    Long Beach, CA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Automatically extracting Rows from constantly updated Tables

    Hello superusers, first time poster here!

    I would like to extract rows satisfying criteria (akin to tags) from a constantly updated, main table and have them show up linked in the appropriate worksheet tab (in this attached example, appropriate chapters (column F on the main table). I can currently do this by Filtering by that certain criteria, copying the table that shows up, then pasting as linked cells into the appropriate worksheet. However I run into a couple problems:

    1) In the main table, the data in the rows can move around to other rows, so I can't just do a simple "copy & paste linked cells" because they only refer back to a set row (e.g. Sheet1!A4) in the main table. Instead I want it to refer back to whichever rows in the entire main table contain the criteria/tag, even as the data in the row has moved.

    2) Additionally, when I add new data, including the appropriate criteria/tag (chapter column in my attached table), I want that to automatically be extracted into the appropriate worksheet.

    Note: After a perusal of similar questions on excel forum, I could only find ones that required me to view code, then add code, which I presume means it must be saved as a macro-enabled workbook at that point. I would like to do this without using VBA or macros, using instead F(x) like INDEX, QUERY, FILTER, etc.

    Please help! If only #1 can be solved for now that is totally fine. Thank you!
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,736

    Re: Automatically extracting Rows from constantly updated Tables

    You can do it with formulae (although your text might be a bit long in some cases), but rather than have separate sheets for each chapter, wouldn't it be better to have just one sub-sheet where you can select the Chapter number from a drop-down (like a filter) and then display the records that meet the chosen criteria? I can show you how to do that (many other posts of mine cover this topic). Here's an example from a few weeks' back:

    http://www.excelforum.com/excel-gene...taneously.html

    Hope this helps.

    Pete

  3. #3
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Automatically extracting Rows from constantly updated Tables

    He he... I feel like I solved problems similar to this so many times. Last time was this, quite recently: http://www.excelforum.com/excel-form...e-vlookup.html ( I wouldn't call it a reverse vlookup though, that's something else).

    Anyway, attached is what I think you're after. I changed your master sheet to an Excel Table. This will expand automatically as you add data and the formulas will also adjust automatically. I only copied the formulas down 15 rows or so in the chapter sheets, if you need more just copy down.

    The formulas are array formulas. If you edit one you can't just hit enter afterward, it will ruin the formula, you have to use Ctrl + Shift + Enter.

    If you for some reason want to add a row to the top of the master sheet the formulas need to be changed a bit.
    Attached Files Attached Files
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  4. #4
    Registered User
    Join Date
    09-05-2013
    Location
    Long Beach, CA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Automatically extracting Rows from constantly updated Tables

    Thanks you guys! I got it finally!

    Pete_UK: Thanks, dropdown sounds pretty nice, but probably not right now for what exactly I need. Will let you know if when I do!

    Jacc: Thanks for working it out! Yea I know my question is far from unique lol, I just did a quick perusal and it's just hard to decipher all the excel language going on without feeling stuck and confused

  5. #5
    Registered User
    Join Date
    09-05-2013
    Location
    Long Beach, CA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Automatically extracting Rows from constantly updated Tables

    Actually yes, adding rows and moving rows around is something I'll do very often for my type of spreadsheet. I added entries to the main table but the other worksheets do not update. How can I adjust for that?

  6. #6
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Automatically extracting Rows from constantly updated Tables

    The dashes in the workbook that I posted indicate which cells contain the formulas to extract, as I mentioned before they go down to row 15.
    I have no idea how big your data set is, maybe they should go down to row 150 or row 1500. Anyway you just copy the formula down until you see dashes, then you know you have enough.
    If you are in the 1500 to 15000 row range it will start to get really slow so don't copy down to row 15000 unless you have to.
    If you need to automate this too I can put together a macro for you.

+ 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. Need Pivot tables to consolidate constantly changing data.
    By Whingered in forum Excel Charting & Pivots
    Replies: 12
    Last Post: 01-25-2013, 09:29 AM
  2. Linking Tables- Rows/columns automatically adjust
    By Jaspal in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-07-2012, 12:58 PM
  3. Multiple tables into one constantly updated table
    By Boomer17 in forum Excel General
    Replies: 0
    Last Post: 07-09-2012, 02:59 PM
  4. Replies: 6
    Last Post: 06-18-2012, 01:26 AM
  5. Replies: 1
    Last Post: 03-09-2006, 01:24 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