extract data using formula

smallxyz

Active Member
Joined
Jul 27, 2015
Messages
392
Office Version
  1. 2021
Platform
  1. Windows

Excel 2010
ABCDEFGH
1B28A6B28
2B6A7B6
3B6A4B6
4A6A66B45
5A7A32B3
6B45A79
7A4
8A66
9A32
10A79
11B3
Sht


Col A-B is the original data.
Col D-E and Col G-H are results to be output using formula.
How should the formula be set?
Thanks!
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
what are your rules - why is A6 the first selected

at present I can see you wish to separate the A's and B's

do you wish them to remain in their current order ?

is a macro solution acceptable ?
 
Upvote 0
Like this:


Excel 2016 (Windows) 32 bit
ABCDEF
1B28A6B28
2B6A7B6
3B6A4B6
4A6A66B45
5A7A32B3
6B45A79
7A4
8A66
9A32
10A79
11B3
Sheet3
Cell Formulas
RangeFormula
C1{=IFERROR(INDEX(A:A,SMALL(IF($A$1:$A$11="A",ROW($A$1:$A$11)),ROWS($A$1:A1))),"")}
D1{=IFERROR(INDEX(B:B,SMALL(IF($A$1:$A$11="A",ROW($A$1:$A$11)),ROWS($A$1:A1))),"")}
E1{=IFERROR(INDEX(A:A,SMALL(IF($A$1:$A$11="B",ROW($A$1:$A$11)),ROWS($A$1:A1))),"")}
F1{=IFERROR(INDEX(B:B,SMALL(IF($A$1:$A$11="B",ROW($A$1:$A$11)),ROWS($A$1:A1))),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Hi oldbrewer,
It is to separate the data with respect to A & B while remaining their original structure of order .
We need a Excel formula.
 
Upvote 0

Forum statistics

Threads
1,214,644
Messages
6,120,709
Members
448,983
Latest member
Joaquim_Baptista

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