# Yes/No formula

#### funkb411

##### New Member
I am needing a formula to calculate a point value for a form. For example, If in A2 you type Y then B2 will populate the number 5. If in A2 you type N then B2 will populate the number 0.

Is this possible to do in Excel and what would that formula look like?

### Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
If(a2 = "y",5,if(a2="n",0,""))

-or if you want it 0 for any value other than Y-

=IF(A2="Y",5,0)

=(a2="y")*5

=(a2="y")*5

Hmmm....never thought of using a true/false like that. Just when I thought simple IF statements couldn't get any shorter.

Replies
1
Views
135
Replies
1
Views
141
Replies
1
Views
304
Replies
4
Views
136
Replies
2
Views
129

1,207,423
Messages
6,078,440
Members
446,338
Latest member
AliB

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back