Help with function / formula

C

Cassie

My mind is gone and I can't think of the correct formula.
in Col A I have Y or N but I want to have a formula in another cell AE to
put a 1 or 0 in another cell - a the moment I get #name?


Many thanks
Cassie
 
P

Per Jessen

Hi Cassie

Suppose you want Y to return 1 and N to return 0, use this

=If(A1="Y",1,if(A1="N",0,""))

Regards,
Per
 
J

Jacob Skaria

If you mean to say you need 1/0 in Col AE; try the below in cell AE2

=--(A2="Y")

If this post helps click Yes
 
T

trip_to_tokyo

Hi Cassie, try this:-

=IF(A1="y",1,0)

Putting a y in cell A1 will put a 1 in B1 (for example).

Putting a n in cell A1 will put a 0 in B1 (for example).

Please hit Yes if my posting has been helpful to you.

Thanks!
 
D

David Biddulph

If you're getting #name? you may want to tell us what formula you are using.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Excel VBA 1
Excel Need Countifs Formula Help 0
formula returns the formula 2
Salary by Qtr Formula 1
Excel formula help please? 7
Need Help with Formula 2
Help with Excel Sum Function 3
formula error 1

Top