Reconcile two columns and Find The Differences

Sufiyan97

Well-known Member
Joined
Apr 12, 2019
Messages
1,538
Office Version
  1. 365
  2. 2013
Platform
  1. Windows
I want to match A and B columns and want to find :

1. Amount in Column A but not in Column B
2. Amount in Column B But not in Column A

AB
1​
10​
2​
11​
3​
12​
4​
14​
5​
15​
6​
16​
7​
1​
8​
2​
9​
3​
10​
21​
11​
22​
12​
23​
13​
24​
14​
25​
15​
26​
16​
27​
17​
28​
18​
29​
19​
30​
20​
31​
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Try This

Book1
ABCDEF
1ABAmount in Column A But Not in Column BAmount in Column B Not in Column A
2110421
3211522
4312623
5414724
6515825
7616926
8711327
9821728
10931829
1110211930
1211222031
131223  
141324  
151425  
161526  
171627 
181728
191829
201930
212031
Sheet1
Cell Formulas
RangeFormula
F2:F16F2=IFERROR(INDEX($B$2:$B$21,AGGREGATE(15,6,1/(1/(ISERROR(MATCH($B$2:$B$21,$A$2:$A$21,0))*(ROW($A$2:$A$21)-ROW($A$2)+1))),ROWS($F$2:F2))),"")
E2:E17E2=IFERROR(INDEX($A$2:$A$21,AGGREGATE(15,6,1/(1/(ISERROR(MATCH($A$2:$A$21,$B$2:$B$21,0))*(ROW($A$2:$A$21)-ROW($A$2)+1))),ROWS($E$2:E2))),"")
 
Upvote 0
Try This

Book1
ABCDEF
1ABAmount in Column A But Not in Column BAmount in Column B Not in Column A
2110421
3211522
4312623
5414724
6515825
7616926
8711327
9821728
10931829
1110211930
1211222031
131223  
141324  
151425  
161526  
171627 
181728
191829
201930
212031
Sheet1
Cell Formulas
RangeFormula
F2:F16F2=IFERROR(INDEX($B$2:$B$21,AGGREGATE(15,6,1/(1/(ISERROR(MATCH($B$2:$B$21,$A$2:$A$21,0))*(ROW($A$2:$A$21)-ROW($A$2)+1))),ROWS($F$2:F2))),"")
E2:E17E2=IFERROR(INDEX($A$2:$A$21,AGGREGATE(15,6,1/(1/(ISERROR(MATCH($A$2:$A$21,$B$2:$B$21,0))*(ROW($A$2:$A$21)-ROW($A$2)+1))),ROWS($E$2:E2))),"")
Thank you very much it works, I have tried it on 20 cells, but can you please cover large range in formula so that if numbers are more for example up to 300 cells so that it will work.
 
Upvote 0
An alternative is to use Get and Transform (Power Query) found on your Data Tab.

1. Bring each column into the PQ editor as a table
2. Close and Load each to a Connection only
3. Merge the two tables as a new query with a full outer join

Results below.

Book2
AB
1ATable2.B
211
31010
422
51111
633
71212
81414
91515
101616
1121
1222
1323
1424
1525
1626
1727
1828
1929
2030
2131
224
235
246
257
268
279
2813
2917
3018
3119
3220
Sheet2
 
Upvote 0
An alternative is to use Get and Transform (Power Query) found on your Data Tab.

1. Bring each column into the PQ editor as a table
2. Close and Load each to a Connection only
3. Merge the two tables as a new query with a full outer join

Results below.

Book2
AB
1ATable2.B
211
31010
422
51111
633
71212
81414
91515
101616
1121
1222
1323
1424
1525
1626
1727
1828
1929
2030
2131
224
235
246
257
268
279
2813
2917
3018
3119
3220
Sheet2
Thank you very much for your help!
Power Query is Awesome!
 
Upvote 0

Forum statistics

Threads
1,214,657
Messages
6,120,764
Members
448,991
Latest member
Hanakoro

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