Sort and filter function

BORUCH

Well-known Member
Joined
Mar 1, 2016
Messages
528
Office Version
  1. 365
Platform
  1. Windows
hi
i have the below formula for some reason the second filter is not working (D3:D56777=V1) can someone explain why

=SORT(FILTER(B3:B56777,(C3:C56777=U1)*ISNUMBER(SEARCH(T1,B3:B56777)),SORT(FILTER(B3:B56777,(D3:D56777=V1)*ISNUMBER(SEARCH(T1,B3:B56777)),SORT(FILTER(B3:B56777,ISNUMBER(SEARCH(T1,B3:B56777)),"No Match Found"),)),)))
 
Ok, how about
Excel Formula:
=LET(Rng, B3:B56777,Rws,SEQUENCE(ROWS(Rng)),SORT(FILTER(Rng,(IF(U1<>"",(C3:C56777=U1),Rws))*(IF(T1<>"",ISNUMBER(SEARCH(T1,Rng)),Rws))*(IF(V1<>"",D3:D56777=V1,Rws)*(Rng<>"")),"No Match Found")))
 
Upvote 0

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Ok, how about
Excel Formula:
=LET(Rng, B3:B56777,Rws,SEQUENCE(ROWS(Rng)),SORT(FILTER(Rng,(IF(U1<>"",(C3:C56777=U1),Rws))*(IF(T1<>"",ISNUMBER(SEARCH(T1,Rng)),Rws))*(IF(V1<>"",D3:D56777=V1,Rws)*(Rng<>"")),"No Match Found")))
thanks that worked
i would just need to modify it if i want to bring back the customer number in the next column it seems to be making problems when i change B3:B56777 TO A3:A56777 It says no match found if i put lets say the word super

Excel Formula:
=LET(Rng, A3:A56777,Rws,SEQUENCE(ROWS(Rng)),SORT(FILTER(Rng,(IF(U1<>"",(C3:C56777=U1),Rws))*(IF(T1<>"",ISNUMBER(SEARCH(T1,Rng)),Rws))*(IF(V1<>"",D3:D56777=V1,Rws)*(Rng<>"")),"No Match Found"))
)
 
Upvote 0
If you still want to filter col B based on T1 you will need to change
Excel Formula:
ISNUMBER(SEARCH(T1,Rng))
to
Excel Formula:
ISNUMBER(SEARCH(T1,B3:B56777))
 
Upvote 0
If you still want to filter col B based on T1 you will need to change
Excel Formula:
ISNUMBER(SEARCH(T1,Rng))
to
Excel Formula:
ISNUMBER(SEARCH(T1,B3:B56777))
thanks a million works perfectly
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
You're welcome & thanks for the feedback.
hi

I'm wondering if its possible with your formula to automatically add a grand total at the end of the list and it automatically subtotals all columns to the right ?
 
Upvote 0
As this is a totally different question, it needs a new thread. Thanks
 
Upvote 0

Forum statistics

Threads
1,215,321
Messages
6,124,239
Members
449,149
Latest member
mwdbActuary

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