# Reverse Index Match to find row?

#### dobby1303

##### New Member
Hi all,

I have a grid with grades as the row headers and a series of different tests as the column headers, with the data in the grid as the % boundaries for the tests. I would like to have a lookup for the grade achieved based on the test name and % scored.

I've had a look at a few different things and think a reverse index match is probably the cleanest way to do it and I've found ways to look up the column based on the row header and value, but am struggling with flipping it around.

This is what I started with:
=INDEX(B3:G3,,MATCH(B10,INDEX(B4:G6,MATCH(B9,A4:A6,0),),0))
and this is what I'd changed it to:
=INDEX(A4:A6,MATCH(C10,INDEX(B4:G6,MATCH(C9,B3:G3,0),),0),)

Could someone please explain where I've gone wrong?

### Excel Facts

Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Could you provide the table. Just copy and paste it here.

 Current Level SS Biology Paper 1 SS Biology Paper 2 SS Chemistry Paper 1 SS Chemistry Paper 2 SS Physics Paper 1 SS Physics Paper 2 U 0% 0% 0% 0% 0% 0% 1c 10% 10% 9% 9% 8% 8% 1b 14% 14% 13% 13% 12% 12% 1a 18% 18% 17% 17% 15% 15% 2c 23% 23% 21% 21% 18% 18% 2b 27% 27% 25% 25% 22% 22% 2a 31% 31% 28% 28% 25% 25% 3c 35% 35% 32% 32% 29% 29% 3b 39% 39% 36% 36% 33% 33% 3a 43% 43% 40% 40% 36% 36% 4c 48% 48% 44% 44% 39% 39% 4b 51% 51% 47% 47% 44% 44% 4a 55% 55% 51% 51% 48% 48% 5c 58% 58% 54% 54% 53% 53% 5b 73% 73% 70% 70% 68% 68% 5a 87% 87% 85% 85% 84% 84%

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

so the values given are the % on a test (which may not match exactly) and the test sat and I'm trying to find the level

Last edited:
try this

Book1
ABCDEFG
1Current LevelFoundation (%)
2SS Biology Paper 1SS Biology Paper 2SS Chemistry Paper 1SS Chemistry Paper 2SS Physics Paper 1SS Physics Paper 2
3U0%0%0%0%0%0%
41c10%10%9%9%8%8%
51b14%14%13%13%12%12%
61a18%18%17%17%15%15%
72c23%23%21%21%18%18%
82b27%27%25%25%22%22%
92a31%31%28%28%25%25%
103c35%35%32%32%29%29%
113b39%39%36%36%33%33%
123a43%43%40%40%36%36%
134c48%48%44%44%39%39%
144b51%51%47%47%44%44%
154a55%55%51%51%48%48%
165c58%58%54%54%53%53%
175b73%73%70%70%68%68%
185a87%87%85%85%84%84%
19
20SS Physics Paper 140%4c
Sheet5
Cell Formulas
RangeFormula
C20=INDEX(\$A\$3:\$A\$18,MATCH(B20,INDEX(\$B\$3:\$G\$18,,MATCH(A20,\$B\$2:\$G\$2,0))),0)

The table in A1:G17, the exam name in J1 and the % score in J2:

=LOOKUP(J2,INDEX(\$B\$2:\$G\$17,,MATCH(J1,\$B\$1:\$G\$1,0)),\$A\$2:\$A\$17)

Thanks, it works perfectly!

Another option

=INDEX(\$B\$4:\$B\$19,MATCH(B20,OFFSET(B4,,MATCH(\$A\$20,\$C\$3:\$H\$3,0),16),1))

Replies
1
Views
417
Replies
4
Views
403
Replies
9
Views
231
Replies
1
Views
290
Replies
0
Views
501

1,221,522
Messages
6,160,308
Members
451,637
Latest member
hvp2262

### 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.

### Which adblocker are you using?

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

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