Index and Match but exclude if on a list

rex759

Well-known Member
Joined
Nov 8, 2004
Messages
610
Office Version
  1. 365
Platform
  1. Windows
Hello,
I am using Index and match but for multiple entries (Aggregate function) and works great. I want to adjust the formula to exclude numbers (under site column) if it matches a list (List to exclude). I tried working a Countif into the mix but nothing successful.

Any help is appreciated
Index match and exclude.xlsx
ABCDEFGHI
1SiteDateList to exclude
210103/03/2303/03/2308/03/2309/10/23108
310303/03/23101102117102
410903/03/23103106118117
510407/07/23109108119122
610507/14/23 114120
710707/21/23   
810208/03/23   
910608/03/23   
1010808/03/23
1111408/03/23*
1211008/19/23
1311109/09/23
1411709/10/23
1511809/10/23
1611909/10/23
1712009/10/23
1811209/15/23
1911309/16/23
2011509/29/23
2111610/07/23
2212112/01/23
2312212/08/23
2412312/09/23
Sheet1
Cell Formulas
RangeFormula
D3:D9D3=IFERROR(INDEX($A$2:$A$24,AGGREGATE(15,6,(ROW($B$2:$B$24)-ROW($B$2)+1)/($B$2:$B$24=$D$2),ROWS($C$2:C2))),"")
E3:E9E3=IFERROR(INDEX($A$2:$A$24,AGGREGATE(15,6,(ROW($B$2:$B$24)-ROW($B$2)+1)/($B$2:$B$24=$E$2),ROWS($C$2:D2))),"")
F3:F9F3=IFERROR(INDEX($A$2:$A$24,AGGREGATE(15,6,(ROW($B$2:$B$24)-ROW($B$2)+1)/($B$2:$B$24=$F$2),ROWS($C$2:E2))),"")
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
How about
Fluff.xlsm
ABCDEFGH
1SiteDateList to exclude
210103/03/202303/03/202303/08/202310/09/2023108
310303/03/2023101106118102
410903/03/2023103114119117
510407/07/2023109120122
610514/07/2023
710721/07/2023
810203/08/2023
910603/08/2023
1010803/08/2023
1111403/08/2023
1211019/08/2023
1311109/09/2023
1411710/09/2023
1511810/09/2023
1611910/09/2023
1712010/09/2023
1811215/09/2023
1911316/09/2023
2011529/09/2023
2111607/10/2023
2212101/12/2023
2312208/12/2023
2412309/12/2023
25
Data
Cell Formulas
RangeFormula
D3:D5,F3:F5,E3:E4D3=FILTER($A$2:$A$100,($B$2:$B$100=D2)*(ISNA(XMATCH($A$2:$A$100,$H$2:$H$10))))
Dynamic array formulas.
 
Upvote 0
Solution
That was quick! I have never used xmatch! Always learning something new from this site. Thank you very much. Works perfectly
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,154
Members
453,021
Latest member
Justyna P

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