Comparing lists to extract values not found while modifying the results

rizzo93

Active Member
Joined
Jan 22, 2015
Messages
303
Office Version
  1. 365
I want to spill the values in Table2 that are NOT in Table1.

Any value that has a "[C]" in it, I want to remove it leaving only the name.

I can achieve both objectives but can't figure out how to include the names that don't have "[C]" in them as they return #VALUE.

TABLE 1
Name
Clark Kent
Lois Lane
Adam Ant
Wonder Pup

TABLE 2
Name
Clark Kent
Lois Lane
Adam Ant
Wonder Pup
Mickey Mouse [C]
Donald Duck

Spilled Results
=FILTER(SORT(Table2[Name]),ISNA(XMATCH(SORT(Table2[Name]),Table1[Name])))
(these are in column G in my worksheet)
Donald Duck
Mickey Mouse [C]

Trying to remove the "[C]"
=IF(FIND("[",G5#),TRIM(TEXTBEFORE(G5#,"[")),G5#)

#VALUE!
Mickey Mouse
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Try this.
Mappe2
G
2Donald Duck
Tabelle1
Cell Formulas
RangeFormula
G2G2=SORT(FILTER(Table2[Name],(ISERROR(SEARCH("[C]",Table2[Name])))*(ISERROR(SEARCH(Table1[Name],Table2[Name])))))
 
Upvote 0
How about
Excel Formula:
=SORT(FILTER(TEXTBEFORE(Table2[Name]," [",,,1),ISNA(XMATCH(Table2[Name],Table1[Name]))))
 
Upvote 1
Solution
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,812
Messages
6,181,098
Members
453,021
Latest member
Justyna P

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