Identify which dates are missing

Kwnstantinos_M

New Member
Joined
Jun 12, 2018
Messages
24
Hello,

I have two columns of dates as shown in the below table:
[TABLE="width: 500"]
<tbody>[TR]
[TD]5/1/2016 01:00[/TD]
[TD]5/1/2016 01:00[/TD]
[TD]yes[/TD]
[/TR]
[TR]
[TD]5/1/2016 02:00[/TD]
[TD]5/1/2016 04:00[/TD]
[TD]yes[/TD]
[/TR]
[TR]
[TD]5/1/2016 02:00[/TD]
[TD]6/1/2016 05:00[/TD]
[TD]yes[/TD]
[/TR]
[TR]
[TD]5/1/2016 03:00[/TD]
[TD]7/2/2016 10:00[/TD]
[TD]no[/TD]
[/TR]
[TR]
[TD]5/1/2016 04:00[/TD]
[TD]8/2/2016 05:00[/TD]
[TD]yes[/TD]
[/TR]
[TR]
[TD]5/1/2016 05:00[/TD]
[TD]9/3/2016 05:00[/TD]
[TD]no[/TD]
[/TR]
[TR]
[TD]5/1/2016 06:00[/TD]
[TD]10/5/2016 07:00[/TD]
[TD]yes[/TD]
[/TR]
[TR]
[TD]5/1/2016 07:00[/TD]
[TD]12/5/2016 05:00[/TD]
[TD]yes[/TD]
[/TR]
[TR]
[TD]5/1/2016 08:00[/TD]
[TD]15/5/2016 18:00[/TD]
[TD]no[/TD]
[/TR]
[TR]
[TD]5/1/2016 09:00[/TD]
[TD]18/6/2016 22:00[/TD]
[TD]no[/TD]
[/TR]
</tbody>[/TABLE]

The first column contain approximately 11,900 rows of dates and the second one 5900. I want to use a function in order to identify which exact dates and hours exist in both columns. As I have it in mind, the best way is to have a third column in which I will recieve a "yes" if it exists and "no" if it doesn't.. I used =MATCH(N2;$A$2:$A$5849;0) but the outcome wasn't right.. Do you have any ideas?

 
Last edited:

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Hello,

Why is your Match Function nor producing the right result ...???

Is it because of the times ( included in the dates ) not being identical ...
 
Upvote 0
Well ... dates and times are numbers ...

Times are decimals ...

If your decimals are not exactly the same, Match will miss the target ...

Remember that Format is only a display ... it is not what is stored in the cell :wink:
 
Upvote 0
Hello Kwnstantinos_M :)
data is from a1 to c10
[TABLE="width: 650"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]05-01-2016 01:00[/TD]
[TD]05-01-2016 01:00[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]05-01-2016 02:00[/TD]
[TD]05-01-2016 04:00[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]05-01-2016 02:00[/TD]
[TD]06-01-2016 05:00[/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]05-01-2016 03:00[/TD]
[TD]07-02-2016 10:00[/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]05-01-2016 04:00[/TD]
[TD]08-02-2016 05:00[/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]05-01-2016 05:00[/TD]
[TD]09-03-2016 05:00[/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]05-01-2016 06:00[/TD]
[TD]10-05-2016 07:00[/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]05-01-2016 07:00[/TD]
[TD]12-05-2016 05:00[/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]05-01-2016 08:00[/TD]
[TD]15-05-2016 18:00[/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]05-01-2016 09:00[/TD]
[TD]18-06-2016 22:00[/TD]
[TD]No[/TD]
[/TR]
</tbody>[/TABLE]
in c1 enter this formula and drag down till c10
Code:
=IF(ISERROR(MATCH(B1,$A$1:$A$10,0)),"No","Yes")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,206
Members
452,618
Latest member
Tam84

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