How to show a list view of columns based off another sheet / alternative to Pivot table?

creative999

Board Regular
Joined
Jul 7, 2021
Messages
116
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
  2. MacOS
Hi
I have a sheet with 15 columns and ~5000 rows.
On a separate sheet i need to show specific columns based on a criteria. For example, Where A:A=Machinery and B:B=Metal. The columns to be shown will always be the same, A:A, B:B, F:F, H:H, Z:Z.
I tried using pivot tables but the data changes often enough which requires the pivot table to be refreshed for everyone who has it open.

Any suggestions?
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
=filter(choosecols(sheet1!a1:Z5000,1,2,6,8,26),(sheet1!a1:a5000="Machinery")*(sheet1!b1:b5000="Metal),"")
 
Upvote 0
=filter(choosecols(sheet1!a1:Z5000,1,2,6,8,26),(sheet1!a1:a5000="Machinery")*(sheet1!b1:b5000="Metal),"")
Thank you so much.
Is it possible to use a wildcard. Ive tried the following but get no results:

=filter(choosecols(sheet1!a5:Z5000,1,2,6,8,26),(sheet1!a5:a5000="Machinery")*(sheet1!b1:b5000="*"&$A$1&"*"),""

 
Upvote 0
Try the following...

=FILTER(CHOOSECOLS(Sheet1!A1:Z5000,1,2,6,8,26),(Sheet1!A1:A5000="Machinery")*(ISNUMBER(SEARCH($A$1,Sheet1!B1:B5000))),"")

Hope this helps!
 
Upvote 0
Thank you so much. Works perfectly.
Last question. I’ve sorted this based on the first column. Is it possible to sort based on column 1 then column 2?
 
Upvote 0
Try the following...

Excel Formula:
=LET(
    d, CHOOSECOLS(Sheet1!A1:Z5000, 1, 2, 6, 8, 26),
    f, FILTER(
        d,
        (CHOOSECOLS(d, 1) = "Machinery") * (ISNUMBER(SEARCH($A$1, CHOOSECOLS(d, 2))))
    ),
    s, SORT(f, 2, 1),
    s
)

Hope this helps!
 
Upvote 0
Those letters are simply variable names, where each of those variables get assigned a value so that a final calculation can be made using one or more or all of the vairables. Have a look at Microsoft Help for a more detailed explanation of the LET function.
 
Upvote 0

Forum statistics

Threads
1,225,734
Messages
6,186,714
Members
453,369
Latest member
positivemind

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