I have two lists , both full of these 4 text values : "Mainland", "Island ", "City" and "DP". Im trying to make a function that checks the combination of 2 in each row . But I reached a dead end, i cant think of how to do it.The priority given over eachother is : City < Mainland < Island < DP. An example would be :
Its two columns ("From" and "To") full of "Mainland", "Island", "City" and "DP" forming random combinations like shown above. I need a way to show in the "Category" column, in each row , the word that is superior than the other following the City < Mainland < Island < DP principle . eg Island is above City so in a combination of those 2, category shows "Island".
The idea is similar to 1<2<3 and it compares combinations of two at a time and puts in the cell the higher one

