I am using the following to pull a course title from another sheet:
=IFERROR(INDEX({SubjectCourses-Titles-Credit}, MATCH([Subject + Course]31, {Subject+Course}), 3), "")
It has worked fine with several course codes (Subject + Course), but when I enter an incorrect course code (i.e., it doesn't exist, such as HOS 419), it displays the course title for HOS 417 (the course code that proceeds it in the other sheet).
If HOS 419 does not exist in the other sheet, shouldn't it not be a match? If I just use MATCH, it points to the row with HOS 417, it doesn't display a #NOMATCH.
{SubjectCourses-Titles-Credit} is a range in Sheet 1 (list of courses) that includes the course code (e.g, HOS 417), title, and credit hours. In Sheet 2, when I enter the course code ([Subject + Course]), it has always displayed the course title (column 3) by looking for that course code in column in Sheet 1 with course codes ({Subject+Course}).
HOS 419, if it existed, would appear in the row after that HOS 417 course. There are other courses above HOS 419 (e.g., HOS 421, HOS 434, etc.). But, there is no HOS 419 entry in Sheet 1, so I should not see a course title. (This is intended to be a way to flag incorrectly entered course codes in Sheet 2).