-2

I have a table with data which is structured like this: table1

Is it possible to transform my table to table like this using query? table2

Rubén
  • 34,714
  • 9
  • 70
  • 166
Vidmat
  • 3
  • 2

2 Answers2

0
=QUERY(A1:C5,"Select max(C) group by B pivot A")

Or

=QUERY(A1:C5,"Select B, max(C) group by B pivot A")
TheMaster
  • 45,448
  • 6
  • 62
  • 85
0

If there is a possibility of repeated weights, would need to do something like this

=ArrayFormula(query({row(A2:C5),A2:C5},"select Col3,max(Col4) group by Col1,Col3 pivot Col2"))
Tom Sharpe
  • 30,727
  • 5
  • 24
  • 37