Solved

Finding missing dates.

Posted on 2016-09-27
4
23 Views
Last Modified: 2016-11-06
I have file with some data for 1 year. The time gap is 15 minutes as you can see in the file. However some of the data are missing and I would like to have an easy way to find it out. I would like to have the missing date,time in the respective row. Is it possible?
Can anybody please help me?
I have attached the file.

Thanks in advance.
upload.csv
0
Comment
Question by:Prashansa Shrestha
  • 2
4 Comments
 
LVL 5

Assisted Solution

by:D Patel
D Patel earned 250 total points
ID: 41817739
Hi Prashansa,

You can take reference from the sheet which I have prepared to incorporate logic in your sheet.

Instead of writing VBA it will be easier for you to find the missing dates using Array Formulas.

You can find the attached sheet.
Missing-Dates-example.xlsx
0
 
LVL 5

Expert Comment

by:D Patel
ID: 41817763
You also refer the file attached herewith (which matches your requirement) : (Using VBA)
FindMissingDate-15minutesInterval.xls
0
 
LVL 31

Accepted Solution

by:
Rob Henson earned 250 total points
ID: 41817777
Open the file in Excel and the Date and time will potentially show in one column with the results for each slot then in columns B C & D.

In a separate sheet, recreate the Date and Time columns with all entries.

In cell A2 just type the date 01/01/2014, in A3 type =A2 and copy down as far as row 97. In A98 then put =A2+1 and copy down to row 35041  (24hrs x 4 time slots x 365 days = 35040 entries)

In Cell B2 type 00:00:00, B3 type =B2+TIME(0,15,0) and copy down as far as row 97. In B98 type =B2 and copy down again as far as 35041.

Obviously you could do the formula in A3 to B97 at the same time ad then do A98 and B98 and copy them both down.

In columns C D & E row 2 then put this formula:

Col C =IFERROR(VLOOKUP(TEXT($A2+$B2,"dd.mm.yyyy hh:mm"),upload!$A:$D,2,FALSE),"")
Col D =IFERROR(VLOOKUP(TEXT($A2+$B2,"dd.mm.yyyy hh:mm"),upload!$A:$D,3,FALSE),"")
Col E =IFERROR(VLOOKUP(TEXT($A2+$B2,"dd.mm.yyyy hh:mm"),upload!$A:$D,4,FALSE),"")

and copy down the full extent.

Now apply a filter to the data and select column C to show only blank. Those are your missing values.

If you remove the filter and copy, paste values; you will have a replicated version of the data with missing date/time entries inserted.

See attached.
missing-entries.xlsx
0
 
LVL 13

Expert Comment

by:frankhelk
ID: 41875972
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Split:
-- Rob Henson (https:#a41817777)
-- D Patel (https:#a41817739)


If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

frankhelk
Experts-Exchange Cleanup Volunteer
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now