Closed Thread
Results 1 to 9 of 9

How to convert text table to a matrix (like using pivot)

  1. #1
    Registered User
    Join Date
    08-22-2018
    Location
    Bangkok, Thailand
    MS-Off Ver
    2016
    Posts
    4

    How to convert text table to a matrix (like using pivot)

    Hi guys,

    I'm trying to convert a table of text into a matrix (like using pivot table) as example below.
    Is there any simple mean to do so?
    I tried to use "From Table/Range", then "Pivot Column" but it shows error for multiple texts per one machine.
    And it shows 'null' for no-value cells.

    convert.PNG

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: How to convert text table to a matrix (like using pivot)

    Can you attach your sample workbook.

    Go Advanced -> Manage Attachments -> Upload

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: How to convert text table to a matrix (like using pivot)

    Hi, welcome to the forum

    You could probably use INDEX/MATCH for this, but for better help, as suggested, upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    08-22-2018
    Location
    Bangkok, Thailand
    MS-Off Ver
    2016
    Posts
    4

    Re: How to convert text table to a matrix (like using pivot)

    Attached the file
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: How to convert text table to a matrix (like using pivot)

    This proposed solution adds two columns to the Table of Text.
    Column1 is populated using: =IF(OR(B4<>B3,C4<>C3),D4,E3&", "&D4)
    Column2 is populated using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Note that Wrap Text formatting is applied to Column2
    The range I4:L7 is populated using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  6. #6
    Registered User
    Join Date
    08-22-2018
    Location
    Bangkok, Thailand
    MS-Off Ver
    2016
    Posts
    4

    Re: How to convert text table to a matrix (like using pivot)

    Hi JeteMc.
    Thanks. That works.
    Only thing I need to do is to sort the data by month and machine in case I have additional data right?

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: How to convert text table to a matrix (like using pivot)

    You're Welcome and thank you for the feedback.
    Thinking about adding data:
    1) Yes, keep the data sorted as you have done in the file you attached to post #4,
    2) Modify the formula for Column 2 to read:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    3) Modify the formula for the range I4:L7 to read:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions, however if this should resolve the issue, please take a moment to mark the thread as 'Solved' using the thread tools drop down in the ribbon above your first post. I hope that you have a blessed day.

  8. #8
    Registered User
    Join Date
    11-17-2012
    Location
    argentina
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: How to convert text table to a matrix (like using pivot)

    Hello guy, is there a way easier with dynamic array for example?

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: How to convert text table to a matrix (like using pivot)

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Convert to matrix table
    By Enjoy83 in forum Excel General
    Replies: 8
    Last Post: 05-10-2018, 02:42 AM
  2. Need to convert pivot table numbers to text
    By dchu in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-03-2014, 02:51 AM
  3. Convert a Matrix into a List. Can I use Pivot Table for that?
    By klebergreco in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-22-2014, 08:28 AM
  4. Replies: 1
    Last Post: 05-16-2014, 07:34 PM
  5. VBA code to convert value in pivot table to text
    By cgabe001 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-08-2014, 12:11 PM
  6. [SOLVED] Convert matrix table into columns
    By Reny in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-11-2012, 05:09 AM
  7. Convert Text to Numeric Excel 2010 Pivot Table
    By zcheema in forum Excel General
    Replies: 1
    Last Post: 05-17-2012, 04:58 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