Comparing columns

nysos3

New Member
Joined
Jun 20, 2012
Messages
3
Basically I'm trying to compare 2 columns that have upwards of 1000 rows. The best way to explain what it is that I'm trying to do is give an example...
Let's say Column A has a, b, c, d, e, and f. Column B has a, c, d, and f. I want column C to show that b and e are missing. On a much larger scale that I'd rather not have to scroll through a whole bunch of N/As or blanks to find the few bits of real missing data (Only 7 or 8 things, out of 1000+, should be missing in column B from column A.)

Sorry if that doesn't make sense.
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Will Column A have a fulll list with nothing missing?
Also the data in column B, how is that inputed?
 
Last edited:
Upvote 0
Column A will have a full list.
Both data is basically being copy/pasted in from a different spread sheet. The formatting of the data is the same.
 
Upvote 0
Without actually seeing your data I can only assume something like this


Excel 2010
ABC
1Head1Head2Head3
2aaFALSE
3b#N/ATRUE
4ccFALSE
5ddFALSE
6eTRUE
7ffFALSE
Sheet1
Cell Formulas
RangeFormula
C2=OR(ISBLANK(B2),ISERROR(B2))


If not, can you post an outake of your spreadsheet so I can work with it?
 
Upvote 0
Maybe something like this

A B C
Dataset1
Dataset2
Missing
a
a
b
b
c
e
c
d
k
d
f
e
f
a
k

<tbody>
</tbody>

Array formula in C2 (Excel 2007 or higher)
=IFERROR(INDEX($A:$A,SMALL(IF($A$2:$A$1000<>"",IF(ISNA(MATCH($A$2:$A$1000,$B:$B,0)),ROW($A$2:$A$1000))),ROWS($1:1))),"")

confirmed with Ctrl+Shift+Enter
(hold down both Ctrl and Shift keys and hit Enter)

copy down

M.
 
Upvote 0
Array formula in C2 (Excel 2007 or higher)
=IFERROR(INDEX($A:$A,SMALL(IF($A$2:$A$1000<>"",IF(ISNA(MATCH($A$2:$A$1000,$B:$B,0)),ROW($A$2:$A$1000))),ROWS($1:1))),"")

confirmed with Ctrl+Shift+Enter
(hold down both Ctrl and Shift keys and hit Enter)

copy down

M.
This was EXACTLY as I needed. Thank you SO much!
 
Upvote 0

Forum statistics

Threads
1,203,744
Messages
6,057,116
Members
444,905
Latest member
Iamtryingman

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