RawlinsCross
Active Member
- Joined
- Sep 9, 2016
- Messages
- 437
Good day, I'm looking for some advice on how to do the following:
I have a range variable named rYvalues to which I assign a range which can be of varying length (7 rows to 365 rows). I would like to do the following:
step 1 - divide the range up into sections, the number of which is taken from the value of a combo box.
step 2 - take the average of each section
step 3 - compare the first and last section (% increase or decrease)
I'll put the result from step three in a label on a userform. This part I think I can manage. The tricky part is step 1 - any thoughts on how I can do this?
Cheers.
I have a range variable named rYvalues to which I assign a range which can be of varying length (7 rows to 365 rows). I would like to do the following:
step 1 - divide the range up into sections, the number of which is taken from the value of a combo box.
step 2 - take the average of each section
step 3 - compare the first and last section (% increase or decrease)
I'll put the result from step three in a label on a userform. This part I think I can manage. The tricky part is step 1 - any thoughts on how I can do this?
Cheers.