Advanced lookup help?

usdaddyrose3

New Member
Joined
Apr 6, 2022
Messages
1
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
  2. Mobile
I need help. I want to make my formulas more effective for the following situation. There are 2 different types of class, Separate or Combined, with 2 tiers per class, Higher or Foundation. When they take their tests, there are 4 different tests with different grade boundaries. I need to create a sheet for the teacher to input the class, marks, and tier, and have it return the grade. Currently, I have the following nested if statement which works, but I was hoping for a more efficient way of doing this? Is there a way of using Index and Match?

=IF(ISBLANK(K5),
"",
IF(ISNUMBER(SEARCH("s",I5)),
IF(J5="H",
VLOOKUP(K5,B5:F14,5,TRUE),
VLOOKUP(K5,C5:F14,4,TRUE)),
IF(J5="H",
VLOOKUP(K5,D5:F14,3,TRUE),
VLOOKUP(K5,E5:F14,2,TRUE))))

AQA Master Boundaries.xlsx
BCDEFGHIJKLMN
2BiologyPaper 1InputsDesiredOutputCurrent Formula
3S_HigherS_FoundationC_HigherC_FoundationGradeStudentClassTierMarkGrade
40000UASeparateH3444
51061BSeparateF3422
625142CCombinedH3477
7234013233DCombinedF3444
8285616324
9366422395
1044276
1153327
1260388
1367459
Sheet1
Cell Formulas
RangeFormula
N4:N7N4=IF(ISBLANK(K4),"",IF(ISNUMBER(SEARCH("s",I4)),IF(J4="H", VLOOKUP(K4,B4:F13,5,TRUE),VLOOKUP(K4,C4:F13,4,TRUE)),IF(J4="H",VLOOKUP(K4,D4:F13,3,TRUE),VLOOKUP(K4,E4:F13,2,TRUE))))
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Hi & welcome to MrExcel.
How about
Excel Formula:
=IF(K4="","",INDEX($F$4:$F$13,MATCH(K4,INDEX($B$4:$E$13,,MATCH(LEFT(I4)&"_"&J4&"*",$B$3:$E$3,0)),1)))
 
Upvote 0
Solution

Forum statistics

Threads
1,223,886
Messages
6,175,196
Members
452,616
Latest member
intern444

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