Filter function with the columns in unorganized order

Natit

Board Regular
Joined
Jan 22, 2012
Messages
60
Office Version
  1. 365
Platform
  1. Windows
Hi,
I added my filter command down heer.
When I try to add a column not in order, it masses all the data in the columns it shows.
What I mean is that I tried for example to add at the end, column B.
Any idea how to solve the problem?
=LET(
All_col,COLUMN(A:W),
data1,INDIRECT("'test'!o2:o"&parms!C1)=parms!B4,
data2,INDIRECT("'test'!q2:q"&parms!C1)=parms!C4,
FILTER(FILTER(INDIRECT("'test'!A2:w"&parms!C1),(data1)*(dat2)),(All_col=COLUMN(A:A))+(All_col=COLUMN(O:O))+(All_col=COLUMN(P:P))+(All_col=COLUMN(Q:Q))+(All_col=COLUMN(R:R))+(All_col=COLUMN(S:S))+(All_col=COLUMN(T:T))))
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Found the solution.
No need for help in this question :)
 
Upvote 0

Forum statistics

Threads
1,225,765
Messages
6,186,902
Members
453,384
Latest member
BigShanny

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