Combining two Filter formulas in one

Anonymous321

New Member
Joined
Oct 12, 2021
Messages
32
Office Version
  1. 365
Platform
  1. Windows
Hello
I want to have a filter formula that contains two arrays of data while also avoiding duplicates. I've inserted two tables below as an example, but in short I want a filter formula that contains the data from both of these tables while avoiding the duplicates.

Table 1
FruitColour
AppleRed
BananaYellow
PearGreen

Table 2

FruitColour
AppleRed
GrapePurple

Obviously this is a very simple example but in this case the Filter formula would list the 3 pieces of fruit from the first table but only one from the second as there's a duplicate in there.

Any help will be appreciated :)
Thanks, Aidan

Note: The two pieces of data in my original document on in different sheets
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
What is your expected output?
 
Upvote 0
What is your expected output?
Simply I want a list that combines the data from two sets of tables while avoiding duplicates. Maybe the filter formula is not the best way to go about it, but perhaps the formula would look something like this
=unique('Sheet1'A14:A9999&'Sheet2'A14:A9999) This didn't work because the cell content overlapped
 
Upvote 0
Are you just looking for the distinct values in col A?
 
Upvote 0
Ok, how about
Excel Formula:
=LET(RngA,Sheet1!A14:A9999,RngB,Sheet2!A14:A9999,ra,ROWS(RngA),s,SEQUENCE(ra+ROWS(RngB)),I,IF(s<=ra,INDEX(RngA,s),INDEX(RngB,s-ra)),UNIQUE(FILTER(I,I<>0)))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,731
Messages
6,126,535
Members
449,316
Latest member
sravya

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