SOLVED

How can Excel achieve this transform function?

Copper Contributor

Is there a way to easily transform the first table into the second one in Excel? Thanks.

 

 AB
X1Y1 
X1Y2 
X1Y3 
X2Y4 
X2Y5 
X2Y6 
X2Y7 
X2Y8 
X3Y9 
X3Y10 
X3Y11 
X3Y12 
X3Y13 
X1 Y14
X1 Y15
X1 Y16
X2 Y17
X2 Y18
X2 Y19
X2 Y20
X2 Y21
X3 Y22
X3 Y23
X3 Y24
X3 Y25
X3 Y26

 

 A    B    
X1Y1Y2Y3  Y14Y15Y16  
X2Y4Y5Y6Y7Y8Y17Y18Y19Y20Y21
X3Y9Y10Y11Y12Y13Y22Y23Y24Y25Y26
2 Replies
best response confirmed by Yanbo_JIANG (Copper Contributor)
Solution

@Yanbo_JIANG 

 

Hello! 

Attached is an excel file, I did this with 3 different ways power query, a pivot table or dynamic formulas. 

 

Hope it works.

 

 

Appreciated! Learned a lot!
1 best response

Accepted Solutions
best response confirmed by Yanbo_JIANG (Copper Contributor)
Solution

@Yanbo_JIANG 

 

Hello! 

Attached is an excel file, I did this with 3 different ways power query, a pivot table or dynamic formulas. 

 

Hope it works.

 

 

View solution in original post