Dear Experts: Please help me write a formula on the following data. A student can be listed maximum 4 times in a row and a minimum on a 1 row.
Logic: If the Code = EXCL in all Terms then Type=Exclusive
If the Code = NONE in all Terms then Type=NONE
if the Codes are mix like in for studentid=100000002 then Type=Some
StudentID Term Code Type
100000000 Fall 2019 EXCL Exclusive
100000000 Spring 2020 EXCL Exclusive
100000000 Summer 2019 EXCL Exclusive
100000000 Winter 2020 EXCL Exclusive
100000001 Fall 2019 NONE None
100000001 Spring 2020 NONE None
100000001 Summer 2019 NONE None
100000001 Winter 2020 NONE None
100000002 Fall 2019 NONE Some
100000002 Spring 2020 NONE Some
100000002 Summer 2019 EXCL Some
100000002 Winter 2020 EXCL Some
Thank you for your help
Bookmarks