Help sorting duplicate data

emilyshaw93

New Member
Joined
Nov 11, 2015
Messages
18
Hi there,

I have an excel problem. I have set up quite a complex workbook over multiple sheets.

I have a list of names from one sheet, as below:

Adam 1
Emily 3
Emily 3
Emily 3
John 2
John 2

Basically, this counts the number of times a name is mentioned in a previous sheet. What I want to happen is that if a name is mentioned AT LEAST once, to move it into another list, but only to move one name (ie only 1 Emily and 1 John), not all references to it.

I have set the system up so that the formula works for just 1 mention, using the formula below:
=IF('NAMES'!I4=1,'NAMES'!B4)

Where I4 refers to the counting function set up, and B4 refers to the corresponding name itself.

So basically, if used AT LEAST once, copy the name across, but ONLY ONCE.

Any help much appreciated!
 

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.
you can just copy col B (names) to the new sheet and use excel's built-in function > Data > Remove duplicates to get your unique list of names
 
Upvote 0
Hi Alan,

Thanks for this. What I wanted though was not to remove the duplicates, but to automatically copy JUST the first time 'Emily' for example, is referred to, if it is referred to more than once.

Any ideas?

E
 
Upvote 0
as you're copy them across to another sheet, the duplicates wouldn't get deleted.
anyway, formula in D2 and copy down will get the unique list


Excel 2012
ABCD
1name
2Adam1Adam
3Emily3Emily
4Emily3John
5Emily3
6John2
7John2
8
Cell Formulas
RangeFormula
D2{=INDEX($A$2:$A$100, MATCH(0, COUNTIF($D$1:D1, $A$2:$A$100), 0))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,216,077
Messages
6,128,680
Members
449,463
Latest member
Jojomen56

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