Combine two filter results in one sheet

nburaq

Board Regular
Joined
Apr 2, 2021
Messages
220
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi All,
I have two similar tables at two different sheets. Is there any possibility to combine these two filtered results to show at another sheet? Maybe combination of filter and vstack?
I dont need unique values etc.. it is enough if it is filtered based on search

PS: I use this formula based on key search (Sheet1 result page, keyword at B1)
=FILTER(Sheet1!$A$2:$M$999;ISNUMBER(SEARCH($B1;Sheet1!$A$2:$A$999));"No Results")
=FILTER(Sheet2!$A$2:$M$999;ISNUMBER(SEARCH($B1;Sheet2!$A$2:$A$999));"No Results")
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
How about
Excel Formula:
=VSTACK(FILTER(Sheet1!$A$2:$M$999;ISNUMBER(SEARCH($B1;Sheet1!$A$2:$A$999));"No Results");FILTER(Sheet2!$A$2:$M$999;ISNUMBER(SEARCH($B1;Sheet2!$A$2:$A$999));"No Results"))
 
Upvote 1
How about
Excel Formula:
=VSTACK(FILTER(Sheet1!$A$2:$M$999;ISNUMBER(SEARCH($B1;Sheet1!$A$2:$A$999));"No Results");FILTER(Sheet2!$A$2:$M$999;ISNUMBER(SEARCH($B1;Sheet2!$A$2:$A$999));"No Results"))
Works perfect ! Is there any chance to hide #N/A if one of searches come without any result? Or placing "No results" to every column? Thanks again!
 
Upvote 0
You can use expand for that like (I've just doe the 1st filter)
Excel Formula:
=VSTACK(EXPAND(FILTER(Sheet1!$A$2:$M$999;ISNUMBER(SEARCH($B1;Sheet1!$A$2:$A$999));"No Results");;13;"No Results");FILTER(Sheet2!$A$2:$M$999;ISNUMBER(SEARCH($B1;Sheet2!$A$2:$A$999));"No Results"))
 
Upvote 1
Solution
You can use expand for that like (I've just doe the 1st filter)
Excel Formula:
=VSTACK(EXPAND(FILTER(Sheet1!$A$2:$M$999;ISNUMBER(SEARCH($B1;Sheet1!$A$2:$A$999));"No Results");;13;"No Results");FILTER(Sheet2!$A$2:$M$999;ISNUMBER(SEARCH($B1;Sheet2!$A$2:$A$999));"No Results"))
Thanks again!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,685
Members
448,978
Latest member
rrauni

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