Forum Discussion

Tariro's avatar
Tariro
Copper Contributor
Oct 13, 2021

Excel If Statement no working

Hi all. I have this IF statement in the formula bar =IF(E2="male","1","0"). but when I press enter I get the "There's a problem with this formula" error.

 

I want to use the IF statement to return 1 when column E2 is equal to male and a 0 when it is a female in the column. See the screenshot below:

 

I am using Microsoft Excel 2016 and windows 10.

 

Where am I getting it wrong?

 

Resources