Array formula needed to pull non duplicate names

Schubby10

New Member
Joined
Aug 16, 2018
Messages
33
Hi there

Had a lot of help here before so looking for similar help. I have a big list of accounts with duplicate people for certain accounts

Looking to pull specific people that belong to a certain account without duplicates.

I have the people in column O with the account number in column F

Any idea how to structure this?

Thank you
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Assuming 1st row has headers, to get the list of unique names in a list try this array formula (Using Ctrl+Shift+Enter) in Cell P2 and drag down, the data is assumed to run till 10th row in this formula adjust range accordingly!

{=IFERROR(INDEX($O$2:$O$10,MATCH(0,COUNTIF($P$1:P1,$O$2:$O$10),0)),"")}

When the list has collected all the unique names, the following rows (if dragged further) in column P would show BLANK.
 
Last edited:
Upvote 0
Sorry KolGuyXcel, maybe I wasn't communicating it right. I am looking to pull unique names for specific accounts in a list. So for X account all names that show up non repeating. Then if I set it to Y acct non repeating names under Y.

Thank you,
 
Upvote 0
Try this array formula (enter with CTRL-SHIFT-ENTER)
Drag formula down as needed.
Excel Workbook
FNOPQR
1Acct#PeopleFind AcctA1
2A1Name1PeopleName1
3A2Name2Name2
4A3Name3Name4
5A1Name2
6A3Name5
7A1Name2
8A7Name7
9A1Name4
10A9Name9
11A3Name4
12
Sheet
 
Upvote 0
How about posting a small sample of your data and the actual formula you entered. As you can see it works in the example above (is this close to what your data looks like?).
Are your account numbers actual numbers or alphanumeric?
Also, make sure you entered the formula with CTRL-SHIFT-ENTER, if done right Excel will put brackets {} around the formula.
 
Upvote 0
So the acct numbers I am trying to pull are all numbers (123-456-78900-1111-2222) with some dashes, but they do match. I have two tabs.

Here is the formula in its entirety

={IFERROR(INDEX(Data!$O$2:$O$500000,SMALL(IF(FREQUENCY(if(Data!$F$2:$F$500000=$A$8,MATCH(Data!$O$2:$O$500000,Data!$O$2:$O$500000,0)),ROW(Data!$O$2:$O$500000)-ROW(Data!$O$2)+1),ROW(Data!$O$2:$O$500000)-ROW(Data!$O$2)+1),ROWS($A$8:A8))),"")}
 
Upvote 0
I used the formula you posted and it worked for me. Do you see any difference between the example below and your data? Also, if there is an error it should return a blank, not sure why you got a 0.
I set up two tabs one named Data.

Excel Workbook
AB
7Find Acct#Names
8123-456-78900-1111-2222Name1
9Name2
10Name4
11
Sheet2
Excel Workbook
FGNO
1Acct#People
2123-456-78900-1111-2222Name1
3123-456-78900-1111-2224Name2
4123-456-78900-1111-2224Name3
5123-456-78900-1111-2222Name2
6123-456-78900-1111-2260Name5
7123-456-78900-1111-2222Name2
8123-456-78900-1111-2260Name7
9123-456-78900-1111-2222Name4
10123-456-78900-1111-2224Name9
11123-456-78900-1111-2260Name4
Data
 
Upvote 0
Thank you for all the help, just to clarify, there are numerous accounts and same names.

For example Acct 123-456-78900-1111-2222 name A, name B, name A, name A, name A.
 
Upvote 0
In example below Nam1 appears on same account a number of times and formula returns name only one time.
Excel Workbook
AB
7Find Acct#Names
8123-456-78900-1111-2222Name1
9Name2
10
Sheet
Excel Workbook
FGNO
1Acct#People
2123-456-78900-1111-2222Name1
3123-456-78900-1111-2224Name2
4123-456-78900-1111-2224Name3
5123-456-78900-1111-2222Name1
6123-456-78900-1111-2260Name5
7123-456-78900-1111-2222Name2
8123-456-78900-1111-2260Name7
9123-456-78900-1111-2222Name1
10123-456-78900-1111-2224Name9
11123-456-78900-1111-2260Name4
Data
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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