Filter rows that meet criteria

GMC The Macro Man

Board Regular
Joined
Mar 23, 2023
Messages
104
Office Version
  1. 2021
Platform
  1. Windows
Hello there
The spreadsheet below shows a list of pupils with some of the subjects they are going to sit this year. The values under the subjects, represent the expected result they will achieve. The scale is 1 = Excellent and 8 = Very Poor.
What I want is to filter out (on a separate sheet) any pupil who has a 7 or 8 listed in their expected results so this can be passed to department heads to give the pupil assistance.
The pupils will only sit a few of the subjects available.
Some pupils could potentially have BOTH 7 and an 8 in their scores
I have only given a small cut out of the data as there is over 1000 pupils and 20 something subjects
Is it possible to pull any row of data that contains a 7 or an 8 (or both) to a separate sheet?

Thanks
George

Grading.xlsx
ABCDEFGHIJKLMN
1NameClassGenderArt & Design Business Chemistry Dance Design Drama English French Geography Graphics History
2George4AMale426782
3Larry4AMale33333
4Divya4AFemale11187
5Urvesh4AMale54772
6Suzie4BFemale78583
7Beth4BFemale33333
8Tom4BMale35222
9Simone4CFemale22728
10Colin4CMale53553
11Stephanie4CFemale66666
Grading
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
How about
Fluff.xlsm
ABCDEFGHIJKLMN
1NameClassGenderArt & Design Business Chemistry Dance Design Drama English French Geography Graphics History
2George4AMale40206070802
3Divya4AFemale00111080070
4Suzie4BFemale78050800300
5Simone4CFemale22000072080
Sheet2
Cell Formulas
RangeFormula
A2:N5A2=FILTER(Grading!A2:N11,MMULT(--(Grading!D2:N11>7),SEQUENCE(COLUMNS(Grading!D1:N1),,,0)))
Dynamic array formulas.
 
Upvote 1
Solution
How about
Fluff.xlsm
ABCDEFGHIJKLMN
1NameClassGenderArt & Design Business Chemistry Dance Design Drama English French Geography Graphics History
2George4AMale40206070802
3Divya4AFemale00111080070
4Suzie4BFemale78050800300
5Simone4CFemale22000072080
Sheet2
Cell Formulas
RangeFormula
A2:N5A2=FILTER(Grading!A2:N11,MMULT(--(Grading!D2:N11>7),SEQUENCE(COLUMNS(Grading!D1:N1),,,0)))
Dynamic array formulas.
Thank you Fluff, I didn't know about MMULT. I suppose every day is a school day :)

Appreciate it as always
George
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
Morning Fluff, Quick question if I may,
On the above Table, if the value was blank then the formula is now returning a "0". what formula do I need to add on to yours so it displays a BLANK instead of the ZERO
Thanks
George
 
Upvote 0
How about
Excel Formula:
=LET(f,FILTER(Grading!A2:N11,MMULT(--(Grading!D2:N11>7),SEQUENCE(COLUMNS(Grading!D1:N1),,,0))),IF(f="","",f))
 
Upvote 1
Cheers fluff, I tried to do this yesterday but i forgot the "equals" sign in the IF part.. :(
Have a good weekend bud
George
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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