Combine two lists and retain only unique values, no duplicates - Formula

mkmiller

New Member
Joined
Dec 14, 2011
Messages
7
Hi, I'm looking to combine two dynamic lists in excel and create one combined list with no duplicates, only unique values.

For example, combine List 1 and 2 below to create List 3 with the formula

List 1 List 2 List 3
Cat Rat Cat
Dog Cat Dog
Fish Bird Rat
Lizard Turtle Fish
Bird Monkey Bird
Lizard
Turtle
Monkey

It doesn't matter how List 3 is sorted as long as it contains only the unique values. I don't want to use VBA. I'm hoping there is a formula I can use. Please help!
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
The only way I can think of doing this would be with an INDEX/MATCH try something like:

Code:
=INDEX($A$2:$A$100,MATCH(0,INDEX(COUNTIF($C$1:C1,$A$2:$A$100),0,0),0))
That will get you a unique list, you will have to do that for each list, then just manually combine them... or combine the two lists, and use that to find the "unique" values... hope that helps!
 
Upvote 0
I've had this problem before and the best solution I've come up with is to copy and paste one of the lists into the first list toward the bottom. I then select the whole column and apply conditional formatting to highlight duplicates. After that, just scroll down to the cells that you pasted from the second list and delete any rows that were highlighted. Finally, delete the original copy/paste and then re-copy your new second list that is now free of duplicates.

Hopefully that was clear and/or helpful. Good luck.
 
Upvote 0
Hi, I'm looking to combine two dynamic lists in excel and create one combined list with no duplicates, only unique values.

For example, combine List 1 and 2 below to create List 3 with the formula

List 1 List 2 List 3
Cat Rat Cat
Dog Cat Dog
Fish Bird Rat
Lizard Turtle Fish
Bird Monkey Bird
Lizard
Turtle
Monkey

It doesn't matter how List 3 is sorted as long as it contains only the unique values. I don't want to use VBA. I'm hoping there is a formula I can use. Please help!

See the formula and explanation of how to use it here....

Extract a unique distinct list from two columns using excel 2007 array formula | Get Digital Help - Microsoft Excel resource
 
Upvote 0
Thanks Rick, that solution worked perfect. I was able to combine the CustomerAdjustment and ProviderAdjustment lists using the formula below.

=IFERROR(INDEX(CustomerAdjustments, ROWS(AI$9:$AI9)), IFERROR(INDEX(ProviderAdjustment, ROWS(AI$9:$AI9)-ROWS(CustomerAdjustments)), ""))

and then use another helper column reading the combined list (AllAdjustments) to only retain unique values with the below formula.

{=IFERROR(INDEX(AllAdjustments,MATCH(0,COUNTIF($AI$9:AI9,AllAdjustments),0)),"")}
 
Upvote 0
Hello Rick! I hope you are well. First of all thank you so much for taking the time to help out and for sharing your immense knowledge of the workings of Excel. Im not very new to Excel but I am still a beginner. I have been going through your responses and detailed instructions on your website and they have helped bring me closer to finding an efficient solution, but theres still a way to go.

I run a non-profit online education and e-learning research lab. Our research has accelerated due to the COVID-19 epidemic to analyze and evaluate institutional readiness, contingency planning and deployment of online learning platforms.

One of our strengths is our practice tests based on testing skills and their subskills in order to identify strengths, weaknesses, as well as progression over the course of time. Therefore, we have an Excel worksheet that has the results of each test with the student identifier being their email address. Since a lot of students take the same tests, there is a significant number of duplicates when compiling a global result sheet. But there are also those that do not take all the tests. We are working on figuring out a solution to generate a global score report that uses the student email address as their identifier and then picks up their scores from all the result worksheets and gives us their score, test times, etc.

Each test has two parts that are taken separately and so your solution for generating a list of entries from two lists without duplicates worked like a charm. However, I tried to expand the formula to pick up data for more sheets and Excel says that there are too many arguements for that function.

Is there a way that you can recommend where we look across each individual worksheet for the student identifier and then compile these identifiers as one global list without duplicates? I am including a screenshot of one of the reports (green tab) that is fed from two of the raw results sheets in red for the corresponding text. The goal is to generate a global score report, for all students, for all tests (yellow), The next steps we would like to take are to
*create another sheet with a drop down to select a student and generate their individual report card, This report card should have the number data. We would also like to add visualizations to report and ***** learning patters, performance growth, student average compared to class and global data averages.

We are quick learners and are extremely eager to learn more about using this fantastic tool for our purposes and we are keen on learning from you as well as all the other experts here on this forum.

We would be grateful if you could help us get closer to our goal analyzing student data and being able to provide meaningful, constructive feedback to them.
 

Attachments

  • Screenshot 2020-04-29 21.48.40.png
    Screenshot 2020-04-29 21.48.40.png
    155.4 KB · Views: 192
Upvote 0

Forum statistics

Threads
1,225,726
Messages
6,186,665
Members
453,368
Latest member
xxtanka

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