firebane
11-29-2013, 11:35 PM
I have a bit of a quandry I am try to figure out how to get excel to count a number in every other cell starting from one of the cells in ROW 1.
So in this picture if you place 1 in A1 .. the rest of the gray cells get a number sequentially numbered. So the first row would have:
1 2 3 4 5 in the first row
8 9 10 11 12 in the second row
15 16 17 18 19 in the third row
22 23 24 25 26 in the fourth row
29 30 31 in the 5th row
The reason the numbers fall this way is because for a scheduling calendar and weekends don't exist. But if you put 1 in the 2 colum then it start counting from up to 31.
It would be nice if I could specify the days in the month so it would also only count up to that many numbers.. ie .. IF(A11=28) THEN COUNT(1:28) etc.
Is this possible to do with conditional formatting or would this end up having to be a macro or visual basic script?
So in this picture if you place 1 in A1 .. the rest of the gray cells get a number sequentially numbered. So the first row would have:
1 2 3 4 5 in the first row
8 9 10 11 12 in the second row
15 16 17 18 19 in the third row
22 23 24 25 26 in the fourth row
29 30 31 in the 5th row
The reason the numbers fall this way is because for a scheduling calendar and weekends don't exist. But if you put 1 in the 2 colum then it start counting from up to 31.
It would be nice if I could specify the days in the month so it would also only count up to that many numbers.. ie .. IF(A11=28) THEN COUNT(1:28) etc.
Is this possible to do with conditional formatting or would this end up having to be a macro or visual basic script?