IFS

Copper Contributor

I want to change the cells with the text "male" in "M" and the cells with the text "female" in "F" and the other cells in X. But I can't. What is the problem with this formula?

=IFS(A1=male,M,A1=female,F,true,X)

2 Replies

@Mirela1993 On Excel 2019 or later.

Screenshot 2022-04-15 at 16.02.49.png

@Mirela1993 

As variants

=IFS( A1= "male", "M", A1="female", "F", TRUE, "X")

=IF( OR( A1 = {"male","female"} ), UPPER( LEFT(A1) ), "X")