AFAIK, COALESCE returns the first nonnull expression among a serie of arguments
Then you could try a serie of If-Then-Else