• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Checking of date and every 5 minute-time

Hello All,

I am very new to VBA programming. Can someone please give me a short code for determining if the details of one column has the date today plus the every 5-minute interval (0h00, 00h05...). And if it has missing data or incorrect date, it will display "Missing data, bla bla" and exits the file. Or much better if the incorrect data is highlighted, but not really that necessary.
Example is the one below:


Edited... With Attachment...
 

Attachments

  • every-5-minute-time.29457.xlsx
    13.9 KB · Views: 5
Last edited by a moderator:
something like this ..
press the button
 

Attachments

  • every-5-minute-time.29457.xlsb
    20.6 KB · Views: 4
Hi ,

This can be done without using VBA too ; all that is required is a helper column , which has all the times from 00:00 till 23:55 , in steps of 5 minutes.

Now you can compare the existing data with the data in this helper column. Differences , if any , can be highlighted using Conditional Formatting.

As it stands , your data is all correct.

See the attached file.

Narayan
 

Attachments

  • every-5-minute-time.29457.xlsx
    22.1 KB · Views: 2
Back
Top