Iferror/Index/Match without duplicate values

SteveNL86

Board Regular
Joined
Nov 11, 2014
Messages
109
Office Version
  1. 2016
Platform
  1. Windows
Dear reader,

I'm using this formula in a different sheet to pull values but filter out those cells with 'No defined output." from my main sheet:
Excel Formula:
=IFERROR(INDEX(Tickets!AA9:AA209;MATCH(TRUE;INDEX((Tickets!AA9:AA209<>"No defined output.");0);0));"")

And it's working, but the column AA has multiple duplicate values. I'm trying to make a shortlist with only unique values displayed.

Any help is much appreciated!

Regards,
Steve
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
What cell are you putting that formula in?
 
Upvote 0
Ok, try
Excel Formula:
=IFERROR(INDEX(Tickets!$AA$9:$AA$209;AGGREGATE(15;6;(ROW(Tickets!$AA$9:$AA$209)-ROW(Tickets!$AA$9)+1)/(ISNA(MATCH(Tickets!AA9:AA209;B$8:B8;0)))/(Tickets!$AA$9:$AA$209<>"No defined output.");ROWS(B$9:B9)));"")
 
Upvote 0
Thank you Fluff, I had to make a slight correction to get it to work perfectly.

It was still giving me some duplicates. I ended up changing the formula to:
Excel Formula:
=IFERROR(INDEX(Tickets!$AA$9:$AA$208;AGGREGATE(15;6;(ROW(Tickets!$AA$9:$AA$208)-ROW(Tickets!$AA$9)+1)/(ISNA(MATCH(Tickets!$AA$9:$AA$208;B$8:B8;0)))/(Tickets!$AA$9:$AA$209<>"No defined output.");ROWS(B$8:B8)));"")

That seems to work perfectly.
 
Upvote 0
I spoke too soon. It doesn't seem to add new unique values that I added in column AA. I'll try to mess around with it a bit to see if I can get it working.
 
Upvote 0
The formula is filtering some unique values aswell. I'm only getting about half the results I should be getting.
 
Upvote 0
Oops, it should be
Excel Formula:
=IFERROR(INDEX(Tickets!$AA$9:$AA$208;AGGREGATE(15;6;(ROW(Tickets!$AA$9:$AA$208)-ROW(Tickets!$AA$9)+1)/(ISNA(MATCH(Tickets!$AA$9:$AA$208;B$8:B8;0)))/(Tickets!$AA$9:$AA$209<>"No defined output.");1));"")
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,446
Messages
6,124,896
Members
449,194
Latest member
JayEggleton

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