Return text which appears in one list but not in a second list?

chasfh

Board Regular
Joined
Dec 10, 2014
Messages
54
Office Version
  1. 365
Platform
  1. Windows
I have a list of 12 teams and a second list of 11 teams, and I want to return as text the name of the 12th team not in the second list.

It's an unusual need, I know, but I did seem to find two sources that give the same solution:


I should be getting the result "Redlegs" in cell G28, where the formula is, but instead I'm getting a #CALC! error. See screenshot below.

What am I missing here? Is this not even the right formula to use for what I need here?

one list not in another list.jpg
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
A slight update to the formula given by @ISY .
If your ranges will be moving around, you can use the VSTACK function to ensure the cell ranges with data are together:

Mr excel questions 67.xlsm
G
3Orioles
4Cardinals
5Beaneaters
6Twins
7White Sox
8Tigers
9Phillies
10Redlegs
11Yankees
12Dodgers
13Blues
14Pirates
15
16White Sox
17Twins
18Beaneaters
19Orioles
20Cardinals
21Yankees
22Tigers
23Blues
24Phillies
25Pirates
26Dodgers
27Redlegs
chasfh
Cell Formulas
RangeFormula
G27G27=UNIQUE(VSTACK(G3:G14,G16:G26),,1)
 
Upvote 0
What am I missing here?
To answer your question: You had the ranges the wrong way around in your formula. :)

23 10 16.xlsm
FG
1
2
3Orioles
4Cardinals
5Beaneaters
6Twins
7White Sox
8Tigers
9Phillies
10Redlegs
11Yankees
12Dodgers
13Blues
14Pirates
15
16
17White Sox
18Twins
19Beaneaters
20Orioles
21Cardinals
22Yankees
23Tigers
24Blues
25Phillies
26Pirates
27Dodgers
28MineRedlegs
29Yours#CALC!
Missing
Cell Formulas
RangeFormula
G28G28=FILTER(G3:G14,NOT(COUNTIF(G17:G27,G3:G14)))
G29G29=FILTER(G17:G27,NOT(COUNTIF(G3:G14,G17:G27)))
 
Upvote 0
Solution

Forum statistics

Threads
1,215,111
Messages
6,123,159
Members
449,098
Latest member
Doanvanhieu

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