2

I have two columns that look like so:

Data A  | Data B
-----------------
Type1   |  23
Type2   |  19
Type1   |  3
Type2   |  9
Type1   |  9

I would like to separate it into:

Type1 | Type2
-------------
23    |  19
3     |  9
9     |  

How can this be generally done in Excel?

1 Answer 1

1

...meanwhile in Google Sheets...

={"Type1","Type2";{FILTER(B1:B,A1:A="Type1"),FILTER(B1:B,A1:A="Type2")}}

0


={"Type1","Type2"; 
  ARRAYFORMULA(TRANSPOSE(SPLIT(TRANSPOSE(SPLIT(
  JOIN("♦",FILTER(B1:B,A1:A="Type1"))&"♥"&
  JOIN("♦",FILTER(B1:B,A1:A="Type2")),"♥")),"♦")))}

0

Sign up to request clarification or add additional context in comments.

2 Comments

This works great if the two types have equal amount of values, which mine unfortunately doesn't... I glanced over this and apologize for not having mentioned it. :(
You're brilliant. Thank you so much for the help!

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.