filter and sortby

ExcelNewbie2020

Active Member
Joined
Dec 3, 2020
Messages
293
Office Version
  1. 365
Platform
  1. Windows
I would like to filter the qty with more than 0, then use sortby to sort by dept. would it be possible?

testing.xlsx
ABCDEFGHIJKLMNO
1Nameno.sectiondeptqtyexpected result
2Name11ZAZ5SORTBYNameno.deptqty
3name22ABA10ZName11Z5
4Name33CDC0Aname22A10
5Name44DED20XName77X6
6Name55BCB5BName55B5
7Name66EFE4CName1010B32
8Name77XYX6DName44D20
9Name88TUT0TName99D12
10Name99DED12EName66E4
11Name1010BCB32
12
13
14
15
16
17
18
Sheet11
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
How about
Excel Formula:
=LET(f,FILTER(CHOOSECOLS(A2:E100,1,2,4,5),E2:E100<>0),SORTBY(f,MATCH(INDEX(f,,3),H3:H10,0)))
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,429
Messages
6,124,840
Members
449,193
Latest member
MikeVol

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