Compare Date Columns And Highlight Differences

DataWrangler

New Member
Joined
Jan 31, 2007
Messages
10
Excel 2007/Windows 7 Pro.

Thanks in advance. I have dates arranged in columns and I would like to compare column B to column A, column C to column B, column D to column C, and so on up to column n compared to column (n-1). See example table below.

Easy enough to compare with, for example, =if(B2=A2, "SAME", "DIFFERENT").

But I am looking for a way to do the comparison without inserting a column between A and B, between B and C, between C and D, etc. I've experimented with various combinations of nested IFs and VLOOKUPs in combination with conditional formatting, but I just can't make it work.

Desired end state is that any date that doesn't match the date in the column to which it's being compared is highlighted/formatted as a change.

So in the below, in row 1, all dates are 5/8/17, no changes.
In row 2, all the same up to column D. Format column D as a changed date.
In row 3, all the same up to column C. Format column C as a changed date. blank<blank> is a valid value in the dataset.

Original
B
C
D
5/8/17
5/8/17
5/8/17
5/8/17
6/3/17
6/3/17
6/3/17
7/1/17
<blank>blank</blank>
<blank>blank</blank>
11/23/17
11/23/17
6/1/17
6/1/17
6/1/17
<blank>blank</blank>
10/3/17
10/5/17
10/5/17
10/5/17
12/11/16
12/11/16
11/30/17
11/17/17
7/4/1776
7/20/1969
12/7/1941
10/21/2015

<tbody>
</tbody>
</blank>
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
try

Excel 2010
A
B
C
D
1
Original
B
C
D
2
5/8/2017
5/8/2017
5/8/2017
5/8/2017
3
6/3/2017
6/3/2017
6/3/2017
7/1/2017
4
blank
blank
11/23/2017
11/23/2017
5
6/1/2017
6/1/2017
6/1/2017
blank
6
10/3/2017
10/5/2017
10/5/2017
10/5/2017
7
12/11/2016
12/11/2016
11/30/2017
11/17/2017
8
7/4/1976
7/20/1969
12/7/1941
10/21/2015

<tbody>
</tbody>
Sheet5

Select B2:D8 in conditional formatting use
Code:
=A2<>B2

select your formatting
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,685
Members
449,117
Latest member
Aaagu

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