+ Reply to Thread
Results 1 to 9 of 9

Convert to matrix table

  1. #1
    Registered User
    Join Date
    05-07-2018
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    4

    Convert to matrix table

    Hi, trying to retrieve some data and convert into a matrix table.

    This is the data I have in column A and B:
    Employee1 --------------01/05/2018 16:30:00
    Employee2 --------------01/05/2018 16:31:00
    Employee3 -------------- 01/05/2018 16:32:00
    Employee1 -------------- 02/05/2018 18:30:00
    Employee2 -------------- 02/05/2018 18:31:00
    Employee3 -------------- 02/05/2018 18:32:00
    Employee1 -------------- 03/05/2018 21:30:00
    Employee3 -------------- 03/05/2018 21:32:00

    Note: The date and time is in a single cell


    Results I want to acheive:

    -----------------------01/05/2018-----02/05/2018--------03/05/2018
    Employee1 -----------16:30-------------18:30--------------21:30
    Employee2 -----------16:31------------ 18:31---------------
    Employee3 -----------16:32-------------18:32--------------- 21:32


    Appreciate any help in getting this done!
    Last edited by Enjoy83; 05-07-2018 at 03:16 AM.

  2. #2
    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,482

    Re: Convert to matrix table

    Are you still running Excel 2010 or a newer version?
    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.

  3. #3
    Registered User
    Join Date
    05-07-2018
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    4

    Re: Convert to matrix table

    Excel 2010

  4. #4
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Convert to matrix table

    Hi,

    Try with Pivot Tables.

    PivotTables are a great way to summarize, analyze, explore, and present your data, and you can create them with just a few clicks.


    Go through the below URL for help on how to create a Pivot Table, if need be:

    https://support.office.com/en-us/art...9-f99134456576
    Attached Images Attached Images
    Attached Files Attached Files

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: Convert to matrix table

    See attached file, where I have used column C as a helper, with this formula in C1:

    =IF(A1="","-",A1&"_"&INT(B1))

    and the main table is built up with this formula in F2:

    =IFERROR(MOD(INDEX($B:$B,MATCH($E2&"_"&F$1,$C:$C,0)),1),"")

    Hope this helps.

    Pete
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    05-07-2018
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    4

    Re: Convert to matrix table

    Quote Originally Posted by cbatrody View Post
    Hi,

    Try with Pivot Tables.

    PivotTables are a great way to summarize, analyze, explore, and present your data, and you can create them with just a few clicks.


    Go through the below URL for help on how to create a Pivot Table, if need be:
    Thanks, will explore this option in a later stage.


    Quote Originally Posted by Pete_UK View Post
    See attached file, where I have used column C as a helper, with this formula in C1:

    =IF(A1="","-",A1&"_"&INT(B1))

    and the main table is built up with this formula in F2:

    =IFERROR(MOD(INDEX($B:$B,MATCH($E2&"_"&F$1,$C:$C,0)),1),"")

    Hope this helps.

    Pete
    This works great. Appreciate your help! This forum is awesome!

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: Convert to matrix table

    Glad to help, and thanks for the rep.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post and mark this thread as SOLVED.

    Pete

  8. #8
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,287

    Re: Convert to matrix table

    Use the formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    05-07-2018
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    4

    Re: Convert to matrix table

    Quote Originally Posted by Czeslaw View Post
    Use the formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    This is brilliant, thank you!

+ 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. [SOLVED] VBA to convert a coloured matrix into an equivalent matrix of 1's and 0's
    By The_Snook in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-27-2017, 01:12 PM
  2. 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
  3. Convert List to Matrix
    By Kumbaff in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-18-2014, 09:55 PM
  4. Convert image to matrix
    By oro77 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-10-2013, 10:10 PM
  5. [SOLVED] Convert matrix table into columns
    By Reny in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-11-2012, 05:09 AM
  6. Convert a tri-matrix into a column
    By djaovnieds in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-17-2009, 04:50 AM
  7. convert a matrix in excel
    By markomanie in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-30-2007, 09:45 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