3

I have a sheet like this:

enter image description here

I want it to have two columns: in and out with the corresponding values:

enter image description here

I'm able to do so using sorting and copy-pasting, but as the data gets more complicated this way gets more complicated, and less safe, as well. Maybe there is a simple, correct way for such a transformation?

2
  • +Valentin, On second thought, it might be better to use SUM(C). If you agree, I will edit my post. Jul 9 '16 at 9:26
  • @JacobJanTuinstra yeah - I used SUM on my own :-) Jul 11 '16 at 16:11
2

You can use the following QUERY to obtain the result you want.

Formula

=QUERY(A1:C6, "SELECT A, MAX(C) GROUP BY A PIVOT B")

Screenshot

enter image description here

Example

I've created an example file for you: Transpose only one column in Google Spreadsheets

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.