Solved

Finding missing dates.

Posted on 2016-09-27
4
32 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 6

Assisted Solution

by:DPatel
DPatel 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 6

Expert Comment

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

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 14

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

786 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