+ Reply to Thread
Results 1 to 14 of 14

trying to Consolidate a number of sheets into 1

  1. #1
    Registered User
    Join Date
    05-17-2016
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    4

    trying to Consolidate a number of sheets into 1

    Hello everyone,

    This forum has basically taught me everything i now know in Excel and for that I am very grateful.

    I seem to have run into an issue i cant figure out and cant seem to find the answer to, although i am probably not asking google the right questions.

    What i am trying to do is consolidate data from a number of different sheets on the same book, into one sheet with all the info stacked on top of each other.

    All the sheets have the same titles in row 1, however each sheet will have a different amount of information and therefore a different amount of rows.. some columns may even be empty as well as a few cells scattered around.

    the one constant on each sheet would be Column C. which isalso be a good indication on how many rows are being used on each sheet.

    I was attempting to use a formula that will reference column C on sheet2, and if the cells in Column C are not empty, to return whatever is in Column A, onto Sheet1, A1 and fill down.

    i came up with:

    =IF(Sheet2!C2<>"", Sheet2!A2)

    I type the above into A2 on sheet1 (as A1 will have the title) then i drag down.

    i then do the same thing with B2 in sheet1 and adjust the formula to

    =IF(Sheet2!C2<>"", Sheet2!B2)

    and so on.

    this works great for sheet 2. but what I want it to do, is start to reference the top of Sheet3 once the C column in sheet2 shows a blank.

    I thought this would work:

    =IF(sheet2!C2<>"",sheet2!A2,IF(sheet3!C2<>"",sheet3!A2))

    but by the time i get down to where column C is showing a blank in Sheet2, it is returning the information on sheet3 from Row130 instead of the top.

    is there any way to make it reference the top? or is there a completely different formula all together?

    I understand there might be a way to use Macro to achieve this, but i am not very good at macros and doubt id be able to fix anything if it broke, or recreate it if i needed to.

    Any help would be very much appreciated.

    Thanks in advance,

    James

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,459

    Re: trying to Consolidate a number of sheets into 1

    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 then scroll down to Manage Attachments to open the upload window.
    Quang PT

  3. #3
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: trying to Consolidate a number of sheets into 1

    [duplicated from bebo]

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: trying to Consolidate a number of sheets into 1

    Hi chinosai. Welcome to the forum.

    How many sheets are there. What is the maximum number of rows anticipated?
    Dave

  5. #5
    Registered User
    Join Date
    05-17-2016
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    4

    Re: trying to Consolidate a number of sheets into 1

    Thank you all for your replies.

    Hi Bebo,

    as requested, I have attached(I think i did it right) an example of what I am trying to achieve with some additional comments.

    Hi FlameRetired, Thanks for the welcome.

    there will be 8 Sheets with 38 Columns in each and the rows will range from anything between 20 rows to 350 rows. the Data in the 8 sheets will change daily and so
    I am hoping that the formula in the "master sheet" will be able to handle dynamic data.

    Thanks again all and please advise if any further details are required.

    regards,

    chinosai
    Attached Files Attached Files

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: trying to Consolidate a number of sheets into 1

    here is your example maded with PowerQuery (free add-in from MS for Ex2010) - no formulas, no VBA, only 5 seconds of your time
    Attached Files Attached Files

  7. #7
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: trying to Consolidate a number of sheets into 1

    Hey Sandy,

    You're giving Power Query a bad name. In testing your answer, it has only 88 rows instead of the 150 (approx.) it should have. Try doing your problem again and check your answer. Did you get all the rows in the "all" sheet? Take more than 5 seconds to make sure the answer is correct, please.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: trying to Consolidate a number of sheets into 1

    Hi Marvin
    Did you see on sheet1 how OP want to see OP's data consolidated?

    edit
    sheet1 is a result - not part of consolidation
    Last edited by sandy666; 10-25-2017 at 06:51 PM.

  9. #9
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,459

    Re: trying to Consolidate a number of sheets into 1

    I try to use helper columns from column 39 (right of data range)

    See file attached, sheet "all"
    Attached Files Attached Files

  10. #10
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: trying to Consolidate a number of sheets into 1

    OK - you're right. I thought the sheet1 was supposed to be part of the "all" sheet. BUT - it took more than 5 seconds to do your PQ answer.

  11. #11
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: trying to Consolidate a number of sheets into 1

    Use keyboard shortcuts, will be faster

  12. #12
    Registered User
    Join Date
    05-17-2016
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    4

    Re: trying to Consolidate a number of sheets into 1

    Thanks Bebo,

    This is what I wish i could do. I was looking through your example and find it hard to understand what is happening. if you ever have a spare moment, are you able to give a brief(or lengthy) explanation as to how it works?

    In the meantime, i have installed Power Query as suggested by Sandy and its working perfetly.

    Thanks again for your response.

    regards,

  13. #13
    Registered User
    Join Date
    05-17-2016
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    4

    Re: trying to Consolidate a number of sheets into 1

    Thank you Sandy for your suggestion.

    I got Power Query and its working perfectly. cuts down the time it took me to run this report by quite a bit.

    Still need to figure out these keyboard shortcuts.

    your response is very much appreciated.

    Regards,

    Chino

  14. #14
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: trying to Consolidate a number of sheets into 1

    Alt, A, PT (it may be a different on Ex 2010, but usual shortcuts are the same)
    but first you need to reconfigure PQ setup to "only create connection" as default
    the rest is just click, click, and click and you must be faster than popup windows
    switch between tabs: Ctrl, PgUp

    If that takes care of your original question, & to say Thanks, please click on Add Reputtion (bottom left corner of the post of the person(s) who helped you)
    then select Thread Tools from the menu (top right corner of your thread) and mark this thread as SOLVED.
    If you did it - ignore it.
    Thank you.
    Last edited by sandy666; 10-26-2017 at 07:27 PM.

+ 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. Consolidate Multiple Sheets into Two Master Sheets
    By bchampeau in forum Excel General
    Replies: 5
    Last Post: 01-30-2017, 03:57 PM
  2. Consolidate 2 sheets into 1
    By Gatewaya89 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-16-2016, 09:17 AM
  3. Consolidate several sheets data in a master sheets
    By amy03 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-24-2016, 06:42 PM
  4. [SOLVED] Consolidate Sheets VBA
    By 10190879 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-11-2015, 01:57 PM
  5. Consolidate sheets
    By portucale in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-24-2013, 10:54 AM
  6. how to consolidate sheets
    By tommasopalazzot in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-06-2005, 12:15 PM
  7. [SOLVED] Consolidate sheets
    By Manos in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-14-2005, 12:06 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