Filter/Transpose a multiple rows and multiple columns in a same row.

mmr1

Board Regular
Joined
Aug 25, 2020
Messages
80
Office Version
  1. 365
Platform
  1. Windows
Hi,


Required a formula help for Filter/Transpose a multiple rows and multiple columns in a same row as per condition met with row headers . Row Headers that contain duplicate row headers and reorder all values or text values from multiple columns into one row.

solution to be needed in Column H to L.


Thanks for the help.

Book4
ABCDEFGHIJKL
1MonthsWeek-1Week-2Week-3Week-4MonthsWeek-1Week-2Week-3Week-4
2Jan-2032500
3Jan-209854
4Jan-2012365
5Feb-20542
6Feb-201254
7Feb-20
8Mar-208745
9Mar-204569
10Mar-202541
11Mar-20
12Apr-2054525256
13Apr-2012136
14Apr-202564
15May-20
16May-20
17May-20No Values
18May-205465
19
20
Sheet1
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
How about
+Fluff v2.xlsm
ABCDEFGHIJKL
1MonthsWeek-1Week-2Week-3Week-4MonthsWeek-1Week-2Week-3Week-4
201/01/20203250001/01/2020325009854 12365
301/01/2020985401/02/2020542 1254 
401/01/20201236501/03/202045698745 2541
501/02/202054201/04/202025645452525612136
601/02/2020125401/05/2020 5465No Values 
701/02/2020
801/03/20208745
901/03/20204569
1001/03/20202541
1101/03/2020
1201/04/202054525256
1301/04/202012136
1401/04/20202564
1501/05/2020
1601/05/2020
1701/05/2020No Values
1801/05/20205465
Report
Cell Formulas
RangeFormula
H2:H6H2=UNIQUE(A2:A18)
I2:L6I2=FILTER(FILTER(FILTER($B$2:$E$18,$A$2:$A$18=$H2),$B$1:$E$1=I$1),FILTER(FILTER($B$2:$E$18,$A$2:$A$18=$H2),$B$1:$E$1=I$1)<>"","")
Dynamic array formulas.
Named Ranges
NameRefers ToCells
abcd=Report!$B$2:$E$18I2:L6
 
Upvote 0
another option with Power Query then Pivot Table

MonthsWeek-1Week-2Week-3Week-4_ValueAttribute
01/01/202032500MonthsWeek-1Week-2Week-3Week-4
01/01/2020985401/01/202032500985412365
01/01/20201236501/02/20205421254
01/02/202054201/03/2020456987452541
01/02/2020125401/04/202025645452525612136
01/02/202001/05/202054650
01/03/20208745
01/03/20204569
01/03/20202541
01/03/2020
01/04/202054525256
01/04/202012136
01/04/20202564
01/05/2020
01/05/2020
01/05/2020No Values
01/05/20205465

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    Date = Table.TransformColumnTypes(Source,{{"Months", type date}}),
    UOC = Table.UnpivotOtherColumns(Date, {"Months"}, "Attribute", "Value")
in
    UOC
 
Upvote 0
Many thanks to all of you for amazing solution.
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,816
Messages
6,181,141
Members
453,021
Latest member
Justyna P

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