+ Reply to Thread
Results 1 to 20 of 20

Convert data from 'skills' matrix into analyzable data model by employee's skills in rows

  1. #1
    Registered User
    Join Date
    01-25-2021
    Location
    Spain
    MS-Off Ver
    365
    Posts
    19

    Convert data from 'skills' matrix into analyzable data model by employee's skills in rows

    Dear forum,

    I need to convert a large skills/competency data model where skills per employee are added per skill in a column. It makes my data difficult to analyze (plus I want to add a column with a parent category).
    I have a desired outcome of what the data ideally should look like, but I am struggling in finding a more automated way of doing this rather than manual copy pasting.
    The desired outcome would show my employee duplicated with their level of skill (advanced,basic,NA) under each other in a column called 'skill'.

    The original data and desired outcome are attached to this thread.

    My real data set is large, showing 280 skills and their level for 100 employees.

    Thanks a lot.
    Attached Files Attached Files

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Convert data from 'skills' matrix into analyzable data model by employee's skills in r

    You could easily do this using Power Query.

    1 Select the data on 'Original Data'.

    2 Go to Data>Get & Transform Data>From Table/Range.

    3 In the Power Query editor select the 'Team', 'Employee', 'Background' and 'Country' columns.

    4 Go to Transform>Unpivot Columns>Unpivot Other Columns.

    5 Go to File>Load & Close to return the data to Excel.
    If posting code please use code tags, see here.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Convert data from 'skills' matrix into analyzable data model by employee's skills in r

    A2:
    =INDEX('Original data'!A2:D4,1+INT((SEQUENCE(8*COUNTA('Original data'!$A:$A)-1,,1,1)-1)/8),{1,2,3,4})

    E2:
    =INDEX('Original data'!$E$1:$L$1,,1+MOD((SEQUENCE(8*COUNTA('Original data'!$A:$A)-1,,1,1)-1),8))

    F2:
    =INDEX('Original data'!E2:L4,1+INT((SEQUENCE(8*COUNTA('Original data'!$A:$A)-1,,1,1)-1)/8),1+MOD((SEQUENCE(8*COUNTA('Original data'!$A:$A)-1,,1,1)-1),8))

    all results will spill across and down.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Forum Contributor
    Join Date
    03-28-2021
    Location
    China
    MS-Off Ver
    O365
    Posts
    111

    Re: Convert data from 'skills' matrix into analyzable data model by employee's skills in r

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by ben8563; 03-29-2021 at 11:35 AM.

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Convert data from 'skills' matrix into analyzable data model by employee's skills in r

    Pl see file.
    Care is taken that Columns A to D may have Duplicates in original data.
    In A2 copied across up to column D
    Please Login or Register  to view this content.
    In E2 copied down
    Please Login or Register  to view this content.
    In F2 copied down
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  6. #6
    Registered User
    Join Date
    01-25-2021
    Location
    Spain
    MS-Off Ver
    365
    Posts
    19

    Re: Convert data from 'skills' matrix into analyzable data model by employee's skills in r

    Hi Glenn,and others! thanks a lot - this seems to work but I am struggling to take over the formulas in my real sheet. I have replaced sensitive data , could you please help me out on applying this to my original file 'Skill M'. Thank you!
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Convert data from 'skills' matrix into analyzable data model by employee's skills in r

    Are skills designated as "N/A" to be omitted - assume anwser will be YES!
    Last edited by JohnTopley; 03-29-2021 at 12:49 PM.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Convert data from 'skills' matrix into analyzable data model by employee's skills in r

    OK. I added a few more "bells and whistles" to count the skills and columns.... and wasted about 10 minutes of my life wondering why the first block didn't quite work... a missing set of parentheses. Now fixed. However, given the size of your dataset... CHECK it carefully. But these dynamic arrays are SO fast....

    A2:

    =LET(a,COUNTA('Skill Matrix'!$A$1:$D$1),b,COUNTA('Skill Matrix'!$1:$1)-a,INDEX('Skill Matrix'!A2:D96,1+INT((SEQUENCE(b*(COUNTA('Skill Matrix'!$A:$A)-1),,1,1)-1)/b),{1,2,3,4}))

    E2:
    =LET(a,COUNTA('Skill Matrix'!$A$1:$D$1),b,COUNTA('Skill Matrix'!$1:$1)-a,INDEX('Skill Matrix'!$E$1:$JZ$1,,1+MOD((SEQUENCE(b*(COUNTA('Skill Matrix'!$A:$A)-1),,1,1)-1),b)))

    F2:
    =LET(a,COUNTA('Skill Matrix'!$A$1:$D$1),b,COUNTA('Skill Matrix'!$1:$1)-a,INDEX('Skill Matrix'!E2:JZ96,1+INT((SEQUENCE(b*(COUNTA('Skill Matrix'!$A:$A)-1),,1,1)-1)/b),1+MOD((SEQUENCE(b*(COUNTA('Skill Matrix'!$A:$A)-1),,1,1)-1),b)))
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Convert data from 'skills' matrix into analyzable data model by employee's skills in r

    VBA solution which omits all N/A

    Please Login or Register  to view this content.
    Attached Files Attached Files

  10. #10
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Convert data from 'skills' matrix into analyzable data model by employee's skills in r

    If you want to remove all the NA, or any other value(s), when using Power Query all you need to do is filter them out.

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Convert data from 'skills' matrix into analyzable data model by employee's skills in r

    Nowhere does it mention filtering out N/A....

  12. #12
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Convert data from 'skills' matrix into analyzable data model by employee's skills in r

    Glenn

    NA's were mentioned but not by the OP but by JohnTopley.

    OP never indicated what, if anything, should be done with NA's (or empty cells for that matter) - all I was indicating is that the option is there, if needed, to filter them out.

  13. #13
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Convert data from 'skills' matrix into analyzable data model by employee's skills in r

    @Glenn,


    There are 5772 rows if N/A are excluded but 27682 if included - so I hope you (and the OP) agree excluding N/A is sensible. I took that root when testing my VBA as I concluded one person having 280 skills was unlikely.
    Last edited by JohnTopley; 03-29-2021 at 05:04 PM.

  14. #14
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Convert data from 'skills' matrix into analyzable data model by employee's skills in r

    Youdont have 282 skills??? I don't believe that, JT!!

  15. #15
    Registered User
    Join Date
    01-25-2021
    Location
    Spain
    MS-Off Ver
    365
    Posts
    19

    Re: Convert data from 'skills' matrix into analyzable data model by employee's skills in r

    Hi everyone, thank you so much for all your solutions (I needed some time to digest them all ) I have been able to apply both the formula (Glenn, kvsrinivasamurthy ..) and the VBA from John works excellent as the data will constantly be refreshed! In reply to John's message: I would need to include N/A's too , not just the levels with a value. Can we have the same macro showing the N/A? That would be really great and give a final solution to my tread. Thanks everyone this was really helpful so far.

  16. #16
    Registered User
    Join Date
    01-25-2021
    Location
    Spain
    MS-Off Ver
    365
    Posts
    19

    Re: Convert data from 'skills' matrix into analyzable data model by employee's skills in r

    Hi John, thank you so much this really works out great for the activity I am doing as I need to refresh the skills matrix frequently. One question - I would need to include N/A's too , not just the levels with a value. Can we have the same macro showing the N/A? That would be really great and give a final solution to my thread. Thank you!

  17. #17
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Convert data from 'skills' matrix into analyzable data model by employee's skills in r

    You're welcome (doesn't the formula refresh automatically, too???).




    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

  18. #18
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Convert data from 'skills' matrix into analyzable data model by employee's skills in r

    Just delete this line from the macro

    Please Login or Register  to view this content.
    But why not use Power Query ?

  19. #19
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Convert data from 'skills' matrix into analyzable data model by employee's skills in r

    Pl try this macro.
    Here is the code which works fast.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  20. #20
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Convert data from 'skills' matrix into analyzable data model by employee's skills in r

    If you want to include N/A also here is the code
    Please Login or Register  to view this content.

+ 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: 2
    Last Post: 09-10-2020, 03:04 PM
  2. workload allocation w/ skills matrix
    By shucky000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-05-2019, 04:13 AM
  3. Percentages for skills matrix
    By Cremorneguy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-06-2016, 04:35 AM
  4. Analysing skills matrix
    By battimus in forum Excel General
    Replies: 1
    Last Post: 01-11-2015, 11:31 AM
  5. vlookup and condition? matching employee's skills and Ticket skills
    By yannc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-10-2014, 03:27 PM
  6. Pivot Table Skills Matrix Trouble
    By ramjet in forum Excel General
    Replies: 0
    Last Post: 06-05-2012, 11:14 AM
  7. Automating Skills Matrix
    By Rook72 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-27-2012, 09:25 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