Parsing Data

Shabu-Shabu

New Member
Joined
Feb 8, 2005
Messages
3
I have a column of data:

X
Y
X
Y
X
Y
X
Y
X
Y
etc.

I need to separate this into a column of Xs, and a column of Ys. Other than copy/paste, what's the most efficient way to do this?


Thanks!
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Assuming your data is in column "A":
In column "B" type:

=IF(A1=Y, Y, 0)

In column "C"

=IF(A1=X, X, 0)

Then drag the formulas down.
 
Upvote 0
I should've been more specific...

I have TWO columns of data:

A B

X 198.342
Y 287.939
X 549.654
Y 277.478
X 432.565
Y 352.519
etc.

I need column B parsed into Xs and Ys. I like the IF statement approach; can it look at column A and act on column B?

Thanks again for the help!
 
Upvote 0

Forum statistics

Threads
1,203,489
Messages
6,055,722
Members
444,814
Latest member
AutomateDifficulty

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