Use =UNIQUE formula to pull unique values from several non-adjacent ranges.

smking204

New Member
Joined
Jan 28, 2021
Messages
29
Office Version
  1. 365
Platform
  1. Windows
I have seven different columns with data that I want the =UNIQUE formula to draw from. So far no combination of formulas or other manipulations that I've tried have allowed me to compile unique values from more than one range. In my "plan B" that I'm currently using, I have seven =UNIQUE formulas in one hidden column, and my final column draws from that hidden column, but I would much rather do it directly in one formula if it's possible. Thanks in advance!
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
The UNIQUE function only works with a continuous range. Your current 'Plan B' is the best alternative.
 
Upvote 0
Are your columns next to each other?
 
Upvote 0
Also do you have the LET function in your version of Xl?
 
Upvote 0
No, they are non-adjacent columns. I have the =LET formula, yes.
 
Upvote 0
Ok, it's a bit convoluted & I don't fully understand it having pinched it from https://www.myonlinetraininghub.com/excel-forum/excel/unique-values-from-two-sources

+Fluff 1.xlsm
WXYZAAABACADAE
1Broker1Broker2Broker3
2JohnJohnDavidJohn
3JimMaryJillJim
4JillBrianJohnJill
5Mary
6Brian
7David
8
Dynamic
Cell Formulas
RangeFormula
AE2:AE7AE2=UNIQUE(LET( Rngs,(W2:W5,Y2:Y5,AA2:AA5), Zones,AREAS(Rngs), Rws,ROWS(W2:W5), TotalRows,SEQUENCE(Zones*Rws), NumArea,CEILING.MATH(TotalRows,Rws)/Rws, Rw,TotalRows-(NumArea-1)*Rws, Ary,INDEX(Rngs,Rw,1,NumArea), FILTER(Ary,Ary<>"")))
Dynamic array formulas.
 
Last edited:
Upvote 0
Wow, yeah. That's overwhelming for sure. I will spend some time parsing it, but I will leave this thread unanswered in case someone has something a little simpler. Thanks for this.
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,390
Members
448,957
Latest member
Hat4Life

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