Thanks:  0
Likes:  0

# Thread: Need help with IF formula

1. Hi Listers,

I'm trying to do the following and can't seem to get the correct formula.

If either Cell A1 or Cell A2 equals YES put .25 in Cell A3. If both A1 & A2 equal YES put .50 in A3.

I've tried doing an IF function, as well as trying to do an If-Then-ElseIf function, but I'm not very experienced in Excel and function/formulas. Can anyone help?

Laura Meeks

2. Try this

=IF(AND(A1="YES",A2="YES"),0.5,IF(OR(A1="YES",A2="YES"),0.25,"Neither"))

Tom

3. =COUNTIF(A1:A2,"YES")*0.25

4. Hi Tom,

Thanx for your suggestion. It didn't work quite right (using the formula you gave me, when both A1 and A2 equaled YES, I came up with the answer Neither, rather than .50), but I'm going to try tweaking it to see if I can get it.

Thanx, again. I really appreciate your assistance.

Laura

5. Tom,

I apologize...you're formula DID work, it was *me* who blew it! I used the wrong cell references. (No wonder it didn't wanna work!)

Many thanx!!

Laura

I want to thank you for your response. Your formula also worked! You guys are great!!

I'm going to go look closely at each so that I can figure out what I was doing wrong and why your and Tom's formulas work.

Thanx, again, I appreciate your help.

Laura

8. On 2002-04-29 23:20, TsTom wrote:
Indeed!

9. On 2002-04-29 23:11, Aladin Akyurek wrote:

=COUNTIF(A1:A2,"YES")*0.25
Nice.

## User Tag List

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•