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

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
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,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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