A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
You asked about an IFS function, but the syntax you reference is incorrect. Here is the correct syntax.
*=IFS([Something is True1, Value if True1,Something is True2,Value if True2,*Something is True3,Value if True3)
These are combinations of two things--the test and the result--each after the other. Each of these combinations will refer to the same cell and whichever condition is true will determine the result of the formula. Here is an example patterned after your description entered in D2 in the screenshot below and filled down.
=IFS(C3="c","blue",C3="n","red",C3="d","yellow",C3="f","green")