I'm trying to achieve something like:
=IF( N2="string1", "high", IF( N2="string2" or N2="string3","middle","low") )
Or, in psuedo code:
String input = <some value>
if( input.equals("string1") ) {
return "high"
} else if ( input.equals("string2) || input.equals("string3") ) {
return "middle"
}
return "low"
Any idea how I can do that using a spreadsheet (Libre Office Calc ideally) formula rather than code? Where the input variable would obviously be a cell reference.