Dynamically extracting a list of unique values from non adjacdent column ranges

Alberto1976

New Member
Joined
Apr 2, 2020
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have found this formula online

=IFERROR(INDEX($M$25:$M$27, MATCH(0,COUNTIF($A$31:A31, $M$25:$M$27), 0)),"")

which is working great for my scope.

However, I do not know how to make it work for NON ADJACENT column ranges.

I tried this formula:

=IFERROR(INDEX($M$25:$M$27 $O25:$O$27 $Q$25:$Q$27 $S$25:$S$27 $U$25:$U$27 $W$25:$W$27, MATCH(0,COUNTIF($A$31:A31,$M$25:$M$27 $O25:$O$27 $Q$25:$Q$27 $S$25:$S$27 $U$25:$U$27 $W$25:$W$27), 0)),"")

but the cell returns blank.

Any help would be greatly appreciated.

P.S. I am new here, how can I attach my sample Excel file?

Thank you and best regards,
Alberto

Also asked here Dynamically extracting a list of unique values from non adjacdent column ranges
 
Last edited by a moderator:

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Hello,

for those who might need a solution to my same problem, here is the formula that was found correct:

=AGGREGATE(15,6,$M$25:$W$27/ISTEXT($M$25:$W$27)/(--$M$25:$W$27>MAX(A$31:A31)),1)

Please refer to this forum and thread for the whole story:


Thank you and kind regards,
Alberto
 
Upvote 0
UPDATE:

Updated formula to avoid an error if the cell contains a blank value:

=IFerror(AGGREGATE(15,6,$M$25:$W$27/ISTEXT($M$25:$W$27)/(--$M$25:$W$27>MAX(A$31:A31)),1),"")

Best regards,
Alberto
 
Upvote 0

Forum statistics

Threads
1,214,647
Messages
6,120,722
Members
448,987
Latest member
marion_davis

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