Index and Match function

Geo Jul

Board Regular
Joined
Nov 19, 2022
Messages
125
Office Version
  1. 2016
Platform
  1. Windows
Dear All,
I am facing a problem with this formula I usually use this formula: =INDEX($B$2:$B$127,MATCH(0,COUNTIF($J$15:J15,$B$2:$B$127),0),1)
to extract non-duplicate items from a list, know that some cells are empty so it won't work
Your assistance in this subject is highly appreciated

Regards
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
How about
Excel Formula:
=unique(filter($B$2:$B$127,$B$2:$B$127<>""))
 
Upvote 0
How about
Excel Formula:
=unique(filter($B$2:$B$127,$B$2:$B$127<>""))

Dear All,
I am facing a problem with this formula I usually use this formula: =INDEX($B$2:$B$127,MATCH(0,COUNTIF($J$15:J15,$B$2:$B$127),0),1)
to extract non-duplicate items from a list, know that some cells are empty so it won't work
Your assistance in this subject is highly appreciated

Regards
please note that I am using excel 2016 at work
 
Upvote 0
How about
Excel Formula:
=unique(filter($B$2:$B$127,$B$2:$B$127<>""))
many thanks on your solution but at work we use excel 2010 and excel 2016 That is why i am using the above formula thank you
 
Upvote 0
It would have helped if you either said that, or amend you profile to show 2016 rather than 365.
 
Upvote 0
How about
Excel Formula:
=IFERROR(INDEX(B:B,AGGREGATE(15,6,ROW($B$2:$B$127)/($B$2:$B$127<>"")/(ISNA(MATCH($B$2:$B$127,J$15:J15,0))),1)),"")
 
Upvote 0
Solution
How about
Excel Formula:
=IFERROR(INDEX(B:B,AGGREGATE(15,6,ROW($B$2:$B$127)/($B$2:$B$127<>"")/(ISNA(MATCH($B$2:$B$127,J$15:J15,0))),1)),"")
Many thanks for your solution and your time
 
Upvote 0
Please post some sample data & expected results.
 
Upvote 0

Forum statistics

Threads
1,215,109
Messages
6,123,136
Members
449,098
Latest member
Doanvanhieu

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