Comparing two sets of data and making sure they are the same

faisalm2

New Member
Joined
Jun 5, 2017
Messages
12
Hi

Basically I am doing a reconciliation (comparing two sets of data). The two sets of data consists of name, dates and completion dates of the course. How do I compare the two and make sure they are the same as each other. Please help!!!!!
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Here is one way. This is a scaled down example but the same logic can be used with any number of columns.


Excel 2010
ABCDEFG
1Data AData B
2LettersNumbersIn Data B?LettersNumbersIn Data A?
3A1YesB2Yes
4B2YesD4Yes
5C3YesA1Yes
6D4YesC3Yes
Sheet1
Cell Formulas
RangeFormula
C3=IF(COUNTIFS(E:E,A3,F:F,B3),"Yes","No")
G3=IF(COUNTIFS(A:A,E3,B:B,F3),"Yes","No")
 
Upvote 0
Hi Falcondude

I know this method but i don't think its ideal for me. As I want it to point out the differences if possible. As the countif method shows there is a difference I want a method where I can compare the same person on both sheets there start and end dates and make sure they are the same and the money they have to pay to us?
 
Upvote 0
If you want to specifically highlight values on the first data set that are different than the corresponding values on the second data set, try this:


Excel 2010
ABCDEFGHI
1Data AData B
2NameStart DateEnd DateOwe AmountNameStart DateEnd DateOwe Amount
3A1/16/20172/20/2017$0.00C1/2/20173/1/2017$200.00
4B3/14/20163/30/2017$100.00B3/14/20163/30/2017$100.00
5C1/2/20174/1/2017$200.00D5/20/20176/1/2017$150.00
6D5/20/20176/1/2017$100.00A1/16/20172/20/2017$0.00
Sheet1


Highlight B3:D6 > Conditional Formatting > New Rule > Use a formula

=NOT(COUNTIFS($F:$F,$A3,G:G,B3))

Format: Fill red > OK > OK

The same logic can be applied if the data set is on a different sheet.
 
Upvote 0
That is quite understandable, but what if there are two same dates, e.g. for C and B in end date but one is correct and the other is wrong but excel highlights both ? or will it not do that as they are unique
 
Upvote 0
what if there are two same dates, e.g. for C and B in end date but one is correct and the other is wrong but excel highlights both ? or will it not do that as they are unique

The formula looks at the name and then checks that the other values are the same in both data sets for that name.

Right now, there is only Conditional Formatting applied on the first data set (Data A) and not the second one (Data B).

Conditional Formatting can be applied to Data B in a similar manner if you wanted to.

Also how did you put it into the formula to look up for each and every line?

The row number in the CF formula is relative (i.e. not absolute) so the formula for
row 3 will be =NOT(COUNTIFS($F:$F,$A3,G:G,B3))
row 4 will be
=NOT(COUNTIFS($F:$F,$A4,G:G,B4))
etc.

Since B3:D6 was highlighted, it will run this formula from B3 to D3, B4 to D4, B5 to D5, and B6 to D6.
 
Upvote 0
I'm getting a better understanding now, If you can please show me how to do it on my spreadsheets that would be really really appreciated. I haven't got them on my computer and they are on my laptop which is being repaired should be back tommorow. If you are willing I can attach them tommorow and you can show me the right path!! Honestly help is really appreciated.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,184
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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