+ Reply to Thread
Results 1 to 14 of 14

Adding the rows of sheets to a master sheet.

  1. #1
    Registered User
    Join Date
    04-27-2015
    Location
    Perth
    MS-Off Ver
    office 2010
    Posts
    76

    Adding the rows of sheets to a master sheet.

    In the workbook, it has 4 sheets :- Input1, Input2, Input3 & Output. I simply want to merge the contents of Input1, Input2 and Input3 to sheet "output". "Output" sheet should also include a column G where it simply writes "Zero" if the column F is 0 or 1 with "One" or 2 with "Two".

    Number of rows in sheets "Input1, Input2 & Input3" are not fixed. I get sheets daily where number of rows can be anything from 1 to 1000.

    Please download the excel sheet attached and it would be crystal clear to you.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Adding the rows of sheets to a master sheet.

    Does this help?

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    05-27-2014
    Location
    Belfast, Northern Ireland
    MS-Off Ver
    2007 & 2010
    Posts
    273

    Re: Adding the rows of sheets to a master sheet.

    You could try this one too.

    Please Login or Register  to view this content.
    Last edited by kadeo; 09-19-2016 at 03:39 PM.
    Please click *Add Reputation if I've helped

  4. #4
    Registered User
    Join Date
    04-27-2015
    Location
    Perth
    MS-Off Ver
    office 2010
    Posts
    76

    Re: Adding the rows of sheets to a master sheet.

    Thank you john and kadeo. Problem is solved.

  5. #5
    Registered User
    Join Date
    04-27-2015
    Location
    Perth
    MS-Off Ver
    office 2010
    Posts
    76

    Re: Adding the rows of sheets to a master sheet.

    Hi, john and kadeo. One more question. What if i just want to add a text and drag and drop it. Let me explain, first the code will copy the data from sheet "Input1" and paste it to "Output" sheet. It will than add a text e.g "Firstdata" at cell G2 and than simply drag and drop this text till the last row.

    Then the code will copy the data from sheet "Input2" and paste it to "Output" sheet starting from last row and then add a text e.g. "Seconddata" at cell(whatever be the last, first empty cell of column G) and than simply drag and drop this text till the last row.

    Similarly, the code will copy the data from sheet "Input3" and paste it to "Output" sheet starting from last row and then add a text e.g. "Thirddata" at cell(whatever be the last, first empty cell of column G) and than simply drag and drop this text till the last row.

    I hope you get my point.

  6. #6
    Forum Contributor
    Join Date
    05-27-2014
    Location
    Belfast, Northern Ireland
    MS-Off Ver
    2007 & 2010
    Posts
    273

    Re: Adding the rows of sheets to a master sheet.

    I don't entirely get your point, but if you want to have several cells contain the same value you just need to specify it in the range. For instance, if you wanted to make the value of cell C3 be "Hello world" you would do it like this:
    Please Login or Register  to view this content.
    If you wanted to do the same with cells C3 to F8 you would do either of these:
    Please Login or Register  to view this content.
    Does that help?

  7. #7
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Adding the rows of sheets to a master sheet.

    Perhaps?

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    04-27-2015
    Location
    Perth
    MS-Off Ver
    office 2010
    Posts
    76

    Re: Adding the rows of sheets to a master sheet.

    kadeo, you missed my point. I have attached another excel sheet which explains it clearly. Please download.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    04-27-2015
    Location
    Perth
    MS-Off Ver
    office 2010
    Posts
    76

    Re: Adding the rows of sheets to a master sheet.

    Hi John. Thank you for your help but in the second example, I don't need any case (Case Is = 0 ,1 or 2). Please download Sample1 as attached in above post.

  10. #10
    Forum Contributor
    Join Date
    05-27-2014
    Location
    Belfast, Northern Ireland
    MS-Off Ver
    2007 & 2010
    Posts
    273

    Re: Adding the rows of sheets to a master sheet.

    Amending my original example you can get this:
    Please Login or Register  to view this content.
    Last edited by kadeo; 09-19-2016 at 04:09 PM.

  11. #11
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Adding the rows of sheets to a master sheet.

    Not exactly as you want, but maybe:

    Please Login or Register  to view this content.

  12. #12
    Registered User
    Join Date
    04-27-2015
    Location
    Perth
    MS-Off Ver
    office 2010
    Posts
    76

    Re: Adding the rows of sheets to a master sheet.

    Thank you kadeo and john. Actually I require both of these codes

  13. #13
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Adding the rows of sheets to a master sheet.

    You're welcome. Glad to help out and thanks for the feedback and reps.

  14. #14
    Forum Contributor
    Join Date
    05-27-2014
    Location
    Belfast, Northern Ireland
    MS-Off Ver
    2007 & 2010
    Posts
    273

    Re: Adding the rows of sheets to a master sheet.

    No bother man. Glad to help.

+ 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. Macro for looking for new rows in import files and then adding them in master sheet
    By ammartino44 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-19-2015, 05:03 PM
  2. Adding or deleting rows in master sheet and automatically update target sheet
    By RLR31064 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-26-2014, 01:39 PM
  3. [SOLVED] Adding rows while merging sheets into a master sheet
    By sbidgol in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-11-2014, 10:00 AM
  4. Adding info from different Sheets into a master Sheet
    By 1tripz1 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 04-04-2014, 10:54 AM
  5. Adding numbers from all sheets to a master sheet
    By wendalea in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-21-2014, 09:33 AM
  6. Replies: 2
    Last Post: 01-27-2012, 01:47 PM
  7. inserting rows from different sheets into master sheet
    By Alicita in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-12-2011, 08:25 AM

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