Hello and thanks in advance!
I'm using Excel 2013 with Windows 7 Enterprise on a PC.
I am trying to use this formula to see if a course fits in a certain core content category. However, cells have more than one course separated by either a + or a /, like this:
BIO 150 + BIO 151/BSL 215/BIO 141
So, for BIO 150 + BIO 151, I only need to know if "BIO 150" fits in a certain core content category. BUT, then I next need to search for the class (or classes) after the "/".
I am currently using a array that almost works, but if I have more than just, say, BIO 100, I get #N/A, which makes sense, but I don't know how to fix it.
Sheet 1 looks kind of like this:
The course that I am referencing is in another sheet and is in column C (C4 in my example formula).
I'm using Excel 2013 with Windows 7 Enterprise on a PC.
I am trying to use this formula to see if a course fits in a certain core content category. However, cells have more than one course separated by either a + or a /, like this:
BIO 150 + BIO 151/BSL 215/BIO 141
So, for BIO 150 + BIO 151, I only need to know if "BIO 150" fits in a certain core content category. BUT, then I next need to search for the class (or classes) after the "/".
I am currently using a array that almost works, but if I have more than just, say, BIO 100, I get #N/A, which makes sense, but I don't know how to fix it.
Code:
=INDEX('Sheet1'!$A$1:$C$1,IF(SUMPRODUCT((C4='Sheet 1'!$A:$C)*1)=0,NA(),SUMPRODUCT((C4='Sheet 1'!$A:$C)*1*{1,2,3})))
Sheet 1 looks kind of like this:
A | B | C | |
1 | Natural Sciences | Oral Communications | Written Communications |
2 | BIO 100 | ENG 100 | COM 100 |
3 | BIO 151 | ENG 101 | COM 101 |
4 | BIO 152 | ENG 102 |
The course that I am referencing is in another sheet and is in column C (C4 in my example formula).
A | B | C | |
1 | EKU CLASS | CLASS NAME | KCTCS CLASS |
2 | BIO 111 | Biology | BIO 151 + BIO 152/BSL 215 |
3 | BIO 112 | Another Bio | BIO 152 + BIO 153/BIO 141/BSL 140 |
4 | BIO 316 | Another Bio | BIO 100 |