+ Reply to Thread
Results 1 to 4 of 4

Converting like data in rows to column

Hybrid View

April.Ryniewicz Converting like data in rows... 05-06-2014, 06:33 PM
JBeaucaire Re: Converting like data in... 05-06-2014, 06:57 PM
April.Ryniewicz Re: Converting like data in... 05-07-2014, 11:41 AM
JBeaucaire Re: Converting like data in... 05-07-2014, 12:50 PM
  1. #1
    Registered User
    Join Date
    03-12-2013
    Location
    Detroit, MI
    MS-Off Ver
    Excel 2007
    Posts
    5

    Converting like data in rows to column

    I am not a macro expert and I've spent a better part of a day trying to find this online but can't seem to find anything that is as complex as I required. Basically this is what I need:

    I have a spreadsheet that is a data dump from a system, the data comes out in separate rows for a single "fee type", I'm looking for a systematic (macro) way to convert the multiple rows into a single row and insert the 'differentiating' data into a column. Attached is an example of the data dump from the system and theoretically what I'd like the data to be converted to make it easier to query.
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Converting like data in rows to column

    It's not as complex as you suspect. This can be done with some simple formulas. I've added a sheet2 and input the formulas that accomplish this.

    You need only extend the data on sheet1, then put the UNIQUE codes from column A sheet1 into column A of sheet2. Then copy the rest of the cells with formulas downward to bring the results over.

    The simplest way to get the unique codes from column A is to use the Data > Advanced Filter > Filter in place > Unique Values only. Then copy them and paste them into sheet two.
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    03-12-2013
    Location
    Detroit, MI
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Converting like data in rows to column

    Quote Originally Posted by JBeaucaire View Post
    It's not as complex as you suspect. This can be done with some simple formulas. I've added a sheet2 and input the formulas that accomplish this.

    You need only extend the data on sheet1, then put the UNIQUE codes from column A sheet1 into column A of sheet2. Then copy the rest of the cells with formulas downward to bring the results over.

    The simplest way to get the unique codes from column A is to use the Data > Advanced Filter > Filter in place > Unique Values only. Then copy them and paste them into sheet two.
    Hi,

    Thank you for the quick response. The reason I'm asking for a macro is that this data set can be 10,000+ lines. I will try your suggestion and see how it works out

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Converting like data in rows to column

    Whether the raw data is 100 rows or 10,000 rows, it's same amount of time, about 30 seconds, now that the template formulas are done for you.

    1) Do an AdvancedFilter to extract the unique codes from column A and put them in column A of the new sheet.
    2) Copy the remaining cells from row1 down as far as needed.


    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. 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. Converting single column into multiple rows with irregular data
    By longhornpete in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-18-2012, 10:27 AM
  2. Converting column data into rows
    By Ray789 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-30-2011, 01:40 PM
  3. Converting Rows of Data to Column Data
    By pakiyabhai in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-28-2010, 05:40 AM
  4. converting a column of repeating data to rows?
    By Space1471 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-03-2010, 08:39 AM
  5. converting data from column to rows
    By jw1 in forum Excel General
    Replies: 5
    Last Post: 10-20-2006, 05:38 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