IF Formula

D

d7

I need an IF formula (or something)

Yes = 1, No = 0, N/A = 1. (Column A and B)
When i enter either yes, no or n/a (in column C) i want the corresponding
number to return in column D.

A B C D
Yes 1 Yes (Formula)
No 0
n/a 1
 
N

NPell

Maybe

=IF(OR(C1="Yes",C1="N/A",),1,IF(C1="No",0,""))

Miek







- Show quoted text -

=IF(C1="No",0,"1")

Assuming no other entry except Yes, No or N/A will be entered.
It then will show a 0 for No, and a 1 for any other value.
 
N

NPell

=IF(C1="No",0,"1")

Assuming no other entry except Yes, No or N/A will be entered.
It then will show a 0 for No, and a 1 for any other value.- Hide quoted text -

- Show quoted text -

Sorry, take the quotation marks off that 1.
=IF(C1="No",0,1)
 
M

Mike H

Why do you think it's safe to assume that?

NPell said:
=IF(C1="No",0,"1")

Assuming no other entry except Yes, No or N/A will be entered.
It then will show a 0 for No, and a 1 for any other value.
 
N

NPell

Why do you think it's safe to assume that?





- Show quoted text -

Well, if anything otherwise applies - then 'd7' can use one of the
other formulas submitted.
 

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

Top