Reformat Table

Banditeb

New Member
Joined
May 18, 2015
Messages
12
I have a sheet that is formatted similar to this...

Jan Feb Mar
Item 1 2 3 5
Item 2 1 4 2


I need it to format like this for an upload...

Item 1 Jan 2
Item 1 Feb 3
Item 1 Mar 5
Item 2 Jan 1
Item 2 Feb 4
Item 2 Mar 2

I know there is away wit a 2 step pivot table but can not figure it out.

Thanks
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
try with PowerQuery

ItemJanFebMarItemAttributeValue
Item 1
2​
3​
5​
Item 1Jan
2​
Item 2
1​
4​
2​
Item 1Feb
3​
Item 1Mar
5​
Item 2Jan
1​
Item 2Feb
4​
Item 2Mar
2​

Code:
[SIZE=1]let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Item", type text}, {"Jan", Int64.Type}, {"Feb", Int64.Type}, {"Mar", Int64.Type}}),
    #"Unpivoted Other Columns" = Table.UnpivotOtherColumns(#"Changed Type", {"Item"}, "Attribute", "Value")
in
    #"Unpivoted Other Columns"[/SIZE]
 
Upvote 0

Forum statistics

Threads
1,214,965
Messages
6,122,496
Members
449,089
Latest member
Raviguru

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