Please fix my IF statement

hawilder

New Member
Joined
Sep 1, 2010
Messages
27
Hello - I am I have 4 columns of data - 2 sets of first names and 2 sets of last names that I combined from 2 different files. I want to insert an IF statement that tells me of all the first and last names that do not match:

ie:

<table width="256" border="0" cellpadding="0" cellspacing="0"><col width="64" span="4"><tr height="20"> <td style="height: 15pt; width: 48pt;" width="64" height="20">HOLLY</td> <td style="width: 48pt;" width="64">TEFFT</td> <td style="width: 48pt;" width="64">HOLLY</td> <td style="width: 48pt;" width="64">WILDER</td> </tr></table><table width="64" border="0" cellpadding="0" cellspacing="0"><col width="64"><tr height="20"> <td style="height: 15pt; width: 48pt;" width="64" align="center" height="20">FALSE</td> </tr></table>
=IF(A1=C1,IF(B1=D1,"YES"),"NO")

I am getting "false" after the second or third row down...??


I am comparing thousands of names so it would be helpful If I can get this right if you know of a better way... THANKS!!
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
a little more efficient and concise

=AND(A1=C1, B1=D1)
 
Upvote 0

Forum statistics

Threads
1,215,487
Messages
6,125,075
Members
449,205
Latest member
Healthydogs

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