sort filter formula with exclusion

valmir

Active Member
Joined
Feb 10, 2021
Messages
267
Office Version
  1. 365
Platform
  1. Windows
Hi everyone!
I have this formula here that I want to add an exclusion to:
=SORT(FILTER(INDEX($Q$1:$V$704;SEQUENCE(ROWS(Q1:Q704));{1\2\3\4\5\6});$V$1:$V$704<>0);{6;5};{-1;1})
In my particular case, in the third column (represented by number 3 in the formula) I have names (text) and I want to exclude all names that include the word "missing"
Please note that I don't have the word "missing" as a whole, I have may words that include "missing" in them.
Is that possible?
Thanks in advance!
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
How about
Excel Formula:
=SORT(FILTER($Q$1:$V$704;($V$1:$V$704<>0)*(ISERR(SEARCH("missing";s1:s704))));{6;5};{-1;1})
 
Upvote 0
Solution
How about
Excel Formula:
=SORT(FILTER($Q$1:$V$704;($V$1:$V$704<>0)*(ISERR(SEARCH("missing";s1:s704))));{6;5};{-1;1})
Oh Mr. Fluff, saving my day once again! :biggrin: Thanks a lot! 👏👏👏
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
Mr. Fluff, if you don't mind, I'm trying to replicate your formula, but I'm getting a spill of 8 columns to the right? Is that because in this formula the numbers are not in sequence?
This is the original formula:
=SORT(FILTER(INDEX($A$5:$P$48;SEQUENCE(ROWS(A5:A48));{1\2\15\8\10\12\14\16});$P$5:$P$48<>0);{8;3};{-1;1})
This is the one I came up with:
=SORT(FILTER($A$5:$P$48;($P$5:$P$48<>0)*(ISERR(SEARCH("missing";B5:B48))));{8;3};{-1;1})
 
Upvote 0
If you only want some of the columns you need to use
Excel Formula:
=SORT(FILTER(CHOOSECOLS($A$5:$P$48;1;2;15;8;10;12;14;16);($P$5:$P$48<>0)*(ISERR(SEARCH("missing";B5:B48))));{8;3};{-1;1})
 
Upvote 0
If you only want some of the columns you need to use
Excel Formula:
=SORT(FILTER(CHOOSECOLS($A$5:$P$48;1;2;15;8;10;12;14;16);($P$5:$P$48<>0)*(ISERR(SEARCH("missing";B5:B48))));{8;3};{-1;1})
Exactly! Thanks once again!
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,159
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