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

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
I could have done -
Excel Formula:
=UNIQUE(Filter(FILTER(Clients[[Mobile]:[Nm]],(Clients[Mobile]<>"")*(Clients[Email]<>"")),{83 long series of 0s & 1s}))

Rather than filter(filter( with 1's and zeros
have a look at choosecols()
where you just need to list the columns you want to show
 
Upvote 0
How about
Excel Formula:
=INDEX(Clients[[Mobile]:[Nm]],sequence(rows(Clients)),{26,83})
 
Upvote 0
Just wrap it in filter
Excel Formula:
=filter(INDEX(Clients[[Mobile]:[Nm]],sequence(rows(Clients)),{26,83}),(Clients[Mobile]<>"")*(Clients[Email]<>""))
 
Upvote 0
Solution
Just wrap it in filter
Excel Formula:
=filter(INDEX(Clients[[Mobile]:[Nm]],sequence(rows(Clients)),{26,83}),(Clients[Mobile]<>"")*(Clients[Email]<>""))
Strangely @Fluff I also tried that but it didn't work that time. Must have done some silly mistake.

Thanks a lot
 
Upvote 0
Just wrap it in filter
Excel Formula:
=filter(INDEX(Clients[[Mobile]:[Nm]],sequence(rows(Clients)),{26,83}),(Clients[Mobile]<>"")*(Clients[Email]<>""))
@Fluff two more challenges remaining
  • Filter Unique values based on Column Clients (26)
  • Then sorting on Column Clients[Nm] (83)
I'm trying various methods but failing over and over again.

Thanks and sorry for the inconvenience
 
Upvote 0

Forum statistics

Threads
1,223,162
Messages
6,170,431
Members
452,326
Latest member
johnshaji

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