Compare Datasets to Find Differences with No Unique Identifier/Duplicate Valid Identifier

Malik21

New Member
Joined
Mar 31, 2023
Messages
3
Office Version
  1. 365
Platform
  1. Windows
I need to compare Dataset A to Dataset B and aggregate the reconciliation using the "Name" column from each dataset to illustrate any quantity, month to date PnL, and any other differences between the two datasets.

I can't figure out how to easily compare the two datasets since some Names are repeated (cannot remove duplicates, each name is valid)

1680293368479.png


Dataset A
Namequantitymonth-to-date PnL
John
98382​
1665988​
John
72344​
305961​
John
70455​
-1123862​
Paul
88425​
604236​
Paul
74451​
1610242​
Paul
85720​
988013​
Paul
39964​
325181​
Paul
54264​
-1192519​
Bob
14633​
-1221182​
Bob
19656​
-1292593​
Bob
82073​
28946​
Bob
2836​
-1119430​
Steve
40539​
1541498​

Dataset B
Namequantitymonth-to-date PnL
John
98382​
1665988​
John
72344​
305961​
John
70455​
-1123860​
Paul
88500​
604236​
Paul
85720​
988013​
Paul
74451​
1610242​
Paul
54264​
-1192519​
Paul
39964​
325181​
Frank
88551​
89421​
Bob
82073​
28946​
Bob
19656​
-1292593​
Bob
14633​
-1221182​
Bob
2836​
-1119430​
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Hi & Welcome to MrExcel.

I have created comparison for PnL, you can do same for quantity

Book3
ABCDEFGHIJK
1Dataset ADataset B
2Namequantitymonth-to-date PnLData Set 1 PnL TotalData Set 2 PnL TotalDifferenceNamequantitymonth-to-date PnL
3John9838216659888480878480892John983821665988
4John723443059618480878480892John72344305961
5John70455-11238628480878480892John70455-1123860
6Paul88425604236233515323351530Paul88500604236
7Paul744511610242233515323351530Paul85720988013
8Paul85720988013233515323351530Paul744511610242
9Paul39964325181233515323351530Paul54264-1192519
10Paul54264-1192519233515323351530Paul39964325181
11Bob14633-1221182-3604259-36042590Frank8855189421
12Bob19656-1292593-3604259-36042590Bob8207328946
13Bob8207328946-3604259-36042590Bob19656-1292593
14Bob2836-1119430-3604259-36042590Bob14633-1221182
15Steve40539154149815414980-1541498Bob2836-1119430
16
Sheet1
Cell Formulas
RangeFormula
D3:D15D3=SUMIF(A:A,A3,C:C)
E3:E15E3=SUMIF(H:H,A3,J:J)
F3:F15F3=E3-D3
 
Upvote 0

Forum statistics

Threads
1,215,165
Messages
6,123,387
Members
449,098
Latest member
ArturS75

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