How To Get Unique Values From Two Columns In Excel || Excel Tips & Tricks || dptutorials

preview_player
Показать описание
In this tutorial let us see How To Get Unique Values From Two Columns In Excel
One of our subscribers sunil kumar has asked a question on how to extract unique distinct list from two columns.
So we will see this in detail now.
Consider this example where I have two lists in columns B and C and let us extract the unique list in column E
Here, we would be using an array formula
So, I go to cell E3 and enter formula as =COUNTIF($E$2:E2,$B$3:$B$10)=0
and press Ctrl+Shift+Enter to see the result as True.
Now divide 1 with the array, you will see the result as 1 for true condition
=1/(COUNTIF($E$2:E2,$B$3:$B$10)=0)
Now, based on this, you need to get the return value from the array
So modify the formula like this
=LOOKUP(2, 1/(COUNTIF($E$2:E2,$B$3:$B$10)=0), $B$3:$B$10)

Press Ctrl+Shift+Enter to get the distinct values from list1. But to get the list from column C, we need to further modify the formula as:
=IFERROR(LOOKUP(2, 1/(COUNTIF($E$2:E2,$B$3:$B$10)=0), $B$3:$B$10), LOOKUP(2, 1/(COUNTIF($E$2:E2, $C$3:$C$10)=0), $C$3:$C$10))

So this is our final formula. Press Ctrl+Shift+Enter and drag the formula till we get the error message like this.

Finally this is our desired list of unique values from two columns.
So, friends this is How To Get Unique Values From Two Columns In Excel
I hope you have enjoyed this tutorial, If yes, please do give me a like, share and comment.
For more interesting videos, please do subscribe dptutorials.

If you found this video valuable, give it a like. If you know someone who needs to see it, share it. Leave a comment below with your thoughts. Add it to a playlist if you want to watch it later.

***********************************************

Tools that I use for Vlogging:

Note: This description contains affiliate links, which means at no additional cost to you, we will receive a small commission if you make a purchase using the links. This helps support the channel and allows us to continue to make videos like this. Thank you for your support!

***********************************************

You Can Connect with Me at:

Follow:

Tags: -
excel formulas in English, excel in English, excel tutorial in English,ms excel in English,ms excel tutorial in English, learn excel in English,vlookup in excel in English, learn ms excel in English, excel training, excel tutorial, Microsoft Excel 2007, learn excel,tutorial excel, ms excel tutorial, excel tutorials,ms excel 2007,Microsoft Excel training,learn excel online,learning excel,free excel training,online excel training,advanced excel tutorial,excel tutorial, excel formulas and functions, excel formulas, excel tutorial in Hindi, excel formulas and functions in Hindi, excel tricks, excel in Hindi, excel shortcut keys, excel vlookup, excel formulas in Hindi, excel for beginners, excel for accounting, excel formulas and functions tutorial, Excel Sum Formula, Sum Formula series, excel attendance sheet, excel salary sheet, excel stock maintain, excel data entry, advanced excel tutorial,excel formulas,excel tutorial,vlookup excel,excel accounting,excel for beginners,excel shortcut keys,excel sum formula,excel training,excel training online,excel tricks,free excel training,learn excel,learn excel online,microsoft excel training,attendance sheet in excel,excel data entry,excel formulas and functions,microsoft excel 2007, ms excel tutorial, excel formulas, and functions in hindi, excel formulas and functions tutorial, excel formulas in english, excel formulas in hindi, excel in english, excel in hindi, excel tutorial in english
Рекомендации по теме
Комментарии
Автор

Excellent!!!! I need to do this for about 30 columns

IsaacMorris-wiwn
Автор

You have made a fan out of me. It was in issue that was unresolved for me for many many years.
Allah SubHanaho Ta'ala aapko emaan ki naimat aur duniya aur aakhirat ki tamam bhalaiyan naseeb farmaen. Allahumma Ameen

smzia
Автор

how do i extract unique values in from all multiple(three or more) columns in excel?

sanjaysinhparmar
Автор

If the data you are extracting is on a different sheet, does the "2" that you added as the criteria range for the lookup value change?

cheriostman
Автор

How to extract a list of only values common between two columns? For example, if Column A consist of values 1, 2, 3 and Column B consist of values 2, 3, 4. I want the resulting list to be 2, 3.

SalmanAhmad-vqqr
Автор

I always get a pop up about using the apostrophe as soon as I enter Ctrl+Shift+Enter. Somehow I am doing something wrong.

avinash_gupta
Автор

From Ctrl Shift Enter in the second time
I didn't get unique list from the required column
So at last my entire table got messed up

krishnaacharya
Автор

Thanks for the great video first.


How about the source columns are not adjacent to each other?
Like this


colA...colB...colC
va1... xyz...vc1
va1...xyz...vc2
va2...xyz...vc3
va2...xyz...vc3



where the 2 source columns are 'colA' and 'colC'



and the desired result to be:


unique_list
va1
va2
vc1
vc2
vc3


Many thanks.

clueple
Автор

Thanks.. only issue i still have is that it is picking items from bottom and is it possible to lookup the values from top?

vchandrasekaran
Автор

Anyone can explain the algorithm behind it.

arnoor
Автор

Thank you sir.
How can I do for multi column??

pmonir
Автор

Can we get the same details from 5 column as well

GopalSharma-jgyu
Автор

It was returning zero after reading comments i came to know that the range doesn't work with blanks... Is that a way to make it work with blanks so i can giv a bigger range so it is easy to add items later on..

husainkm
Автор

I need HELP! Why do I ge a zero on the first cell of my unique list???

mariobautista
Автор

What is the formula for this bro..?
Sheet3.dropdown=sheet 1.columA + sheet2.columnA

balajikrishnan
Автор

What if rows are 10 lakh....how to select

RoughandTough_Traveller
Автор

I am getting one single value in all cells.. can you please tell me a solution..?

haripriyan
Автор

How do I get unique value in a list from more than 2 column...please advise sir...

jitendrabarmase
Автор

please can you explain what is logocell

udayshankarm.r
Автор

HOW DO I EXTRACT UNIQUE VALUES IN MULTIPLE COLUMNS IN VBA PROGRAM

PraveenKumar-stzq