Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Filling In Data Gaps using VB

Status
Not open for further replies.

mathias1979

Technical User
Sep 28, 2005
27
US
I was directed over here from the VB forum. I have a dataset which has data reported every hour. Problem is, there are sometimes gaps in the data (several hours missing) or extra data (data reported in between hours). I've never used VB before, but I need to figure out how to fill in the gaps with blank cells and delete extra cells (as the datafile is too long to do this manually). So what I need to do is:

-Find time increment between cells A1 & A2
-If time increment < 10 min, delete Row 2, retest A1 & new A2
-If time increment > 10 min, insert row between Row1 & Row2 and move on to test A2 & A3
-end process at last cell

Can anyone help me with the syntax needed to accomplish this? Thanks!

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top