+ Reply to Thread
Results 1 to 5 of 5

Combining data from 2 sheets into one with multiple rows per data from 1 sheet

  1. #1
    Registered User
    Join Date
    02-19-2020
    Location
    Massachusetts
    MS-Off Ver
    2016
    Posts
    3

    Combining data from 2 sheets into one with multiple rows per data from 1 sheet

    Hi all, I think this should be fairly simple but can't figure out how to do it and i'm feeling really dumb...
    in sheet A i have a list of user IDs.
    in sheet B i have a list of dpts and form names

    I want to create sheet C that shows a row for each user ID and dpt/form combo from the second sheet....

    So would look like this:
    sheet1
    user1
    user2
    user3

    sheet2
    dpt1 form1
    dpt1 form2
    dpt2 form3
    dpt2 form4

    Final sheet i'm trying to create from above:
    user1 dpt1 form1
    user1 dpt1 form2
    user1 dpt2 form3
    user1 dpt2 form4
    user2 dpt1 form1
    user2 dpt1 form2
    user2 dpt2 form3
    user2 dpt2 form4
    user3 dpt1 form1
    user3 dpt1 form2
    user3 dpt2 form3
    user3 dpt2 form4

    that's all! any help would be much appreciated!

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Combining data from 2 sheets into one with multiple rows per data from 1 sheet

    Is it safe to assume that the dpts and form names are in separate columns on sheet2? (e.g. A & B), and that you want the results to be in three separate columns (user, dpt, form)? Or all in one cell?

    Assuming Users are in Sheet1 column A (A2:Axx), Dpts are in Sheet2 column A (A2:Axx) and Forms are in Sheet2 column B (B2:Bxx), then this will create the output you're looking for into Sheet3 columns A:C...
    Please Login or Register  to view this content.
    Last edited by Paul; 02-19-2020 at 02:26 PM.

  3. #3
    Registered User
    Join Date
    02-19-2020
    Location
    Massachusetts
    MS-Off Ver
    2016
    Posts
    3

    Re: Combining data from 2 sheets into one with multiple rows per data from 1 sheet

    Thanks Paul! your assumptions were correct and this worked... took me a bit to figure out where to put this code, how to run it, what to tweak etc. but worked like a charm! Thanks so much, saved me a bunch of manual effort! Man I need to learn how to be able to whip up code like this... such a time saver! Thanks again!

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Combining data from 2 sheets into one with multiple rows per data from 1 sheet

    You're welcome, glad to help.

    Sorry about the brevity, normally I'd include instructions for how to add code to a workbook for new forum users. Probably wouldn't have hurt me to add a few comments in the code to explain things a bit, too.

  5. #5
    Registered User
    Join Date
    02-19-2020
    Location
    Massachusetts
    MS-Off Ver
    2016
    Posts
    3

    Re: Combining data from 2 sheets into one with multiple rows per data from 1 sheet

    No worries, it helped me learn it and understand what it was doing! Thanks!

+ 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] Sorting data from rows (multiple sheets) in columns (one sheet)
    By ANA M in forum Excel General
    Replies: 2
    Last Post: 03-16-2015, 08:54 AM
  2. [SOLVED] Combining data across multiple sheets onto one summary sheet
    By dajul73 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 07-29-2014, 02:10 PM
  3. Macro to Transfer data from multiple sheets into rows on a master sheet
    By serrone in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-30-2013, 06:35 AM
  4. Move data rows from multiple sheets to a master sheet in another workbook
    By Nick_WBA in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-14-2012, 03:28 PM
  5. Combining 10,000 data rows from two sheets
    By qnc in forum Excel General
    Replies: 1
    Last Post: 06-09-2010, 02:38 PM
  6. Replies: 3
    Last Post: 07-29-2009, 05:19 AM
  7. combining multiple rows of data into one single row of data
    By myersjl in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-30-2006, 05:45 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