Currently I have this formula in one of the columns (AM) of the table:
=IFERROR(IFS(AL="No",P/AK*AJ,AL="Yes",AJ*10*0.9),"")
Now I need to add another function to it, namely: if AM<AN, then take the value from AN and put it into AM.
=IFERROR(IFS(AL="No",P/AK*AJ,AL="Yes",AJ*10*0.9),"")
Now I need to add another function to it, namely: if AM<AN, then take the value from AN and put it into AM.