extract unique entries based on two criterias

snjpverma

Well-known Member
Joined
Oct 2, 2008
Messages
1,584
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
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Hi,

Try this:
Book1
ABCDEFG
1Sales peronEmp IDProfits earnedDatesStore
2Jack152095742828EastAli
3Bob125632343136WestJames
4Bob123189243290WestLuke
5Jack155522443388East 
6Luke302793743706West 
7James253535644586East 
8Bob122911744711West 
9Ali884166544857East 
10Jack152945144867East
Sheet2
Cell Formulas
RangeFormula
G2:G9G2=IFERROR(LOOKUP(2,1/((COUNTIF($G$1:G1,$A$2:$A$10)=0)*(COUNTIF($A$2:$A$10,$A$2:$A$10)=1)),$A$2:$A$10),"")
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
is it possible to get the result in one cell like in A13 from Post #1?
 
Upvote 0
I am open to using VBA solution and it's been a long time since I wrote a VBA code.
Can someone please help on the same?
 
Upvote 0
I am open to using VBA solution and it's been a long time since I wrote a VBA code.
Can someone please help on the same?
did you look at the link? Shown is a complete VBA part which handles your question to concatenate everything into one cell.
 
Upvote 0
thanks jorismoerings, I will surely make use of this ACONCAT. seems to be a very useful code. will post here in case of any help required with the Substitute function with the Aconcat.
 
Upvote 0
You can do it with some helper cells:

Book2
ABCDEFGH
1Sales peronEmp IDProfits earnedDatesStore
2Jack152095742828EastAli1) Ali
3Bob125632343136WestJames1) Ali 2) James
4Bob123189243290WestLuke1) Ali 2) James 3) Luke
5Jack155522443388East 1) Ali 2) James 3) Luke
6Luke302793743706West 1) Ali 2) James 3) Luke
7James253535644586East 1) Ali 2) James 3) Luke
8Bob122911744711West 1) Ali 2) James 3) Luke
9Ali884166544857East 1) Ali 2) James 3) Luke
10Jack152945144867East1) Ali 2) James 3) Luke
11
12
13The following people have not met the requirement of minimum two submissions: 1) Ali 2) James 3) Luke
Sheet3
Cell Formulas
RangeFormula
G2:G9G2=IFERROR(LOOKUP(2,1/((COUNTIF($G$1:G1,$A$2:$A$10)=0)*(COUNTIF($A$2:$A$10,$A$2:$A$10)=1)),$A$2:$A$10),"")
H2:H10H2=IF(G2="",H1&"",H1&ROWS($H$2:$H2)&") "&G2&" ")
A13A13=IF(H10="","Everyone has met the requirement","The following people have not met the requirement of minimum two submissions: "&H10)
 
Upvote 0
Solution
I just noticed that the system on which I am trying to work this out does have a TEXTJOIN function. Please let me know how can we simplify this with Textjoin?
 
Upvote 0
Try:

Book1
ABCDE
1Sales peronEmp IDProfits earnedDatesStore
2Jack15209574/3/2017East
3Bob12563232/5/2018West
4Bob12318927/9/2018West
5Jack155522410/15/2018East
6Luke30279378/29/2019West
7James25353561/25/2022East
8Bob12291175/30/2022West
9Ali884166510/23/2022East
10Jack152945111/2/2022East
11
12
13The following people have not met the requirement of minimum two submissions: Luke, James, Ali
Sheet1
Cell Formulas
RangeFormula
A13A13="The following people have not met the requirement of minimum two submissions: "&TEXTJOIN(", ",1,IF(COUNTIF(A2:A10,A2:A10)=1,A2:A10,""))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,693
Members
448,979
Latest member
DET4492

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