+ Reply to Thread
Results 1 to 3 of 3

Move Data from Multiple Rows to One Row in Separate Columns

  1. #1
    Registered User
    Join Date
    08-07-2014
    Location
    Washington, DC
    MS-Off Ver
    2013
    Posts
    5

    Exclamation Move Data from Multiple Rows to One Row in Separate Columns

    Hi,

    I have file where the original format has two questions per person and puts the questions & answers in two separate rows. (See rows 2 & 3 in EX 1 jpg file)

    Ex 1.jpg

    I need to have the questions and the answers from row 3 moved to row 2 in separate columns. (See row 2 in EX 2 jpg file)


    Ex 2.jpg

    Sample Data Attached

    Thanks in advance for any help
    Attached Files Attached Files
    Last edited by djpinson; 04-15-2019 at 09:58 AM.

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,467

    Re: Move Data from Multiple Rows to One Row in Separate Columns

    Hi there,

    See if the following code does what you need - it makes a copy of your original data worksheet, and then adds columns and deletes rows as required:

    Please Login or Register  to view this content.
    The highlighted values may be changed to suit your requirements.


    Hope this helps - please let me know how you get on.

    Regards,

    Greg M

  3. #3
    Registered User
    Join Date
    08-07-2014
    Location
    Washington, DC
    MS-Off Ver
    2013
    Posts
    5

    Re: Move Data from Multiple Rows to One Row in Separate Columns

    Hi Greg,

    Again "I appreciate your assistance". Ultimately, I ended up having to do a stored procedure on the SQL server to get it to do what needed to be done.

    Thanks,

    DJ

+ 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. Replies: 1
    Last Post: 08-04-2017, 01:19 AM
  2. [SOLVED] Moving multiple columns (8 x sets of 3) with data in separate rows into 3 columns
    By Emmax in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 03-03-2016, 01:23 PM
  3. Replies: 11
    Last Post: 10-24-2014, 04:50 PM
  4. How do I move multiple rows of similar into one row of data on separate sheet
    By luciedefreitas in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-04-2014, 08:00 PM
  5. [SOLVED] To move Data rows to columns against one cell so can write separate SQL insert statments
    By hadster016 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-18-2014, 09:52 AM
  6. formula to move data from multiple columns to rows
    By emexpress in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-05-2013, 02:12 PM
  7. Excel 2007 : How to move multiple rows to columns
    By RaiderMatt9 in forum Excel General
    Replies: 1
    Last Post: 03-05-2012, 08:56 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