Remove values from array based on helper columns

tminhv

New Member
Joined
Jun 29, 2023
Messages
16
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
  3. Web
=FILTER('INVENTORY-COMMIT'!A:A,((LEFT('INVENTORY-COMMIT'!A:A,2)=REORDER!N1)+(LEFT('INVENTORY-COMMIT'!A:A,2)=REORDER!O1)+(LEFT('INVENTORY-COMMIT'!A:A,2)=REORDER!P1)*NOT('INVENTORY-COMMIT'!A:A=N2:N3)))

I want remove values from array based on helper columns when filled in. It works when NOT formula is referring only to a single cell, I can do multiple of those and it works fine. This isn't efficient as I would have to individually list from n2 to p500. I'm assuming that it's throwing a N/A because it's attempting to filter based off of the ENTIRE referenced range instead, but then it should do the same when the single cell reference is empty, right?

1. refer
AMNOP
1item_numberTypep-
2P-10C12Remove
3P-10C12BS
4P-10C14
REORDER
Cell Formulas
RangeFormula
A2:A304A2=UNIQUE(FILTER('INVENTORY-COMMIT'!A:A,((LEFT('INVENTORY-COMMIT'!A:A,2)=REORDER!N1)+(LEFT('INVENTORY-COMMIT'!A:A,2)=REORDER!O1)+(LEFT('INVENTORY-COMMIT'!A:A,2)=REORDER!P1)*NOT('INVENTORY-COMMIT'!A:A=N2))))
Dynamic array formulas.


1. refer
AMNOP
1item_numberTypep-
2#N/ARemove
3
4
5
6
REORDER
Cell Formulas
RangeFormula
A2A2=UNIQUE(FILTER('INVENTORY-COMMIT'!A:A,((LEFT('INVENTORY-COMMIT'!A:A,2)=REORDER!N1)+(LEFT('INVENTORY-COMMIT'!A:A,2)=REORDER!O1)+(LEFT('INVENTORY-COMMIT'!A:A,2)=REORDER!P1)*NOT('INVENTORY-COMMIT'!A:A=N2:N3))))
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Try replacing your NOT(...) with ISNA(XMATCH('INVENTORY-COMMIT'!A:A,N2:N100))?
Similarly, ISNUMBER(XMATCH(LEFT('INVENTORY-COMMIT'!A:A,2),REORDER!N1:P1)) should replace the other part.
 
Upvote 1
Solution
Try replacing your NOT(...) with ISNA(XMATCH('INVENTORY-COMMIT'!A:A,N2:N100))?
Similarly, ISNUMBER(XMATCH(LEFT('INVENTORY-COMMIT'!A:A,2),REORDER!N1:P1)) should replace the other part.
That's perfect, thank you!
 
Upvote 0

Forum statistics

Threads
1,223,229
Messages
6,170,881
Members
452,364
Latest member
springate

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