Jacc
Automotive
- Oct 22, 2002
- 142
Hello people!
I'm reasonable skilled in Excel and for the first time in forever I'm stuck.
I want to create a column with ones and zeros in a "duty cycle" fashion. By changing two parameters I want to be able to change the duty cycle and the period of the ones. If someone manage to do this with formulas I will be impressed.
For instance:
11100000001110000000
This would be duty cycle 30% and period 10.
11111000000000000000111110000000000000000
This would be duty cycle 25% and period 20.
Ultimately I want to decide the length of the column myself but if that's an obstacle then I can adapt.
As a plan B I'm trying to write a macro which will fill in this column for me but it turns out I'm struggling with that to.
I'm reasonable skilled in Excel and for the first time in forever I'm stuck.
I want to create a column with ones and zeros in a "duty cycle" fashion. By changing two parameters I want to be able to change the duty cycle and the period of the ones. If someone manage to do this with formulas I will be impressed.
For instance:
11100000001110000000
This would be duty cycle 30% and period 10.
11111000000000000000111110000000000000000
This would be duty cycle 25% and period 20.
Ultimately I want to decide the length of the column myself but if that's an obstacle then I can adapt.
As a plan B I'm trying to write a macro which will fill in this column for me but it turns out I'm struggling with that to.