Return a specific cell if two criteria is met

danielpeam

New Member
Joined
Feb 25, 2018
Messages
8
GradeNameDate
Terry00-01
James00-01
Terry01-02
Bob01-02
James02-03

<tbody>
</tbody>
TABLE 1


DateNameGrade
00-01TerryA
01-02JamesC
00-01TerryB
01-02JamesD

<tbody>
</tbody>

TABLE 2

Hey guys,

I'm looking to write a formula in the 'Grade' column in table 1, which returns the grade from Table 2 if the name and date criteria are met.

Thanks!
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Hi,

If I understand correctly:


Book1
ABC
1GradeNameDate
2ATerry00-01
3James00-01
4Terry01-02
5Bob01-02
6James02-03
7TABLE 1
8
9
10DateNameGrade
1100-01TerryA
1201-02JamesC
1300-01TerryB
1401-02JamesD
15
16TABLE 2
Sheet154
Cell Formulas
RangeFormula
A2{=IFERROR(INDEX(C$11:C$14,MATCH(B2&C2,B$11:B$14&A$11:A$14,0)),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.


A2 formula copied down to A6
NOTE: Array Formula to be confirmed by CSE, follow instructions above.
 
Upvote 0
This works and is amazing! Thanks!

Hi,

If I understand correctly:

ABC
1GradeNameDate
2ATerry00-01
3James00-01
4Terry01-02
5Bob01-02
6James02-03
7TABLE 1
8
9
10DateNameGrade
1100-01TerryA
1201-02JamesC
1300-01TerryB
1401-02JamesD
15
16TABLE 2

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet154

Array Formulas
CellFormula
A2{=IFERROR(INDEX(C$11:C$14,MATCH(B2&C2,B$11:B$14&A$11:A$14,0)),"")}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>



A2 formula copied down to A6
NOTE: Array Formula to be confirmed by CSE, follow instructions above.
 
Upvote 0
You're welcome, glad it works for you.
 
Upvote 0

Forum statistics

Threads
1,215,061
Messages
6,122,922
Members
449,094
Latest member
teemeren

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