Hi there,
I have large sheets with time in column c and another variable, electricity being consumed in column d. In column d there are tens of rows of concentive zeros when people are not consuming electricty then when they plug in an item positive values occur. So there will be rows of zeros then rows of positive values then rows of zero agian when they plug out etc. However I am only interest in what time the person plugs in the item. So I only want to keep the row of the first positive value that occurs in each electricity consuming period.
Could some one help me out with a macro? I hope you can understand that.
thank you
I have large sheets with time in column c and another variable, electricity being consumed in column d. In column d there are tens of rows of concentive zeros when people are not consuming electricty then when they plug in an item positive values occur. So there will be rows of zeros then rows of positive values then rows of zero agian when they plug out etc. However I am only interest in what time the person plugs in the item. So I only want to keep the row of the first positive value that occurs in each electricity consuming period.
Could some one help me out with a macro? I hope you can understand that.
thank you