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:
5/1/2016 01:005/1/2016 01:00yes
5/1/2016 02:005/1/2016 04:00yes
5/1/2016 02:006/1/2016 05:00yes
5/1/2016 03:007/2/2016 10:00no
5/1/2016 04:008/2/2016 05:00yes
5/1/2016 05:009/3/2016 05:00no
5/1/2016 06:0010/5/2016 07:00yes
5/1/2016 07:0012/5/2016 05:00yes
5/1/2016 08:0015/5/2016 18:00no
5/1/2016 09:0018/6/2016 22:00no

<tbody>
</tbody>

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 Joke
Why can't spreadsheets drive cars? They crash too often!
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
05-01-2016 01:0005-01-2016 01:00Yes
05-01-2016 02:0005-01-2016 04:00Yes
05-01-2016 02:0006-01-2016 05:00No
05-01-2016 03:0007-02-2016 10:00No
05-01-2016 04:0008-02-2016 05:00No
05-01-2016 05:0009-03-2016 05:00No
05-01-2016 06:0010-05-2016 07:00No
05-01-2016 07:0012-05-2016 05:00No
05-01-2016 08:0015-05-2016 18:00No
05-01-2016 09:0018-06-2016 22:00No

<colgroup><col><col><col></colgroup><tbody>
</tbody>
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,215,269
Messages
6,123,976
Members
449,138
Latest member
abdahsankhan

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