Reputation: 1
I'm facing difficulty with the following and would greatly appreciate advice or a solution. Please see below for details.
I have a range, E43:BV131. E43:BV43 = header, E43:E131 = name column
Cells F44:BV131 contain mainly 4 types of information: either letters "R" or "A" or "G"; or some text in a cell adjacent to an "R" or "A". Example table below.
My task is to extract all cells with "R"/"A" and the text in the adjacent cell.
This is what I have:
This is what I need:
Tried multiple combinations of OFFSET, INDIRECT, INDEX, ROW, COLUMN and a bunch of formulas from found on the web, however, all the documentation I'm finding works around columns whereas I need to extract data from random cells across the table.
Upvotes: 0
Views: 57
Reputation: 3802
Add a line of "Criteria" above "Output header" in row 6
1] In A8
, formula copied down :
=IFERROR(INDEX($A$2:$A$4,AGGREGATE(15,6,ROW($A$1:$A$3)/($B$2:$M$4=B$6),ROW(A1))),"")
2] In B8
, formula copied down :
=IF(A8="","",B$6)
3] In C8
, formula copied down :
=IF(A8="","",INDEX($B$2:$M$4,MATCH(A8,$A$2:$A$4,0),MATCH(B$6,INDEX($B$2:$M$4,MATCH(A8,$A$2:$A$4,0),0),0)+1))
Then, select A8:C9
, copied and paste formula to F8:H9
Upvotes: 1