Combining Filter function with Indirect/Concatenate to look up from another worksheet

wilsonb78

New Member
Joined
Apr 4, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi,
I've created a formula that works fine if it is within the sheet where the data originates, if is filtering the routes our vans will be taking and excludes any blank routes (if a van is not scheduled out that day). But I want to have the summary in another sheet dynamically changing based on today's date.
The filter I have in the sheet named 'Routes' is =FILTER(CE113:CE122,(CE113:CE122<>""),"")
I can get it working in another sheet if I ditch the "<>0" part, but then I end up with an ugly result that has blanks.
The filter I used from the other sheet is this:
=FILTER(INDIRECT(CONCATENATE("Routes!"&A22&113&":"&A22&122),TRUE),(CONCATENATE("Routes!"&A22&113&":"&A22&122)<>""))
Where A22 contains the letters of the column I need to reference and the data is between row 113 and row 122.
I just don't know how/where to get the rule to ignore blanks into the indirect/concatenated formula.

Any help gratefully received.

Thanks
 

Attachments

  • excel query1.png
    excel query1.png
    5.7 KB · Views: 5
  • excel query2.png
    excel query2.png
    3.7 KB · Views: 5

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Hi & welcome to MrExcel.
How about
Excel Formula:
=LET(d,INDIRECT("Routes!"&A22&"113:"&A22&"122"),FILTER(d,d<>""))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,200
Messages
6,123,612
Members
449,109
Latest member
Sebas8956

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