Thanks:  0
Likes:  0

# Thread: IF Command

1. I am need of the "IF", however, instead of comparing "True" and "False", I need it to compare to cells and see if thier value is the same. Is this possible?

Thanks,
Eric

2. Sure, but what do you want it to return? If they're both the same, then it's true, if not, then it's false.

But you could have it say Yes or No instead.

Like this:

=if(a1=b1,"Yes","No")

or

=if(a1<>b1,a1,b1*2) a sample if statement.

3. What I have is this. If Cell A and B are the same value, then cell C (with the formula in it) would be value X, if cell A and B are different values, then cell C would be X+10)

The Values of cell's A and B are derived from VLOOKUP statements.

4. =if(a1=b1,X,X*10)

5. or =IF(EXACT(A1,B1),X,(X+10))

6. What's the difference between A1=B1 and Exact(A1,B1)?

7. EXACT is case-sensitive. If you have 'text' and 'Text' in cells A1 and B1 and in C1 you enter the formula (A1=B1), C1 will show True, if you enter EXACT(A1,B1), C1 will show False. It isn't needed in your case, if you're dealing with numbers, but it's a good tip for future use.

## 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
•