Match text in two columns, report matches

BobKarrow

New Member
Joined
Jul 4, 2021
Messages
14
Office Version
  1. 2003 or older
Platform
  1. Windows
I’m trying to compare two columns (of text) to see if there are any matches. Column A has 21 items, Column B has 1259 items. I came up with
=IF(($A$1:$A$33)=B1),"MATCH","no"
but that contains an error (if not several).
I'd like column C to report "no" or "Match".
Can anyone help me?
 
Thanks for that. This is what I get with that data which looks right, unless I have misunderstood what you want.
+Fluff 1.xlsm
ABC
1
2Breaking of the Circle Studies on the Effect of the "New Science" Upon Seventeenth Century Poetry"Royal" Road Book of EnglandNo
3Consumption of Culture 1600-1800Malta in British and French Caricature 1798-1815Match
4History of Popular Culture to 1815Spirit Pond RunestonesNo
5Holy Delight: Typology, Numerology & Autobiography in Donne's Devotions Upon Emergent OccasionsWisconsin Land and LifeNo
6Hymns and Spiritual SongsConsumption of Culture 1600-1800No
7Introduction of Arabic Learning into England; The Panizzi Lectures 1996Reading, Ordnance Survey: Sheet SU 67/77No
8John Donne, A Literary LifeTicket and Sign WritingNo
9Literary TheoryUniversale NovoNo
10Lure of Antiquity and the Cult of the MachineHistory of AstronomyNo
11Madison, A Model CityBirth & Development of the Geological SciencesNo
12Mahogany Ship, Relic or Legend?Little Book of Map ProjectionNo
13Malta in British and French Caricature 1798-1815Oxford in 1578Match
14Maze of Ingenuity : ideas and idealism in the development of technologyWisconsin Survey Bulletin 71 Geology of Gogebic Iron Range of WINo
15MythologiesChanging Image of the CityNo
16Perspective of the WorldPedro Reinel Me FezNo
17Pope, His Banker & VeniceSud Italia da Roma a MessinaNo
18Power/KnowledgePriciples of NavigationNo
19Prints as Propaganda. The German ReformationPrinted Image and the Transformation of Popular Culture 1790 -1860No
20Quiddities : an Intermittently Philosophical DictionaryPoem "Do not stand at my grave and weep"No
21Redding 1540 -1640; A Portrait of a CommunityWhat a Wonderful World Catalogue 105No
22Romance of Wisconsin Place NamesVisio MundiNo
23Science and SocietyMuseo Communale di Gubbio-IncisioniNo
24Science of MeasurementStatistiken als Grundlage wirtschaftskartographischer Arbeiten Festchrift Leopold G. Scheidl zum 60 GeurtstagNo
25Settlers of Dane CountyThematische Kartographie: Graphik - Konzeption - TechnikNo
26Sickness and Health in AmericaDynamics of Architectural FormNo
27Social History of TruthNew Essays on the Psychology of ArtNo
28Spirit Pond RunestonesVisual ThinkingMatch
29Studi in Memoria di Teofilo Ossian De Negri [Genoese historian]Eton Comparative Atlas of Ancient & Modern GeographyNo
30University College of Swansea, an Illustrated HistoryKarttu Production Model of the Basic MapNo
31Varieties of Cultural HistoryLe Arti e i Mestieri di FirenzeNo
32Watts Divine Songs for the Use of ChildrenClock We Live OnNo
33Welsh Hills - WaukeshaJ. B.No
34Wisconsin Land and LifeR. H. M. Robert Hunter Middleton, Memorial ServiceMatch
35Manhattan in Maps 1556 - 1990
36Some Sixteenth Century Watermarks Found in Maps Prevalent in the IATO Atlases
Compare
Cell Formulas
RangeFormula
C2:C34C2=IF(ISNA(MATCH(A2,$B$2:$B$1292,0)),"No","Match")
 
Upvote 0

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Well, it looks right, in the sense that B3:B6 are the four titles in B2:B36 that match titles in A2:A34, but how did that happen? Because column C shows four "Matches" but only one of them is really a match: B3=A13, but C4:C6 all say "no."
 
Upvote 0
It's matching the value in col A against col B so col C has match where that value in A was found in B.
Are you wanting it to go the other way?
 
Upvote 0
But C13 says Match but B13 ("Oxford in 1578") is NOT found in A. In other words, with just the truncated selection in B (35 out of 1259 lines) I want to see MATCH in C3:C6. That way I can sort all 1259 lines by column C to find the entries that match. I will put other values in column A and try to find matches for THEM.
 
Upvote 0
C13 says Match as A13 is found in col B.
If you want it the other way round use
Excel Formula:
=IF(ISNA(MATCH(B2,$A$2:$A$50,0)),"No","Match")
 
Upvote 0
Solution
C13 says Match as A13 is found in col B.
If you want it the other way round use
Excel Formula:
=IF(ISNA(MATCH(B2,$A$2:$A$50,0)),"No","Match")
BINGO! That is exactly what I want. Thanks very much, Fluff!
 
Upvote 0

Forum statistics

Threads
1,214,893
Messages
6,122,118
Members
449,066
Latest member
Andyg666

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