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

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
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
Thanks Joe4.

This is as simple as it is, but yet I cant figure it out. :LOL:
 
Upvote 0
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,215,430
Messages
6,124,850
Members
449,194
Latest member
HellScout

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