Filter Function in non Contiguous ranges

nmounir

Board Regular
Joined
Oct 16, 2020
Messages
107
Office Version
  1. 365
Platform
  1. Windows
Hello Everyone,

I am trying to extract the names of the people who scored greater than 400. The names are in non contiguous columns. The countifs function works fine but the filter function is not extracting contiguous records.

is there a way to extract this ? and if possible in one single row

your help is much appreciated.
 

Attachments

  • Capture.PNG
    Capture.PNG
    28 KB · Views: 29

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
How about
Excel Formula:
=LET(Data,(A1:B5,F1:G5),r,ROWS(A1:A5),s,SEQUENCE(r*AREAS(Data),,0),i,INDEX(Data,MOD(s,r)+1,{1,2},INT(s/r)+1),INDEX(FILTER(i,INDEX(i,,2)>400),,1))
note that both the ranges must be the same size, even if it means including blank rows.
 
Upvote 0
Solution
How about
Excel Formula:
=LET(Data,(A1:B5,F1:G5),r,ROWS(A1:A5),s,SEQUENCE(r*AREAS(Data),,0),i,INDEX(Data,MOD(s,r)+1,{1,2},INT(s/r)+1),INDEX(FILTER(i,INDEX(i,,2)>400),,1))
note that both the ranges must be the same size, even if it means including blank rows.
Thank you fluff, the formula worked perfectly. it is just a bit difficult to understand especially the last filter inside of index.
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,971
Members
452,371
Latest member
Frana

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