extract unique entries based on two criterias

snjpverma

Well-known Member
Joined
Oct 2, 2008
Messages
1,443
Office Version
  1. 365
Platform
  1. Windows
I want the output as shown in Cell A13. All the unique names should be extracted (unique should be determined as per the Name and Employee ID because there are people with same name but different employee ID.


Asset tool.xlsx
ABCDE
1Sales peronEmp IDProfits earnedDatesStore
2Jack15₹ 20,957.0003-04-2017East
3Bob12₹ 56,323.0005-02-2018West
4Bob12₹ 31,892.0009-07-2018West
5Jack15₹ 55,224.0015-10-2018East
6Luke30₹ 27,937.0029-08-2019West
7James25₹ 35,356.0025-01-2022East
8Bob12₹ 29,117.0030-05-2022West
9Ali88₹ 41,665.0023-10-2022East
10Jack15₹ 29,451.0002-11-2022East
11
12
13The following people have not met the requirement of minimum two submissions: 1) Luke 2) Ali and 3)James.
Sheet2


Thank You
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
51,842
Office Version
  1. 365
Platform
  1. Windows
just noticed that the system on which I am trying to work this out does have a TEXTJOIN function
Does that mean that you need to update your Account details?

1628717991102.png
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
51,842
Office Version
  1. 365
Platform
  1. Windows
unique should be determined as per the Name and Employee ID because there are people with same name but different employee ID.
Based on that I think you would need a modification to the TEXTJOIN suggestion.

21 08 12.xlsm
ABCDE
1Sales peronEmp IDProfits earnedDatesStore
2Jack15209574/03/2017East
3Bob12563232/05/2018West
4Luke23318927/09/2018West
5Jack155522410/15/2018East
6Luke30279378/29/2019West
7James25353561/25/2022East
8Bob12291175/30/2022West
9Ali884166510/23/2022East
10Jack152945111/02/2022East
11
12
13The following people have not met the requirement of minimum two submissions: Luke-23, Luke-30, James-25, Ali-88
Make list
Cell Formulas
RangeFormula
A13A13="The following people have not met the requirement of minimum two submissions: "&TEXTJOIN(", ",1,IF(COUNTIF(B2:B10,B2:B10)=1,A2:A10&"-"&B2:B10,""))
 

snjpverma

Well-known Member
Joined
Oct 2, 2008
Messages
1,443
Office Version
  1. 365
Platform
  1. Windows
Thanks Peter, I certainly needed to look at the Employee ID as well because there are different people of same names.
Secondly, I will certainly take care of changing the Office Version in future if I happen to seek a solution for an excel other than 2016 again. Thank you for the reminder.
 

Forum statistics

Threads
1,148,193
Messages
5,745,272
Members
423,941
Latest member
CluelessAboutExcel

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
Top