Change Data Structure

roy00a4

New Member
Joined
Mar 15, 2016
Messages
19
Office Version
  1. 365
Platform
  1. Windows
Dear All

I have a file with 65 different course I'd with status and level as column header and employees details as rows. What I want is to change this horizontal structure to a vertical one. There are a total of 300+ employees. I need the employee details as it is in the rows but repeated for each course id corresponding to it. I have attached a screenshot of what I desire.

I have tried with Pivot and Filter formula and lookups and transpose and everything else that I know.

Please help.
 

Attachments

  • Help.jpg
    Help.jpg
    53.4 KB · Views: 17

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Could you post your data as table using XL2BB? so we don't have to retype it.
 
Upvote 0
Could you post your data as table using XL2BB? so we don't have to retype it.
ABCDEFGHI
Employee NumberEmp Roles1111Level2222Level3333Level
1234567Developer-1E00-1
2364539Developer-1-1E00
9729836Developer-1E00-1
 
Upvote 0
ABCDEFGHI
Employee NumberEmp Roles1111Level2222Level3333Level
1234567Developer-1E00-1
2364539Developer-1-1E00
9729836Developer-1E00-1
I am sorry. Cant use XL2BB. I hope this table helps. There are no formulas. Just wana change the structure for a automated dashboard.
 
Upvote 0
Why did you provide different example? in post 1 data has 5 columns, in post 3 it has 8.
 
Upvote 0
Why did you provide different example? in post 1 data has 5 columns, in post 3 it has 8.
Hi

Does this help?

NameR52TLevelT7Y76Level
AE00-1
B-1E22
CE11E11
DE33E33

It is the same example
 
Upvote 0
Assuming your data is in M1:Q5, try
Excel Formula:
 =HSTACK(DROP(REDUCE("",FILTER(N1:Q1,N1:Q1<>"Level"),LAMBDA(x,y,VSTACK(x,HSTACK(M2:M5,EXPAND(y,4,,y))))),1),WRAPROWS(TOCOL(N2:Q5)&"",2))
 
Upvote 0
Solution
Assuming your data is in M1:Q5, try
Excel Formula:
 =HSTACK(DROP(REDUCE("",FILTER(N1:Q1,N1:Q1<>"Level"),LAMBDA(x,y,VSTACK(x,HSTACK(M2:M5,EXPAND(y,4,,y))))),1),WRAPROWS(TOCOL(N2:Q5)&"",2))
JUST AMAZING.. THANKS BUDDY..
 
Upvote 0
JUST AMAZING.. THANKS BUDDY..
The marked solution has been changed accordingly. In your future questions, please mark the post as the solution that actually answered your question, instead of your feedback message as it will help future readers. No further action is required for this thread.
 
Upvote 0

Forum statistics

Threads
1,215,106
Messages
6,123,120
Members
449,096
Latest member
provoking

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top