How to check multiple entries on 2 different column

hakim_tanzil

Board Regular
Joined
May 10, 2012
Messages
56
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Hi Guys

I need a formula to check multiple entries occur

Below is the table

A B C D
Date Name.1 Name.2 Check

25/04 Andy John "Error"
25/04 Chris Andy "OK"
25/04 John Andy "Error"


Any inputs would be greatly appreciated
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Update your current version of excel and platform to help you in an optimal way.
 
Upvote 0
Regarding Sanjay's response, it may not be apparent what he means.
You can update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Hi Sanjay,

Thanks for your response

I mostly use older version of Excel 2016
 
Upvote 0
This seems to work for me:
1714044859606.png


Formula in cell D2 (and copy down):
Excel Formula:
=IF(COUNTIFS(B$2:B$7,$B2,C$2:C$7,$C2)+COUNTIFS(B$2:B$7,$C2,C$2:C$7,$B2)>1,"Error","OK")
 
Upvote 1
Hi Joe4,

I tried your formula, and it works great. But what if sometimes we only input 1 name

25-Apr John
 
Upvote 0
Hi Joe4,

I tried your formula, and it works great. But what if sometimes we only input 1 name

25-Apr John
I don't understand. Your question was to check for duplicates among two different columns.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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