+ Reply to Thread
Results 1 to 11 of 11

Compiling Table using multiple sheets that are all the same.

  1. #1
    Registered User
    Join Date
    08-01-2015
    Location
    US
    MS-Off Ver
    2010
    Posts
    4

    Compiling Table using multiple sheets that are all the same.

    Hey guys,


    I have a template made for a research program that I am doing in agriculture that tracks soil nutrients in plants. The template is the same for every time we collect data, so the boxes are the same. I have compiled all the sheets into one book and i am wondering how I can compile data from those sheets into a single table in which i can then graph the results.


    The problem i am trying to figure out: For example, in box A10 for every single sheet, that is the soil nutrient content value for that particular table of plants. How, either using VBA or a macro, take the value in box A10 from 30 sheets and turn that into a table of all of those values? I am not looking to sum those values, but rather take the raw calue and put them into a table that I can graph.

    ME 2010 is what i am using.


    Thanks,

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Compiling Table using multiple sheets that are all the same.

    Hi CC,

    Welcome to the Forum!

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    07-26-2015
    Location
    AB, Canada
    MS-Off Ver
    2007
    Posts
    1

    Re: Compiling Table using multiple sheets that are all the same.

    I will tell you how I would do this - although not as requested with VBA and macros.
    Create a new tab in your document. Rather than type each sheet name in column A, enter this formula in A1:
    =IFERROR(INDEX(MID(SheetNames,FIND("]",SheetNames)+1,255),ROWS(A1:A$1)),"")
    Drag down to row 30 - or however many tabs you have.

    In cell B1 enter: =INDIRECT("'"&A1&"'!a10"), drag down to row 30.
    You then have your data for graphing.

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Compiling Table using multiple sheets that are all the same.

    Basic but it gives you an idea how you can solve this. Summary sheet must be first sheet.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    08-01-2015
    Location
    US
    MS-Off Ver
    2010
    Posts
    4

    Re: Compiling Table using multiple sheets that are all the same.

    Will this sample work?

    I'm looking to take 30-40 sheets that all have a different value in a single cell, for this example, i am using b3.

    i want to compile them into a table to make a graph with.

    Thanks guys!
    Attached Files Attached Files

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Compiling Table using multiple sheets that are all the same.

    Here's a quickie:

    Please Login or Register  to view this content.
    Directions for running the routine(s) just supplied

    If you haven't used macros before you'll need to go to:
    File- options - trust center -trust center settings - macro settings ,
    the second option down (disable all macros with notification)

    Then - Copy the code to the clipboard

    Open your Workbook

    Press ALT + F11 to open the Visual Basic Editor.

    Select "Module" from the Insert menu

    Type "Option Explicit" then paste the code under it

    With the cursor between Sub and End Sub press F5 (F8 to Single Step)

    OR

    Press ALT + Q to close the code window.

  7. #7
    Registered User
    Join Date
    08-01-2015
    Location
    US
    MS-Off Ver
    2010
    Posts
    4

    Re: Compiling Table using multiple sheets that are all the same.

    After closing the window with the macro saved as code, how do place that into a sheet i am working on?

  8. #8
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Compiling Table using multiple sheets that are all the same.

    It doesn't need to be in the sheet you're working on - but your sheet must be the active one - with your sheet active you can hit ALT+F8 to get a list of macros then just doubleclick on the name(CptCactus) and it will run

  9. #9
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Compiling Table using multiple sheets that are all the same.

    Another one which improves execution time with 75%.
    Please Login or Register  to view this content.

  10. #10
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Compiling Table using multiple sheets that are all the same.

    Always nice to get positive feedback from a Forum Guru.
    Many thanks for the rep.

  11. #11
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Compiling Table using multiple sheets that are all the same.

    @bakerman2 - You're more than welcome, I'm already using your coding technique

+ 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] Finding specific text in multiple sheets and compiling into new sheet.
    By ericv101 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-17-2013, 08:44 PM
  2. Replies: 2
    Last Post: 04-10-2013, 09:25 PM
  3. [SOLVED] Compiling Cell Entries from Multiple Sheets into a New Sheet
    By tb.west in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 12-12-2012, 12:24 AM
  4. Compiling multiple ranges of cells from multiple sheets into one grand table ?
    By teacher_rob in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-24-2012, 11:42 AM
  5. Compiling data from multiple work sheets.
    By Dumori in forum Excel General
    Replies: 11
    Last Post: 10-23-2012, 06:39 AM
  6. Replies: 0
    Last Post: 01-04-2012, 11:22 AM
  7. Compiling all data from multiple sheets as its entered
    By MatthewFlinchem in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-14-2007, 01:58 PM
  8. Replies: 4
    Last Post: 07-19-2006, 01: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