+ Reply to Thread
Results 1 to 5 of 5

Making multiple rows into a single row

  1. #1
    Registered User
    Join Date
    05-28-2015
    Location
    Lakeland, FL
    MS-Off Ver
    Excel 13
    Posts
    66

    Making multiple rows into a single row

    I have attached an example form. I was hoping to write a macro that would take all rows that that have the same number in Column A and put them in a single row without repeating anything that is repeating. For instances, if you look at the example I am trying to pull the information from sheet "Season Ticket Holder" to sheet "Survey Merge". The first four rows all have the same number in column A and I would like them to be pulled into one row into sheet "Survey Merge". I don't want the names and addresses to be repeated though. Then for the phone number I would like it to pull the different phone numbers and then take the type of phone number it is. So the result of the macro should look like sheet "Result". Any help would be appreciated. Thank You!

    Joe
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    11-18-2015
    Location
    Madrid
    MS-Off Ver
    2016
    Posts
    95

    Re: Making multiple rows into a single row

    Hi! I think that a first step might consist on creating 2 pivot tables, to sort the data and avoid duplicates, and then pull the data from those tables. I have done this in the tab "Results2". Have a look at the file attached.
    Attached Files Attached Files
    excelbat.com: free Excel tools, macros...

  3. #3
    Registered User
    Join Date
    05-28-2015
    Location
    Lakeland, FL
    MS-Off Ver
    Excel 13
    Posts
    66

    Re: Making multiple rows into a single row

    Do you think an If statement will the most efficient way to pull the information from the pivot tables?

  4. #4
    Registered User
    Join Date
    11-18-2015
    Location
    Madrid
    MS-Off Ver
    2016
    Posts
    95

    Re: Making multiple rows into a single row

    Hi! I think you will need a macro... Have a look at the file attached: some VBA code can solve your problem. Just click the button "Update" and you will get something similar to what you are searching for. There is gap for optimization, but I think this could be a solution.

    Hope it helps!
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-28-2015
    Location
    Lakeland, FL
    MS-Off Ver
    Excel 13
    Posts
    66

    Re: Making multiple rows into a single row

    Thank you again so much! I apologize for the long response! It works perfect!

+ 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: 9
    Last Post: 11-11-2015, 08:19 PM
  2. [SOLVED] Any formula for making multiple column be single column separatef by pipe?
    By irruzzz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-15-2014, 12:19 PM
  3. Replies: 5
    Last Post: 05-25-2013, 07:12 AM
  4. [SOLVED] Single product with multiple variations in multiple rows need to consolidate to single row
    By 65monroe in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-08-2013, 01:42 AM
  5. Replies: 4
    Last Post: 07-03-2012, 08:01 PM
  6. Replies: 1
    Last Post: 03-18-2009, 04:18 PM
  7. making a single cell the header for multiple rows
    By thomas e donnelly in forum Excel General
    Replies: 5
    Last Post: 05-06-2005, 07: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