IF Command

G

Guest

Guest
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
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
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.
 
Upvote 0
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.
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,213,484
Messages
6,113,927
Members
448,533
Latest member
thietbibeboiwasaco

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