Forum Discussion
phildot
Mar 12, 2020Copper Contributor
How can I transpose?
Hi,
I have a clue.
I have such a file
| Avril | Wednesday | Thursday | Friday |
| Antoine | LCI | RTT | |
| Philippe | L 4 | D 4 | L 4 |
| Alan | CV | L 4 | R |
| Francis | D 6 | D 6 | D 6 |
I'd like to translate it to this
| Wednesday | Thursday | Friday | |
| LCI | Antoine | ||
| RTT | Antoine | ||
| L4 | Philippe | Alan | Philippe |
| D4 | Philippe | ||
| CV | Alan | ||
| R | Alan | ||
| D6 | Francis | Francis | Francis |
What kind of formula do I need to put in the columns 2,3 and 4 of the last table to get if filled by the first table?
thanks for the help!
phildot See attached.
9 Replies
- SergeiBaklanDiamond Contributor
Another variant is with Power Query
let Source = Excel.CurrentWorkbook(), FilterRange = Table.SelectRows(Source, each ([Name] = "Range")), Range = FilterRange{[Name="Range"]}[Content], PromotHeaders = Table.PromoteHeaders(Range, [PromoteAllScalars=true]), UnpivotOtherThanNames = Table.UnpivotOtherColumns( PromotHeaders, {"Column1"}, "Attribute", "Value" ), PivotBack = Table.Pivot( UnpivotOtherThanNames, List.Distinct(UnpivotOtherThanNames[Attribute]), "Attribute", "Column1" ) in PivotBack- phildotCopper Contributor
SergeiBaklan Thanks for your quick reply!
- Riny_van_EekelenPlatinum Contributor
- phildotCopper Contributor
One additional question: what if I want to have a second field to be checked here, e.g; to check A12 and A14?
=IFERROR(INDEX($A$2:$A$5;MATCH($A12;B$2:B$5;0);1);"")
- Riny_van_EekelenPlatinum Contributor
phildot And what would be the result you would want to see then?
- phildotCopper Contributor
Riny_van_EekelenThanks for your quick reply!