Pull unique values when adjacent cells are "combined."

brashandcrass

New Member
Joined
Aug 3, 2018
Messages
16
Want to pull a list of names that are unique from A:B and have it appear in F:G as seen below.

ABCDEFG
1First NameLast NameRoleStart Up----------UniqueUnique
2GeorgeAquinoInvestedInitechGeorgeAquino
3GeorgeAquinoInvestedAcme CorporationAlbanDushku
4AlbanDushkuFoundedMassive DynamicFemiFolani
5AlbanDushkuExitedMassive Dynamic
6FemiFolamiInvestedSoylent Corp
7FemiFolamiInvestedSoylent Corp

<tbody>
</tbody>

Thanks!
 
Last edited:

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Hello again,

In cell G2 ... you are familiar with an Array Formula ...:wink:

Code:
=IFERROR(INDEX($A$2:$A$7&" "&$B$2:$B$7,MATCH(0,COUNTIF($G$1:G1,$A$2:$A$7&" "&$B$2:$B$7),0)),"")

Hope this will help :)
 
Upvote 0

Book1
ABCD
1First NameLast NameRoleStart Up
2GeorgeAquinoInvestedInitech
3GeorgeAquinoInvestedAcme Corporation
4AlbanDushkuFoundedMassive Dynamic
5AlbanDushkuExitedMassive Dynamic
6FemiFolamiInvestedSoylent Corp
7FemiFolamiInvestedSoylent Corp
Sheet1


1. Name A2:A7 fname via Formulas | Name Manager.
2. Name B2:B7 lname.
3. Name C2:C7 role.
4. Name D2:D7 startup.
5. Define ivec as referring to:

=ROW(Sheet1!$A$2:$D$7)-ROW(INDEX(Sheet1!$A$2:$D$7,1,1))+1


Book1
ABCDE
1First NameLast NameInvestedFoundedExited
2GeorgeAquino200
3AlbanDushku011
4FemiFolami100
5
Sheet2


In A2 of Sheet2 control+shift+enter, not just enter, and copy down:

=IFERROR(INDEX(fname,SMALL(IF(FREQUENCY(IF(LEN(fname&"|"&lname)>LEN(fname)+1,MATCH(fname&"|"&lname,fname&"|"&lname,0)),ivec),ivec),ROWS(A$2:A2))),"")

In B2 of Sheet2 control+shift+enter, not just enter, and copy down:

=IFERROR(INDEX(lname,SMALL(IF(FREQUENCY(IF(LEN(fname&"|"&lname)>LEN(fname)+1,MATCH(fname&"|"&lname,fname&"|"&lname,0)),ivec),ivec),ROWS(B$2:B2))),"")

In C1 of Sheet2 control+shift+entrer, not just enter, and copy across:

=IFERROR(INDEX(role,SMALL(IF(FREQUENCY(IF(role<>"",MATCH(role,role,0)),ivec),ivec),COLUMNS($C$1:C$1))),"")

In C2 of Sheet2 control+shift+enter, not just enter, copy across, and down:

=IF($A2="","",SUM(IF(FREQUENCY(IF(fname&"|"&lname=$A2&"|"&$B2,IF(role=C$1,MATCH(startup,startup,0))),ivec),1)))
 
Upvote 0
Thanks again, James006.

One thing: I'd like for the first and last names to remain in separate cells (cols). How do we achieve that?

Also, since this is just a sample section, will this formula also take into account if the values in the Last Name col are not unique (e.g. the below table)?

<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>
First NameLast NameRoleStart UpFirst NameLast Name
GeorgeAquinoInvestedInitechGeorgeAquino
GeorgeAquinoInvestedAcme CorporationAlbanDushku
AlbanDushkuFoundedMassive DynamicFemiFolami
AlbanDushkuExitedMassive DynamicJamesFolami
FemiFolamiInvestedSoylent Corp
FemiFolamiInvestedSoylent Corp
JamesFolamiFoundedInitech
JamesFolamiFoundedInitech

<colgroup><col style="width: 100px"><col width="100"><col width="100"><col width="175"><col width="100"><col width="100"><col width="100"></colgroup><tbody>
</tbody>

Thanks.
 
Upvote 0
Hello,

To answer your first question:

Once you have the Unique Full Names in Column E, you can always split them ...

To get the first name
Code:
=LEFT(E2,FIND(" ",E2)-1)

To get the last name
Code:
=SUBSTITUTE(E2,F2&" ","")

To answer your second question:

Since the Unique Names have been extracted by combining First Names and Last Names ...there is no risk ...

You can obviously carry out your own tests to be totally sure about this aspect ...:wink:

Hope this will help

Cheers
 
Upvote 0
Aladin Akyurek, undoubtedly this approach is way over my head. I appreciate the input and your time but this is unfortunately one of those occasions I cannot sacrifice time to learn how to use Formulas | Name Manager.
 
Upvote 0
James006, sometimes I just have to think K.I.S.S. so I did this:
Code:
=IFERROR(INDEX($A$2:$A$7,MATCH(0,COUNTIF($G$1:G1,$A$2:$A$7&" "&$B$2:$B$7),0)),"")

and this:
Code:
=IFERROR(INDEX($B$2:$B$7,MATCH(0,COUNTIF($G$1:G1,$A$2:$A$7&" "&$B$2:$B$7),0)),"")

Thanks again.
 
Upvote 0
Glad you could fix your problem ... .wink:

Thanks ... for your Thanks ...:)
 
Upvote 0

Forum statistics

Threads
1,214,978
Messages
6,122,545
Members
449,089
Latest member
davidcom

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