Convert text to number (weird problem)

hedjr01

New Member
Joined
Jan 27, 2010
Messages
40
This drives me crazy. It's so simple but it never seems to work right anymore.

Cell A1 always has either a Y or a N in it

I want Cell A2 to give me either a 1 for "Y" or 0 for "N" based on cell A1

So the simple formula should be:

IF(A1="Y",1,0) Right?

Sometimes it will do this (place a 1 in A2 when A1 is "Y") but if I test it by changing A1 to "N" then A2 does not change to 0.

The really odd thing is that I have this kind of formula elsewhere in older sheets in the workbook & they work fine.

What is going on here?

Thanks 4 your help
 
This drives me crazy. It's so simple but it never seems to work right anymore.

Cell A1 always has either a Y or a N in it

I want Cell A2 to give me either a 1 for "Y" or 0 for "N" based on cell A1

So the simple formula should be:

IF(A1="Y",1,0) Right?

Sometimes it will do this (place a 1 in A2 when A1 is "Y") but if I test it by changing A1 to "N" then A2 does not change to 0.

The really odd thing is that I have this kind of formula elsewhere in older sheets in the workbook & they work fine.

What is going on here?

Thanks 4 your help

Is the calculation set to automatic?
 
Upvote 0

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Back
Top