Obrain Unique Values from Two Columns

Manojlo

New Member
Joined
Sep 4, 2020
Messages
42
Office Version
  1. 365
Platform
  1. Windows
Hello,
I have two list in column A and B, I would like to have unique list of values in column C, from column A and B, like is on the example.

1653140268876.png
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Please try this formula.
=UNIQUE(FILTERXML("<a><b>"&TEXTJOIN("</b><b>",,A2:A14,B2:B14)&"</b></a>","//b"))
 
Upvote 0
Solution
If you happen to have the VSTACK function then there is also the possibility of using the formula structure I used in this post in your other thread.

In that other thread the columns to make the unique list from were not adjacent but if they are adjacent like your sample above, and you don't have VSTACK, then you can also combine the ranges in the formula suggested above by @Takae

=UNIQUE(FILTERXML("<a><b>"&TEXTJOIN("</b><b>",,A2:B14)&"</b></a>","//b"))
 
Upvote 0
If you happen to have the VSTACK function then there is also the possibility of using the formula structure I used in this post in your other thread.

In that other thread the columns to make the unique list from were not adjacent but if they are adjacent like your sample above, and you don't have VSTACK, then you can also combine the ranges in the formula suggested above by @Takae

=UNIQUE(FILTERXML("<a><b>"&TEXTJOIN("</b><b>",,A2:B14)&"</b></a>","//b"))
This works, Thank you
Please try this formula.
=UNIQUE(FILTERXML("<a><b>"&TEXTJOIN("</b><b>",,A2:A14,B2:B14)&"</b></a>","//b"))
This works, Thank you
 
Upvote 0

Forum statistics

Threads
1,215,368
Messages
6,124,521
Members
449,169
Latest member
mm424

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