Filtering 2 columns that are 57 columns apart

SanjayGMusafir

Well-known Member
Joined
Sep 7, 2018
Messages
1,503
Office Version
  1. 2021
Platform
  1. MacOS
Hi Experts
Just trying to find a way to a new problem

I'm working with a structured table Clients.
  • Column Clients[Mobile] - assuming 1
  • Column Clients - becomes 26th
  • Column Clients[Nm] - becomes 83rd

My requirement -
  • Filter Clients[[Mobile]:[Nm]] where Clients[Mobile] and Clients are not blanks and
  • Return a Sorted list based on Clients[Nm]

What I was doing using the formula below -
Excel Formula:
=UNIQUE(FILTER(Clients[Email],(Clients[Mobile]<>"")*(Clients[Email]<>"")))
  • and applied XLOOKUP
  • The limitation is that results can't be sorted on the basis of XLOOKUP values

I could have done -
Excel Formula:
=UNIQUE(Filter(FILTER(Clients[[Mobile]:[Nm]],(Clients[Mobile]<>"")*(Clients[Email]<>"")),{83 long series of 0s & 1s}))

But I was thinking of a compact way of doing in 1 go.

So I tried and failed with -
Excel Formula:
=INDEX(Clients[[Mobile]:[Nm]],,{26,83})

  • The challenge is it only returns the first row of the result
  • And, if I add filter conditions in row part, it repeats same result in total number of rows

Then, I realized that I must be missing on something very basic and doing some silly effort.

I would have shared XL2BB.
  • But with my main file it never works (system hangs).
  • For sharing examples here, I have to close my main file and start fresh with a blank workbook.

Hope you will understand.

Need your help and guidance.
Thanks in Advance 🙏
 
Last edited:

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
If you want to return only certain clients, then just add another criteria to the filter function.
 
Upvote 0
If you want to return only certain clients, then just add another criteria to the filter function.
Thanks @Fluff

Used your idea and formula

Added a helper column and a filter to your formula

Thanks again

Excel Formula:
=SORT(FILTER(INDEX(Clients[[Mobile]:[Nm]],SEQUENCE(ROWS(Clients)),{26,84}),(Clients[Mobile]<>"")*(Clients[Email]<>"")*(Clients[Cn]=1)),2)
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,242
Members
452,623
Latest member
russelllowellpercy

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