Hello,
I am having trouble in making a Sub procedure for an excel file, and I was wondering if someone could help me write the code. Here is the problem:
I have an excel sheet that only has dates in Column A. In Column B, I have times in h:mm format corresponding to the date. An example section:
What I need to do is have only one row in the same date for the specific hour period. i.e, For 2/13/2006, there would be only one row for the hour 23:mm, deleting the other 23:mm for the same date. The criteria is the minutes closest to 00. i.e, if there is 12:05 and 12:23, it would pick 12:05 and delete the other(s).A B C D
2/13/2006 22:01 11762 CFM
2/13/2006 22:16 10843 CFM
2/13/2006 22:31 11033 CFM
2/13/2006 22:46 10971 CFM
2/13/2006 23:01 11015 CFM
2/13/2006 23:16 11742 CFM
2/13/2006 23:31 11057 CFM
2/13/2006 23:46 11045 CFM
2/14/2006 0:01 11617 CFM
2/14/2006 0:16 6771 CFM
2/14/2006 0:31 7506 CFM
2/14/2006 0:46 7732 CFM
2/14/2006 1:01 7553 CFM
2/14/2006 1:16 10849 CFM
2/14/2006 1:31 11045 CFM
2/14/2006 1:46 10791 CFM
2/14/2006 2:01 10881 CFM
I could do this manually but it would take forever since there are 17 sheets with around 7000+ rows.
I would really appreciate the help for this! Btw, this is for a college research project relating to airconditioning.
Bookmarks