• 411K Members
• 6,170 Online
• 466K Conversations
SOLVED

Deleted
Not applicable

# Comparing lists

Hi ...

Would appreciate help with the following query.

I have two lists of names as follows:

List A                                           List B

Smith                                           Smith

Williams                                       Williams

Jones                                            Jones

Jones                                            Evans

Evans                                            Lewis

Lewis

Williams

Jones

Evans

Smith

Morgan

List A contains a number of duplications that I want to refine into a unique list (List B). Is it possible, therefore, to create a formula that will search List A to identify if a) the names already exists in List B and if not b) will add the new name (for example, Morgan) to List B.

I've been compiling List B manually up to now but List A is becoming so extensive that errors are being to creep in.  Any help would therefore be gratefully appreciated.

James Clancy

2 Replies
Solution

# Re: Comparing lists

To create a distinct sorted list, write this formula in B2 and copy it down:
=IFERROR(LOOKUP(2,
1/(COUNTIF(A\$2:A\$100,”>=“&A\$2:A\$100)=MAX(INDEX(COUNTIF(A\$2:A\$100,”>=“&A\$2:A\$100)*(COUNTIF(B\$1:B1,A\$2:A\$100)=0),0))),
A\$2:A\$100),””)

# Re: Comparing lists

@Deleted

Hi - have you tried 'Data' ' Remove Duplicates'?

Related Conversations
flashing a white screen while open new tab
cntvertex in Discussions on
13 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
22 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies