+ Reply to Thread
Results 1 to 4 of 4

Tricky formula needed to format multiple columns into one cell

  1. #1
    Registered User
    Join Date
    05-25-2011
    Location
    Arlington, TX
    MS-Off Ver
    Excel 2003
    Posts
    7

    Lightbulb Tricky formula needed to format multiple columns into one cell

    For example all of the following to the left of the : are the header of a column and to the right of the : are the data in one single cell.

    Size: 5,6,7,8,9,10
    Quantity: 11,22,33,44,55,66
    Price Increase: 0,0,0,0,0,0
    Additional Weight: 0,0,0,0,0,0
    Sort Order: 1,2,3,4,5,6

    How would you format this into a new column/cell to display it as the following which is SIZE:QUANTITY:PRICE INCREASE:ADDITIONAL WEIGHT:SORT ORDER|SIZE:QUANTITY:PRICE INCREASE:ADDITIONAL WEIGHT:SORT ORDER and so on...

    5:11:0:0:1|6:22:0:0:2|7:33:0:0:3|8:44:0:0:4|9:55:0:0:5|10:66:0:0:6

    I am at a loss. Look forward to receiving your help.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Tricky formula needed to format multiple columns into one cell

    Insert a column to the left of the data

    Copy the header cells and transpose to the inserted column

    Select the data column, Data > Text to columns, select Delimited, and tick Comma as the delimiter.

    Please Login or Register  to view this content.
    Last edited by shg; 08-17-2012 at 05:28 PM.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    05-25-2011
    Location
    Arlington, TX
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Tricky formula needed to format multiple columns into one cell

    Thanks for the reply but my data will be for thousands of products not just one data set.

    Also the final output I am looking for in one single cell is the following:

    5:11:0:0:1|6:22:0:0:2|7:33:0:0:3|8:44:0:0:4|9:55:0:0:5|10:66:0:0:6

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Tricky formula needed to format multiple columns into one cell

    You could post a workbook that's representative of your actual problem, including desired output.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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