G
Guest
I need to align two rows of data containing date and time of equipment
readings. One is taken every second and one every 3 seconds ....
A B C
D
02/01/05 13:22:01 <data> 02/01/05 13:22:01 <data>
02/01/05 13:22:02 <data> 02/01/05 13:22:04 <data>
02/01/05 13:22:03 <data> 02/01/05 13:22:07 <data>
02/01/05 13:22:04 <data> 02/01/05 13:22:10 <data>
I need to align D with A so that the times match. I fugure that if I use
something like the following it should work but I am not sure of the syntax
for looping or going to the next row.
What I want to code is:
If(C1<>A1)insert a row and move the data down until it does match, then go
to the next row and loop the code until EOF .....I tried to create the code
but failed...
For N=1 to 1000
IF(C1<>A1)
Range("C1").Select (how do I change C1 ...is it C1+1??)
Selection.Insert Shift:xlDown
Next
readings. One is taken every second and one every 3 seconds ....
A B C
D
02/01/05 13:22:01 <data> 02/01/05 13:22:01 <data>
02/01/05 13:22:02 <data> 02/01/05 13:22:04 <data>
02/01/05 13:22:03 <data> 02/01/05 13:22:07 <data>
02/01/05 13:22:04 <data> 02/01/05 13:22:10 <data>
I need to align D with A so that the times match. I fugure that if I use
something like the following it should work but I am not sure of the syntax
for looping or going to the next row.
What I want to code is:
If(C1<>A1)insert a row and move the data down until it does match, then go
to the next row and loop the code until EOF .....I tried to create the code
but failed...
For N=1 to 1000
IF(C1<>A1)
Range("C1").Select (how do I change C1 ...is it C1+1??)
Selection.Insert Shift:xlDown
Next