Extracting Rows Based on a Filter

G1511

New Member
Joined
May 19, 2017
Messages
3
Hi,

I'd like to extract specific cells from a table like the sample one below based on the sample type in column 1. I have also provided a sample output below. Basically, I want a final table where I can classify some columns based on the types separately. What formulae can I use for achieving such an output?

Sample Data:
TypeData Point 1Data Point 2Data Point 3Data Point 4Data Point 5Data Point 6
A123456
B789101112
C131415161718
D192021222324
E252627282930
A313233343536
C373839404142
B434445464748
E495051525354
D555657585960
B616263646566
B676869707172
A737475767778
C798081828384
C858687888990
C919293949596
E979899100101102

<colgroup><col><col span="6"></colgroup><tbody>
</tbody>

Sample Output:
Type A
Data Point 3Data Point 6Data Point 1Data Point 5
Type B
Data Point 3Data Point 6Data Point 1Data Point 5
Type C
Data Point 3Data Point 6Data Point 1Data Point 5
Type D
Data Point 3Data Point 6Data Point 1Data Point 5

<colgroup><col span="4"></colgroup><tbody>
</tbody>

Thanks much in advance!
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
You really show what you expect here, just the layout of what you want, but mayb e this?
A​
B​
C​
D​
E​
F​
G​
1​
2​
Sample Data:
3​
TypeData Point 1Data Point 2Data Point 3Data Point 4Data Point 5Data Point 6
4​
A
1​
2​
3​
4​
5​
6​
5​
B
7​
8​
9​
10​
11​
12​
6​
C
13​
14​
15​
16​
17​
18​
7​
D
19​
20​
21​
22​
23​
24​
8​
E
25​
26​
27​
28​
29​
30​
9​
A
31​
32​
33​
34​
35​
36​
10​
C
37​
38​
39​
40​
41​
42​
11​
B
43​
44​
45​
46​
47​
48​
12​
E
49​
50​
51​
52​
53​
54​
13​
D
55​
56​
57​
58​
59​
60​
14​
B
61​
62​
63​
64​
65​
66​
15​
B
67​
68​
69​
70​
71​
72​
16​
A
73​
74​
75​
76​
77​
78​
17​
C
79​
80​
81​
82​
83​
84​
18​
C
85​
86​
87​
88​
89​
90​
19​
C
91​
92​
93​
94​
95​
96​
20​
E
97​
98​
99​
100​
101​
102​
J​
K​
L​
M​
2​
Type A
3​
Data Point 3
Data Point 6
Data Point 1
Data Point 5
4​
3
6
1
5
5​
J4=IFERROR(INDEX($B$4:$G$20,MATCH(RIGHT($J$2,1),$A$4:$A$20,0),MATCH(J$3,$B$3:$G$3,0)),"")
copied across.

Change the reference in RIGHT($J$2,1) for the other tables
 
Upvote 0
You really show what you expect here, just the layout of what you want, but mayb e this?
A​
B​
C​
D​
E​
F​
G​
1​
2​
Sample Data:
3​
TypeData Point 1Data Point 2Data Point 3Data Point 4Data Point 5Data Point 6
4​
A
1​
2​
3​
4​
5​
6​
5​
B
7​
8​
9​
10​
11​
12​
6​
C
13​
14​
15​
16​
17​
18​
7​
D
19​
20​
21​
22​
23​
24​
8​
E
25​
26​
27​
28​
29​
30​
9​
A
31​
32​
33​
34​
35​
36​
10​
C
37​
38​
39​
40​
41​
42​
11​
B
43​
44​
45​
46​
47​
48​
12​
E
49​
50​
51​
52​
53​
54​
13​
D
55​
56​
57​
58​
59​
60​
14​
B
61​
62​
63​
64​
65​
66​
15​
B
67​
68​
69​
70​
71​
72​
16​
A
73​
74​
75​
76​
77​
78​
17​
C
79​
80​
81​
82​
83​
84​
18​
C
85​
86​
87​
88​
89​
90​
19​
C
91​
92​
93​
94​
95​
96​
20​
E
97​
98​
99​
100​
101​
102​

<tbody>
</tbody>

J​
K​
L​
M​
2​
Type A
3​
Data Point 3
Data Point 6
Data Point 1
Data Point 5
4​
3
6
1
5
5​

<tbody>
</tbody>

J4=IFERROR(INDEX($B$4:$G$20,MATCH(RIGHT($J$2,1),$A$4:$A$20,0),MATCH(J$3,$B$3:$G$3,0)),"")
copied across.

Change the reference in RIGHT($J$2,1) for the other tables


Hi FDibbins, thank you for your response!

I'm just showing the layout of my data since the data I have is confidential.

The solution you have given works if the values in Column 1 (Type) were unique but they are repetitive. So the result of your formula will give me the first value for Type A but I'd like a consolidated list of all the Type A values. Almost like what a PivotTable provides but I don't want to use Pivots.

Is there a solution for that?

Thanks!
 
Upvote 0
So you want the repeats summed? That's why I asked for some sample answers :)

Yes, I need a summary table. Sorry for not giving out the answers earlier. I have added the same below. These I created using a Pivot and then breaking it apart and formatting it.

Type A
Data Point 2Data Point 3Data Point 5
235
323335
747577
Type B
8911
444547
626365
686971
Type C
141517
383941
808183
868789
929395
Type D
202123
565759
Type E
262729
505153
9899101

<colgroup><col span="3"></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,216,759
Messages
6,132,555
Members
449,735
Latest member
Gary_M

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