Highlighting Data differences where 1 value is the same

mt006

New Member
Joined
Jun 26, 2016
Messages
4
Hi

Currently I compare two sets of exported data in Excel.

I do this simply by using a Countif formula on a unique Database ID then sorting the Data so any lines which are unique move to the top of the list

However I want to expand this

Where the Countif formula declares a duplicate I want to run an additional check on one of the other cells typically in a Date/Time format.

This is to pick up where the time value has changed from the older export to the newer data.

In example

[TABLE="width: 165"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]815917[/TD]
[TD]08.04.2017 - 01:00[/TD]
[/TR]
[TR]
[TD]802244[/TD]
[TD]08.04.2017 - 01:00[/TD]
[/TR]
[TR]
[TD]801562[/TD]
[TD]08.04.2017 - 01:00[/TD]
[/TR]
[TR]
[TD]801562[/TD]
[TD]08.04.2017 - 01:00[/TD]
[/TR]
[TR]
[TD]815917[/TD]
[TD]08.04.2017 - 01:30
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
So in this example there are 2 columns - ID and Date/Time

802244 would move to the top to be looked as its unique
801562 nothing would happen
815917 would flag as time discrepancy but wouldn't move as its

Is there an easy way to implement this without coding a macro - each sheet in its first iteration is a version of the original export sheet- the data is not added to a different sheet
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
You'll need a couple of helper columns I think:


Excel 2016 (Windows) 32 bit
ABCD
1IDDate/TimeOccurrencesInconsistency
281591708.04.2017 - 01:0021
380224408.04.2017 - 01:0010
480156208.04.2017 - 01:0020
580156208.04.2017 - 01:0020
681591708.04.2017 - 01:3021
Sheet2
Cell Formulas
RangeFormula
C2=COUNTIF($A:$A,$A2)
D2=COUNTIFS($A:$A,$A2,$B:$B,"<>"&$B2)


Then sort by Occurrences ascending and Inconsistency descending.

WBD
 
Upvote 0
Never heard of Countifs before.

Looks good and seems to work in testing

So this formula basically works as 2 stage check that were A=A return total number of Bs?

so in

A - B
A - A
A- B
A - C

=COUNTIFS($A:$A,$A2,$B:$B,$B2) would return 2
 
Upvote 0
Yes I think so. I was using it to find rows that match on ID but mismatched on Date/Time. COUNTIFS is the same as COUNTIF but allows multiple criteria over ranges with the same dimensions.

WBD
 
Upvote 0

Forum statistics

Threads
1,225,073
Messages
6,182,702
Members
453,132
Latest member
nsnodgrass73

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